~ubuntu-branches/ubuntu/natty/lirc/natty-proposed

1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1
#! /bin/sh      
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
2
if test "$#" = "0"; then
3
  if ! ./setup.sh; then
4
    echo "Please read the documentation!!!"
5
    exit 1
6
  fi
7
  trap - EXIT
8
  exit 0
9
fi
10
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11
#! /bin/sh
12
# Guess values for system-dependent variables and create Makefiles.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13
# Generated by GNU Autoconf 2.65.
14
#
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
15
#
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
17
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
18
# Inc.
19
#
20
#
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
21
# This configure script is free software; the Free Software Foundation
22
# gives unlimited permission to copy, distribute and modify it.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
23
## -------------------- ##
24
## M4sh Initialization. ##
25
## -------------------- ##
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
26
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
27
# Be more Bourne compatible
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
28
DUALCASE=1; export DUALCASE # for MKS sh
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
29
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
30
  emulate sh
31
  NULLCMD=:
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
32
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
33
  # is contrary to our usage.  Disable this feature.
34
  alias -g '${1+"$@"}'='"$@"'
35
  setopt NO_GLOB_SUBST
36
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
37
  case `(set -o) 2>/dev/null` in #(
38
  *posix*) :
39
    set -o posix ;; #(
40
  *) :
41
     ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
42
esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
43
fi
44
45
46
as_nl='
47
'
48
export as_nl
49
# Printing a long string crashes Solaris 7 /usr/bin/printf.
50
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
51
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
52
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
53
# Prefer a ksh shell builtin over an external printf program on Solaris,
54
# but without wasting forks for bash or zsh.
55
if test -z "$BASH_VERSION$ZSH_VERSION" \
56
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
57
  as_echo='print -r --'
58
  as_echo_n='print -rn --'
59
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
60
  as_echo='printf %s\n'
61
  as_echo_n='printf %s'
62
else
63
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
64
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
65
    as_echo_n='/usr/ucb/echo -n'
66
  else
67
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
68
    as_echo_n_body='eval
69
      arg=$1;
70
      case $arg in #(
71
      *"$as_nl"*)
72
	expr "X$arg" : "X\\(.*\\)$as_nl";
73
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
74
      esac;
75
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
76
    '
77
    export as_echo_n_body
78
    as_echo_n='sh -c $as_echo_n_body as_echo'
79
  fi
80
  export as_echo_body
81
  as_echo='sh -c $as_echo_body as_echo'
82
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
83
84
# The user is always right.
85
if test "${PATH_SEPARATOR+set}" != set; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
86
  PATH_SEPARATOR=:
87
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
88
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
89
      PATH_SEPARATOR=';'
90
  }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
91
fi
92
93
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
94
# IFS
95
# We need space, tab and new line, in precisely that order.  Quoting is
96
# there to prevent editors from complaining about space-tab.
97
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
98
# splitting by setting IFS to empty value.)
99
IFS=" ""	$as_nl"
100
101
# Find who we are.  Look in the path if we contain no directory separator.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
102
case $0 in #((
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
103
  *[\\/]* ) as_myself=$0 ;;
104
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105
for as_dir in $PATH
106
do
107
  IFS=$as_save_IFS
108
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
109
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
111
IFS=$as_save_IFS
112
113
     ;;
114
esac
115
# We did not find ourselves, most probably we were run as `sh COMMAND'
116
# in which case we are not to be found in the path.
117
if test "x$as_myself" = x; then
118
  as_myself=$0
119
fi
120
if test ! -f "$as_myself"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
121
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
122
  exit 1
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
123
fi
124
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
125
# Unset variables that we do not need and which cause bugs (e.g. in
126
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
127
# suppresses any "Segmentation fault" message there.  '((' could
128
# trigger a bug in pdksh 5.2.14.
129
for as_var in BASH_ENV ENV MAIL MAILPATH
130
do eval test x\${$as_var+set} = xset \
131
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
132
done
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
133
PS1='$ '
134
PS2='> '
135
PS4='+ '
136
137
# NLS nuisances.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
138
LC_ALL=C
139
export LC_ALL
140
LANGUAGE=C
141
export LANGUAGE
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
142
143
# CDPATH.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
144
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
145
146
if test "x$CONFIG_SHELL" = x; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
147
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
148
  emulate sh
149
  NULLCMD=:
150
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151
  # is contrary to our usage.  Disable this feature.
152
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
153
  setopt NO_GLOB_SUBST
154
else
155
  case \`(set -o) 2>/dev/null\` in #(
156
  *posix*) :
157
    set -o posix ;; #(
158
  *) :
159
     ;;
160
esac
161
fi
162
"
163
  as_required="as_fn_return () { (exit \$1); }
164
as_fn_success () { as_fn_return 0; }
165
as_fn_failure () { as_fn_return 1; }
166
as_fn_ret_success () { return 0; }
167
as_fn_ret_failure () { return 1; }
168
169
exitcode=0
170
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
171
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
172
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
173
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
174
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
175
176
else
177
  exitcode=1; echo positional parameters were not saved.
178
fi
179
test x\$exitcode = x0 || exit 1"
180
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
test \$(( 1 + 1 )) = 2 || exit 1"
185
  if (eval "$as_required") 2>/dev/null; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
186
  as_have_required=yes
187
else
188
  as_have_required=no
189
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
190
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192
else
193
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194
as_found=false
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
195
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196
do
197
  IFS=$as_save_IFS
198
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
199
  as_found=:
200
  case $as_dir in #(
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
201
	 /*)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
202
	   for as_base in sh bash ksh sh5; do
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
203
	     # Try only shells that exist, to save several forks.
204
	     as_shell=$as_dir/$as_base
205
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207
  CONFIG_SHELL=$as_shell as_have_required=yes
208
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209
  break 2
210
fi
211
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
212
	   done;;
213
       esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
214
  as_found=false
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
215
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
216
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218
  CONFIG_SHELL=$SHELL as_have_required=yes
219
fi; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
220
IFS=$as_save_IFS
221
222
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
223
      if test "x$CONFIG_SHELL" != x; then :
224
  # We cannot yet assume a decent shell, so we have to provide a
225
	# neutralization value for shells without unset; and this also
226
	# works around shells that cannot unset nonexistent variables.
227
	BASH_ENV=/dev/null
228
	ENV=/dev/null
229
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230
	export CONFIG_SHELL
231
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232
fi
233
234
    if test x$as_have_required = xno; then :
235
  $as_echo "$0: This script requires a shell more modern than all"
236
  $as_echo "$0: the shells that I found on your system."
237
  if test x${ZSH_VERSION+set} = xset ; then
238
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240
  else
241
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242
$0: including any error possibly output before this
243
$0: message. Then install a modern shell, or manually run
244
$0: the script under such a shell if you do have one."
245
  fi
246
  exit 1
247
fi
248
fi
249
fi
250
SHELL=${CONFIG_SHELL-/bin/sh}
251
export SHELL
252
# Unset more variables known to interfere with behavior of common tools.
253
CLICOLOR_FORCE= GREP_OPTIONS=
254
unset CLICOLOR_FORCE GREP_OPTIONS
255
256
## --------------------- ##
257
## M4sh Shell Functions. ##
258
## --------------------- ##
259
# as_fn_unset VAR
260
# ---------------
261
# Portably unset VAR.
262
as_fn_unset ()
263
{
264
  { eval $1=; unset $1;}
265
}
266
as_unset=as_fn_unset
267
268
# as_fn_set_status STATUS
269
# -----------------------
270
# Set $? to STATUS, without forking.
271
as_fn_set_status ()
272
{
273
  return $1
274
} # as_fn_set_status
275
276
# as_fn_exit STATUS
277
# -----------------
278
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279
as_fn_exit ()
280
{
281
  set +e
282
  as_fn_set_status $1
283
  exit $1
284
} # as_fn_exit
285
286
# as_fn_mkdir_p
287
# -------------
288
# Create "$as_dir" as a directory, including parents if necessary.
289
as_fn_mkdir_p ()
290
{
291
292
  case $as_dir in #(
293
  -*) as_dir=./$as_dir;;
294
  esac
295
  test -d "$as_dir" || eval $as_mkdir_p || {
296
    as_dirs=
297
    while :; do
298
      case $as_dir in #(
299
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300
      *) as_qdir=$as_dir;;
301
      esac
302
      as_dirs="'$as_qdir' $as_dirs"
303
      as_dir=`$as_dirname -- "$as_dir" ||
304
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305
	 X"$as_dir" : 'X\(//\)[^/]' \| \
306
	 X"$as_dir" : 'X\(//\)$' \| \
307
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308
$as_echo X"$as_dir" |
309
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
310
	    s//\1/
311
	    q
312
	  }
313
	  /^X\(\/\/\)[^/].*/{
314
	    s//\1/
315
	    q
316
	  }
317
	  /^X\(\/\/\)$/{
318
	    s//\1/
319
	    q
320
	  }
321
	  /^X\(\/\).*/{
322
	    s//\1/
323
	    q
324
	  }
325
	  s/.*/./; q'`
326
      test -d "$as_dir" && break
327
    done
328
    test -z "$as_dirs" || eval "mkdir $as_dirs"
329
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
330
331
332
} # as_fn_mkdir_p
333
# as_fn_append VAR VALUE
334
# ----------------------
335
# Append the text in VALUE to the end of the definition contained in VAR. Take
336
# advantage of any shell optimizations that allow amortized linear growth over
337
# repeated appends, instead of the typical quadratic growth present in naive
338
# implementations.
339
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
340
  eval 'as_fn_append ()
341
  {
342
    eval $1+=\$2
343
  }'
344
else
345
  as_fn_append ()
346
  {
347
    eval $1=\$$1\$2
348
  }
349
fi # as_fn_append
350
351
# as_fn_arith ARG...
352
# ------------------
353
# Perform arithmetic evaluation on the ARGs, and store the result in the
354
# global $as_val. Take advantage of shells that can avoid forks. The arguments
355
# must be portable across $(()) and expr.
356
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
  eval 'as_fn_arith ()
358
  {
359
    as_val=$(( $* ))
360
  }'
361
else
362
  as_fn_arith ()
363
  {
364
    as_val=`expr "$@" || test $? -eq 1`
365
  }
366
fi # as_fn_arith
367
368
369
# as_fn_error ERROR [LINENO LOG_FD]
370
# ---------------------------------
371
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373
# script with status $?, using 1 if that was 0.
374
as_fn_error ()
375
{
376
  as_status=$?; test $as_status -eq 0 && as_status=1
377
  if test "$3"; then
378
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
379
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
380
  fi
381
  $as_echo "$as_me: error: $1" >&2
382
  as_fn_exit $as_status
383
} # as_fn_error
384
385
if expr a : '\(a\)' >/dev/null 2>&1 &&
386
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
387
  as_expr=expr
388
else
389
  as_expr=false
390
fi
391
392
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
393
  as_basename=basename
394
else
395
  as_basename=false
396
fi
397
398
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399
  as_dirname=dirname
400
else
401
  as_dirname=false
402
fi
403
404
as_me=`$as_basename -- "$0" ||
405
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406
	 X"$0" : 'X\(//\)$' \| \
407
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
408
$as_echo X/"$0" |
409
    sed '/^.*\/\([^/][^/]*\)\/*$/{
410
	    s//\1/
411
	    q
412
	  }
413
	  /^X\/\(\/\/\)$/{
414
	    s//\1/
415
	    q
416
	  }
417
	  /^X\/\(\/\).*/{
418
	    s//\1/
419
	    q
420
	  }
421
	  s/.*/./; q'`
422
423
# Avoid depending upon Character Ranges.
424
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427
as_cr_digits='0123456789'
428
as_cr_alnum=$as_cr_Letters$as_cr_digits
429
430
431
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
432
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
433
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
436
  sed -n '
437
    p
438
    /[$]LINENO/=
439
  ' <$as_myself |
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
440
    sed '
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
441
      s/[$]LINENO.*/&-/
442
      t lineno
443
      b
444
      :lineno
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
445
      N
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
446
      :loop
447
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
448
      t loop
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
449
      s/-\n.*//
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
450
    ' >$as_me.lineno &&
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
451
  chmod +x "$as_me.lineno" ||
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
452
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
453
454
  # Don't try to exec as it changes $[0], causing all sort of problems
455
  # (the dirname of $[0] is not the place where we might find the
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
456
  # original and so on.  Autoconf is especially sensitive to this).
457
  . "./$as_me.lineno"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
458
  # Exit status is that of the last command.
459
  exit
460
}
461
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
462
ECHO_C= ECHO_N= ECHO_T=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
463
case `echo -n x` in #(((((
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
464
-n*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
465
  case `echo 'xy\c'` in
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
466
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
467
  xy)  ECHO_C='\c';;
468
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
469
       ECHO_T='	';;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
470
  esac;;
471
*)
472
  ECHO_N='-n';;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
473
esac
474
475
rm -f conf$$ conf$$.exe conf$$.file
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
476
if test -d conf$$.dir; then
477
  rm -f conf$$.dir/conf$$.file
478
else
479
  rm -f conf$$.dir
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
480
  mkdir conf$$.dir 2>/dev/null
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
481
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
482
if (echo >conf$$.file) 2>/dev/null; then
483
  if ln -s conf$$.file conf$$ 2>/dev/null; then
484
    as_ln_s='ln -s'
485
    # ... but there are two gotchas:
486
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488
    # In both cases, we have to default to `cp -p'.
489
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490
      as_ln_s='cp -p'
491
  elif ln conf$$.file conf$$ 2>/dev/null; then
492
    as_ln_s=ln
493
  else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
494
    as_ln_s='cp -p'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
495
  fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
496
else
497
  as_ln_s='cp -p'
498
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
499
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500
rmdir conf$$.dir 2>/dev/null
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
501
502
if mkdir -p . 2>/dev/null; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
503
  as_mkdir_p='mkdir -p "$as_dir"'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
504
else
505
  test -d ./-p && rmdir ./-p
506
  as_mkdir_p=false
507
fi
508
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
509
if test -x / >/dev/null 2>&1; then
510
  as_test_x='test -x'
511
else
512
  if ls -dL / >/dev/null 2>&1; then
513
    as_ls_L_option=L
514
  else
515
    as_ls_L_option=
516
  fi
517
  as_test_x='
518
    eval sh -c '\''
519
      if test -d "$1"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
520
	test -d "$1/.";
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
521
      else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
522
	case $1 in #(
523
	-*)set "./$1";;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
524
	esac;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
525
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
526
	???[sx]*):;;*)false;;esac;fi
527
    '\'' sh
528
  '
529
fi
530
as_executable_p=$as_test_x
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
531
532
# Sed expression to map a string onto a valid CPP name.
533
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535
# Sed expression to map a string onto a valid variable name.
536
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
539
540
# Check that we are running under the correct shell.
541
SHELL=${CONFIG_SHELL-/bin/sh}
542
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
543
case X$lt_ECHO in
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
544
X*--fallback-echo)
545
  # Remove one level of quotation (which was required for Make).
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
546
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
547
  ;;
548
esac
549
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
550
ECHO=${lt_ECHO-echo}
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
551
if test "X$1" = X--no-reexec; then
552
  # Discard the --no-reexec flag, and continue.
553
  shift
554
elif test "X$1" = X--fallback-echo; then
555
  # Avoid inline document here, it may be left over
556
  :
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
557
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
558
  # Yippee, $ECHO works!
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
559
  :
560
else
561
  # Restart under the correct shell.
562
  exec $SHELL "$0" --no-reexec ${1+"$@"}
563
fi
564
565
if test "X$1" = X--fallback-echo; then
566
  # used as fallback echo
567
  shift
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
568
  cat <<_LT_EOF
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
569
$*
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
570
_LT_EOF
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
571
  exit 0
572
fi
573
574
# The HP-UX ksh and POSIX shell print the target directory to stdout
575
# if CDPATH is set.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
576
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
577
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
578
if test -z "$lt_ECHO"; then
579
  if test "X${echo_test_string+set}" != Xset; then
580
    # find a string as large as possible, as long as the shell can cope with it
581
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
584
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
585
      then
586
        break
587
      fi
588
    done
589
  fi
590
591
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
592
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
593
     test "X$echo_testing_string" = "X$echo_test_string"; then
594
    :
595
  else
596
    # The Solaris, AIX, and Digital Unix default echo programs unquote
597
    # backslashes.  This makes it impossible to quote backslashes using
598
    #   echo "$something" | sed 's/\\/\\\\/g'
599
    #
600
    # So, first we look for a working echo in the user's PATH.
601
602
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603
    for dir in $PATH /usr/ucb; do
604
      IFS="$lt_save_ifs"
605
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608
         test "X$echo_testing_string" = "X$echo_test_string"; then
609
        ECHO="$dir/echo"
610
        break
611
      fi
612
    done
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
613
    IFS="$lt_save_ifs"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
614
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
615
    if test "X$ECHO" = Xecho; then
616
      # We didn't find a better echo, so look for alternatives.
617
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
618
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
619
         test "X$echo_testing_string" = "X$echo_test_string"; then
620
        # This shell has a builtin print -r that does the trick.
621
        ECHO='print -r'
622
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
623
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
624
        # If we have ksh, try running configure again with it.
625
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626
        export ORIGINAL_CONFIG_SHELL
627
        CONFIG_SHELL=/bin/ksh
628
        export CONFIG_SHELL
629
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
630
      else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
631
        # Try using printf.
632
        ECHO='printf %s\n'
633
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
634
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
635
	   test "X$echo_testing_string" = "X$echo_test_string"; then
636
	  # Cool, printf works
637
	  :
638
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639
	     test "X$echo_testing_string" = 'X\t' &&
640
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641
	     test "X$echo_testing_string" = "X$echo_test_string"; then
642
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643
	  export CONFIG_SHELL
644
	  SHELL="$CONFIG_SHELL"
645
	  export SHELL
646
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
647
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648
	     test "X$echo_testing_string" = 'X\t' &&
649
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650
	     test "X$echo_testing_string" = "X$echo_test_string"; then
651
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
652
        else
653
	  # maybe with a smaller string...
654
	  prev=:
655
656
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
658
	    then
659
	      break
660
	    fi
661
	    prev="$cmd"
662
	  done
663
664
	  if test "$prev" != 'sed 50q "$0"'; then
665
	    echo_test_string=`eval $prev`
666
	    export echo_test_string
667
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668
	  else
669
	    # Oops.  We lost completely, so just stick with echo.
670
	    ECHO=echo
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
671
	  fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
672
        fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
673
      fi
674
    fi
675
  fi
676
fi
677
678
# Copy echo and quote the copy suitably for passing to libtool from
679
# the Makefile, instead of quoting the original, which is used later.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
680
lt_ECHO=$ECHO
681
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
683
fi
684
685
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
686
687
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
688
test -n "$DJDIR" || exec 7<&0 </dev/null
689
exec 6>&1
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
690
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
691
# Name of the host.
692
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
693
# so uname gets run too.
694
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
695
696
#
697
# Initializations.
698
#
699
ac_default_prefix=/usr/local
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
700
ac_clean_files=
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
701
ac_config_libobj_dir=.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
702
LIBOBJS=
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
703
cross_compiling=no
704
subdirs=
705
MFLAGS=
706
MAKEFLAGS=
707
708
# Identity of this package.
709
PACKAGE_NAME=
710
PACKAGE_TARNAME=
711
PACKAGE_VERSION=
712
PACKAGE_STRING=
713
PACKAGE_BUGREPORT=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
714
PACKAGE_URL=
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
715
716
ac_unique_file="daemons/lircd.c"
717
# Factoring default headers for most tests.
718
ac_includes_default="\
719
#include <stdio.h>
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
720
#ifdef HAVE_SYS_TYPES_H
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
721
# include <sys/types.h>
722
#endif
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
723
#ifdef HAVE_SYS_STAT_H
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
724
# include <sys/stat.h>
725
#endif
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
726
#ifdef STDC_HEADERS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
727
# include <stdlib.h>
728
# include <stddef.h>
729
#else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
730
# ifdef HAVE_STDLIB_H
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
731
#  include <stdlib.h>
732
# endif
733
#endif
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
734
#ifdef HAVE_STRING_H
735
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
736
#  include <memory.h>
737
# endif
738
# include <string.h>
739
#endif
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
740
#ifdef HAVE_STRINGS_H
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
741
# include <strings.h>
742
#endif
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
743
#ifdef HAVE_INTTYPES_H
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
744
# include <inttypes.h>
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
745
#endif
746
#ifdef HAVE_STDINT_H
747
# include <stdint.h>
748
#endif
749
#ifdef HAVE_UNISTD_H
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
750
# include <unistd.h>
751
#endif"
752
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
753
ac_subst_vars='am__EXEEXT_FALSE
754
am__EXEEXT_TRUE
755
LTLIBOBJS
756
LIBOBJS
757
maintmode_daemons_extra
758
lircmd_conf
759
lircd_conf
760
receive
761
hw_module
762
x_progs
763
vga_progs
764
hw_module_libs
765
lirc_driver
766
driver
767
lirc_major
768
moduledir
769
varrundir
770
devdir
771
forkpty
772
daemon
773
SANDBOXED_FALSE
774
SANDBOXED_TRUE
775
kernelext
776
kerneldir
777
ac_pkss_mktemp
778
USE_FIFOS_FALSE
779
USE_FIFOS_TRUE
780
X_EXTRA_LIBS
781
X_LIBS
782
X_PRE_LIBS
783
X_CFLAGS
784
XMKMF
785
HAVE_PYTHON_FALSE
786
HAVE_PYTHON_TRUE
787
pkgpyexecdir
788
pyexecdir
789
pkgpythondir
790
pythondir
791
PYTHON_PLATFORM
792
PYTHON_EXEC_PREFIX
793
PYTHON_PREFIX
794
PYTHON_VERSION
795
PYTHON
796
CPP
797
OTOOL64
798
OTOOL
799
LIPO
800
NMEDIT
801
DSYMUTIL
802
lt_ECHO
803
RANLIB
804
AR
805
OBJDUMP
806
NM
807
ac_ct_DUMPBIN
808
DUMPBIN
809
LD
810
FGREP
811
EGREP
812
GREP
813
SED
814
host_os
815
host_vendor
816
host_cpu
817
host
818
build_os
819
build_vendor
820
build_cpu
821
build
822
LIBTOOL
823
LN_S
824
LIBUSB_CONFIG
825
depmod
826
mkfifo
827
mknod
828
am__fastdepCC_FALSE
829
am__fastdepCC_TRUE
830
CCDEPMODE
831
AMDEPBACKSLASH
832
AMDEP_FALSE
833
AMDEP_TRUE
834
am__quote
835
am__include
836
DEPDIR
837
OBJEXT
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
838
EXEEXT
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
839
ac_ct_CC
840
CPPFLAGS
841
LDFLAGS
842
CFLAGS
843
CC
844
am__untar
845
am__tar
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
846
AMTAR
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
847
am__leading_dot
848
SET_MAKE
849
AWK
850
mkdir_p
851
MKDIR_P
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
852
INSTALL_STRIP_PROGRAM
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
853
STRIP
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
854
install_sh
855
MAKEINFO
856
AUTOHEADER
857
AUTOMAKE
858
AUTOCONF
859
ACLOCAL
860
VERSION
861
PACKAGE
862
CYGPATH_W
863
am__isrc
864
INSTALL_DATA
865
INSTALL_SCRIPT
866
INSTALL_PROGRAM
867
target_alias
868
host_alias
869
build_alias
870
LIBS
871
ECHO_T
872
ECHO_N
873
ECHO_C
874
DEFS
875
mandir
876
localedir
877
libdir
878
psdir
879
pdfdir
880
dvidir
881
htmldir
882
infodir
883
docdir
884
oldincludedir
885
includedir
886
localstatedir
887
sharedstatedir
888
sysconfdir
889
datadir
890
datarootdir
891
libexecdir
892
sbindir
893
bindir
894
program_transform_name
895
prefix
896
exec_prefix
897
PACKAGE_URL
898
PACKAGE_BUGREPORT
899
PACKAGE_STRING
900
PACKAGE_VERSION
901
PACKAGE_TARNAME
902
PACKAGE_NAME
903
PATH_SEPARATOR
904
SHELL'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
905
ac_subst_files=''
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
906
ac_user_opts='
907
enable_option_checking
908
enable_dependency_tracking
909
enable_shared
910
enable_static
911
with_pic
912
enable_fast_install
913
with_gnu_ld
914
enable_libtool_lock
915
with_x
916
with_kerneldir
917
with_driver
918
enable_maintainer_mode
919
enable_sandboxed
920
with_devdir
921
with_moduledir
922
enable_long_codes
923
enable_dyncodes
924
with_major
925
with_port
926
with_irq
927
with_timer
928
with_tty
929
with_soft_carrier
930
with_transmitter
931
with_igor
932
enable_debug
933
enable_daemonize
934
with_syslog
935
'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
936
      ac_precious_vars='build_alias
937
host_alias
938
target_alias
939
CC
940
CFLAGS
941
LDFLAGS
942
LIBS
943
CPPFLAGS
944
CPP
945
XMKMF'
946
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
947
948
# Initialize some variables set by options.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
949
ac_init_help=
950
ac_init_version=false
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
951
ac_unrecognized_opts=
952
ac_unrecognized_sep=
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
953
# The variables have the same names as the options, with
954
# dashes changed to underlines.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
955
cache_file=/dev/null
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
956
exec_prefix=NONE
957
no_create=
958
no_recursion=
959
prefix=NONE
960
program_prefix=NONE
961
program_suffix=NONE
962
program_transform_name=s,x,x,
963
silent=
964
site=
965
srcdir=
966
verbose=
967
x_includes=NONE
968
x_libraries=NONE
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
969
970
# Installation directory options.
971
# These are left unexpanded so users can "make install exec_prefix=/foo"
972
# and all the variables that are supposed to be based on exec_prefix
973
# by default will actually change.
974
# Use braces instead of parens because sh, perl, etc. also accept them.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
975
# (The list follows the same order as the GNU Coding Standards.)
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
976
bindir='${exec_prefix}/bin'
977
sbindir='${exec_prefix}/sbin'
978
libexecdir='${exec_prefix}/libexec'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
979
datarootdir='${prefix}/share'
980
datadir='${datarootdir}'
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
981
sysconfdir='${prefix}/etc'
982
sharedstatedir='${prefix}/com'
983
localstatedir='${prefix}/var'
984
includedir='${prefix}/include'
985
oldincludedir='/usr/include'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
986
docdir='${datarootdir}/doc/${PACKAGE}'
987
infodir='${datarootdir}/info'
988
htmldir='${docdir}'
989
dvidir='${docdir}'
990
pdfdir='${docdir}'
991
psdir='${docdir}'
992
libdir='${exec_prefix}/lib'
993
localedir='${datarootdir}/locale'
994
mandir='${datarootdir}/man'
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
995
996
ac_prev=
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
997
ac_dashdash=
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
998
for ac_option
999
do
1000
  # If the previous option needs an argument, assign it.
1001
  if test -n "$ac_prev"; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1002
    eval $ac_prev=\$ac_option
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1003
    ac_prev=
1004
    continue
1005
  fi
1006
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1007
  case $ac_option in
1008
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009
  *)	ac_optarg=yes ;;
1010
  esac
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1011
1012
  # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1014
  case $ac_dashdash$ac_option in
1015
  --)
1016
    ac_dashdash=yes ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1017
1018
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019
    ac_prev=bindir ;;
1020
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1021
    bindir=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1022
1023
  -build | --build | --buil | --bui | --bu)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1024
    ac_prev=build_alias ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1025
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1026
    build_alias=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1027
1028
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1029
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030
    ac_prev=cache_file ;;
1031
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1033
    cache_file=$ac_optarg ;;
1034
1035
  --config-cache | -C)
1036
    cache_file=config.cache ;;
1037
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1038
  -datadir | --datadir | --datadi | --datad)
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1039
    ac_prev=datadir ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1040
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1041
    datadir=$ac_optarg ;;
1042
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1043
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044
  | --dataroo | --dataro | --datar)
1045
    ac_prev=datarootdir ;;
1046
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048
    datarootdir=$ac_optarg ;;
1049
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1050
  -disable-* | --disable-*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1051
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1052
    # Reject names that are not valid shell variable names.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1053
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054
      as_fn_error "invalid feature name: $ac_useropt"
1055
    ac_useropt_orig=$ac_useropt
1056
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057
    case $ac_user_opts in
1058
      *"
1059
"enable_$ac_useropt"
1060
"*) ;;
1061
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062
	 ac_unrecognized_sep=', ';;
1063
    esac
1064
    eval enable_$ac_useropt=no ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1065
1066
  -docdir | --docdir | --docdi | --doc | --do)
1067
    ac_prev=docdir ;;
1068
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069
    docdir=$ac_optarg ;;
1070
1071
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072
    ac_prev=dvidir ;;
1073
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074
    dvidir=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1075
1076
  -enable-* | --enable-*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1077
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1078
    # Reject names that are not valid shell variable names.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1079
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080
      as_fn_error "invalid feature name: $ac_useropt"
1081
    ac_useropt_orig=$ac_useropt
1082
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083
    case $ac_user_opts in
1084
      *"
1085
"enable_$ac_useropt"
1086
"*) ;;
1087
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088
	 ac_unrecognized_sep=', ';;
1089
    esac
1090
    eval enable_$ac_useropt=\$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1091
1092
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094
  | --exec | --exe | --ex)
1095
    ac_prev=exec_prefix ;;
1096
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098
  | --exec=* | --exe=* | --ex=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1099
    exec_prefix=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1100
1101
  -gas | --gas | --ga | --g)
1102
    # Obsolete; use --with-gas.
1103
    with_gas=yes ;;
1104
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1105
  -help | --help | --hel | --he | -h)
1106
    ac_init_help=long ;;
1107
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108
    ac_init_help=recursive ;;
1109
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110
    ac_init_help=short ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1111
1112
  -host | --host | --hos | --ho)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1113
    ac_prev=host_alias ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1114
  -host=* | --host=* | --hos=* | --ho=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1115
    host_alias=$ac_optarg ;;
1116
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1117
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118
    ac_prev=htmldir ;;
1119
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120
  | --ht=*)
1121
    htmldir=$ac_optarg ;;
1122
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1123
  -includedir | --includedir | --includedi | --included | --include \
1124
  | --includ | --inclu | --incl | --inc)
1125
    ac_prev=includedir ;;
1126
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1128
    includedir=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1129
1130
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1131
    ac_prev=infodir ;;
1132
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1133
    infodir=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1134
1135
  -libdir | --libdir | --libdi | --libd)
1136
    ac_prev=libdir ;;
1137
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1138
    libdir=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1139
1140
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141
  | --libexe | --libex | --libe)
1142
    ac_prev=libexecdir ;;
1143
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144
  | --libexe=* | --libex=* | --libe=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1145
    libexecdir=$ac_optarg ;;
1146
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1147
  -localedir | --localedir | --localedi | --localed | --locale)
1148
    ac_prev=localedir ;;
1149
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150
    localedir=$ac_optarg ;;
1151
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1152
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1153
  | --localstate | --localstat | --localsta | --localst | --locals)
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1154
    ac_prev=localstatedir ;;
1155
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1156
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1157
    localstatedir=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1158
1159
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160
    ac_prev=mandir ;;
1161
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1162
    mandir=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1163
1164
  -nfp | --nfp | --nf)
1165
    # Obsolete; use --without-fp.
1166
    with_fp=no ;;
1167
1168
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1169
  | --no-cr | --no-c | -n)
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1170
    no_create=yes ;;
1171
1172
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174
    no_recursion=yes ;;
1175
1176
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178
  | --oldin | --oldi | --old | --ol | --o)
1179
    ac_prev=oldincludedir ;;
1180
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1183
    oldincludedir=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1184
1185
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186
    ac_prev=prefix ;;
1187
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1188
    prefix=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1189
1190
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191
  | --program-pre | --program-pr | --program-p)
1192
    ac_prev=program_prefix ;;
1193
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1195
    program_prefix=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1196
1197
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198
  | --program-suf | --program-su | --program-s)
1199
    ac_prev=program_suffix ;;
1200
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1202
    program_suffix=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1203
1204
  -program-transform-name | --program-transform-name \
1205
  | --program-transform-nam | --program-transform-na \
1206
  | --program-transform-n | --program-transform- \
1207
  | --program-transform | --program-transfor \
1208
  | --program-transfo | --program-transf \
1209
  | --program-trans | --program-tran \
1210
  | --progr-tra | --program-tr | --program-t)
1211
    ac_prev=program_transform_name ;;
1212
  -program-transform-name=* | --program-transform-name=* \
1213
  | --program-transform-nam=* | --program-transform-na=* \
1214
  | --program-transform-n=* | --program-transform-=* \
1215
  | --program-transform=* | --program-transfor=* \
1216
  | --program-transfo=* | --program-transf=* \
1217
  | --program-trans=* | --program-tran=* \
1218
  | --progr-tra=* | --program-tr=* | --program-t=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1219
    program_transform_name=$ac_optarg ;;
1220
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1221
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222
    ac_prev=pdfdir ;;
1223
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224
    pdfdir=$ac_optarg ;;
1225
1226
  -psdir | --psdir | --psdi | --psd | --ps)
1227
    ac_prev=psdir ;;
1228
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229
    psdir=$ac_optarg ;;
1230
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1231
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232
  | -silent | --silent | --silen | --sile | --sil)
1233
    silent=yes ;;
1234
1235
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236
    ac_prev=sbindir ;;
1237
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238
  | --sbi=* | --sb=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1239
    sbindir=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1240
1241
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243
  | --sharedst | --shareds | --shared | --share | --shar \
1244
  | --sha | --sh)
1245
    ac_prev=sharedstatedir ;;
1246
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249
  | --sha=* | --sh=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1250
    sharedstatedir=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1251
1252
  -site | --site | --sit)
1253
    ac_prev=site ;;
1254
  -site=* | --site=* | --sit=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1255
    site=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1256
1257
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258
    ac_prev=srcdir ;;
1259
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1260
    srcdir=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1261
1262
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263
  | --syscon | --sysco | --sysc | --sys | --sy)
1264
    ac_prev=sysconfdir ;;
1265
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1267
    sysconfdir=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1268
1269
  -target | --target | --targe | --targ | --tar | --ta | --t)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1270
    ac_prev=target_alias ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1271
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1272
    target_alias=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1273
1274
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275
    verbose=yes ;;
1276
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1277
  -version | --version | --versio | --versi | --vers | -V)
1278
    ac_init_version=: ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1279
1280
  -with-* | --with-*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1281
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1282
    # Reject names that are not valid shell variable names.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1283
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284
      as_fn_error "invalid package name: $ac_useropt"
1285
    ac_useropt_orig=$ac_useropt
1286
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287
    case $ac_user_opts in
1288
      *"
1289
"with_$ac_useropt"
1290
"*) ;;
1291
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292
	 ac_unrecognized_sep=', ';;
1293
    esac
1294
    eval with_$ac_useropt=\$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1295
1296
  -without-* | --without-*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1297
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1298
    # Reject names that are not valid shell variable names.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1299
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300
      as_fn_error "invalid package name: $ac_useropt"
1301
    ac_useropt_orig=$ac_useropt
1302
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303
    case $ac_user_opts in
1304
      *"
1305
"with_$ac_useropt"
1306
"*) ;;
1307
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308
	 ac_unrecognized_sep=', ';;
1309
    esac
1310
    eval with_$ac_useropt=no ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1311
1312
  --x)
1313
    # Obsolete; use --with-x.
1314
    with_x=yes ;;
1315
1316
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317
  | --x-incl | --x-inc | --x-in | --x-i)
1318
    ac_prev=x_includes ;;
1319
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1321
    x_includes=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1322
1323
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325
    ac_prev=x_libraries ;;
1326
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1328
    x_libraries=$ac_optarg ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1329
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1330
  -*) as_fn_error "unrecognized option: \`$ac_option'
1331
Try \`$0 --help' for more information."
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1332
    ;;
1333
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1334
  *=*)
1335
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336
    # Reject names that are not valid shell variable names.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1337
    case $ac_envvar in #(
1338
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1339
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1340
    esac
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1341
    eval $ac_envvar=\$ac_optarg
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1342
    export $ac_envvar ;;
1343
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1344
  *)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1345
    # FIXME: should be removed in autoconf 3.0.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1346
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1347
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1348
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1349
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1350
    ;;
1351
1352
  esac
1353
done
1354
1355
if test -n "$ac_prev"; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1356
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1357
  as_fn_error "missing argument to $ac_option"
1358
fi
1359
1360
if test -n "$ac_unrecognized_opts"; then
1361
  case $enable_option_checking in
1362
    no) ;;
1363
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1364
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365
  esac
1366
fi
1367
1368
# Check all directory arguments for consistency.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1369
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370
		datadir sysconfdir sharedstatedir localstatedir includedir \
1371
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372
		libdir localedir mandir
1373
do
1374
  eval ac_val=\$$ac_var
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1375
  # Remove trailing slashes.
1376
  case $ac_val in
1377
    */ )
1378
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379
      eval $ac_var=\$ac_val;;
1380
  esac
1381
  # Be sure to have absolute directory names.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1382
  case $ac_val in
1383
    [\\/$]* | ?:[\\/]* )  continue;;
1384
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385
  esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1386
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1387
done
1388
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1389
# There might be people who depend on the old broken behavior: `$host'
1390
# used to hold the argument of --host etc.
1391
# FIXME: To remove some day.
1392
build=$build_alias
1393
host=$host_alias
1394
target=$target_alias
1395
1396
# FIXME: To remove some day.
1397
if test "x$host_alias" != x; then
1398
  if test "x$build_alias" = x; then
1399
    cross_compiling=maybe
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1400
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1401
    If a cross compiler is detected then cross compile mode will be used." >&2
1402
  elif test "x$build_alias" != "x$host_alias"; then
1403
    cross_compiling=yes
1404
  fi
1405
fi
1406
1407
ac_tool_prefix=
1408
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410
test "$silent" = yes && exec 6>/dev/null
1411
1412
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1413
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414
ac_ls_di=`ls -di .` &&
1415
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1416
  as_fn_error "working directory cannot be determined"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1417
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1418
  as_fn_error "pwd does not report name of working directory"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1419
1420
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1421
# Find the source files, if location was not specified.
1422
if test -z "$srcdir"; then
1423
  ac_srcdir_defaulted=yes
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1424
  # Try the directory containing this script, then the parent directory.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1425
  ac_confdir=`$as_dirname -- "$as_myself" ||
1426
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1428
	 X"$as_myself" : 'X\(//\)$' \| \
1429
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430
$as_echo X"$as_myself" |
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1431
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432
	    s//\1/
1433
	    q
1434
	  }
1435
	  /^X\(\/\/\)[^/].*/{
1436
	    s//\1/
1437
	    q
1438
	  }
1439
	  /^X\(\/\/\)$/{
1440
	    s//\1/
1441
	    q
1442
	  }
1443
	  /^X\(\/\).*/{
1444
	    s//\1/
1445
	    q
1446
	  }
1447
	  s/.*/./; q'`
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1448
  srcdir=$ac_confdir
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1449
  if test ! -r "$srcdir/$ac_unique_file"; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
1450
    srcdir=..
1451
  fi
1452
else
1453
  ac_srcdir_defaulted=no
1454
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1455
if test ! -r "$srcdir/$ac_unique_file"; then
1456
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1457
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1458
fi
1459
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460
ac_abs_confdir=`(
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1461
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1462
	pwd)`
1463
# When building in place, set srcdir=.
1464
if test "$ac_abs_confdir" = "$ac_pwd"; then
1465
  srcdir=.
1466
fi
1467
# Remove unnecessary trailing slashes from srcdir.
1468
# Double slashes in file names in object file debugging info
1469
# mess up M-x gdb in Emacs.
1470
case $srcdir in
1471
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472
esac
1473
for ac_var in $ac_precious_vars; do
1474
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475
  eval ac_env_${ac_var}_value=\$${ac_var}
1476
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478
done
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1479
1480
#
1481
# Report the --help message.
1482
#
1483
if test "$ac_init_help" = "long"; then
1484
  # Omit some internal or obsolete options to make the list less imposing.
1485
  # This message is too long to be a string in the A/UX 3.1 sh.
1486
  cat <<_ACEOF
1487
\`configure' configures this package to adapt to many kinds of systems.
1488
1489
Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492
VAR=VALUE.  See below for descriptions of some of the useful variables.
1493
1494
Defaults for the options are specified in brackets.
1495
1496
Configuration:
1497
  -h, --help              display this help and exit
1498
      --help=short        display options specific to this package
1499
      --help=recursive    display the short help of all the included packages
1500
  -V, --version           display version information and exit
1501
  -q, --quiet, --silent   do not print \`checking...' messages
1502
      --cache-file=FILE   cache test results in FILE [disabled]
1503
  -C, --config-cache      alias for \`--cache-file=config.cache'
1504
  -n, --no-create         do not create output files
1505
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1506
1507
Installation directories:
1508
  --prefix=PREFIX         install architecture-independent files in PREFIX
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1509
                          [$ac_default_prefix]
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1510
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1511
                          [PREFIX]
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1512
1513
By default, \`make install' will install all the files in
1514
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1515
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516
for instance \`--prefix=\$HOME'.
1517
1518
For better control, use the options below.
1519
1520
Fine tuning of the installation directories:
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1521
  --bindir=DIR            user executables [EPREFIX/bin]
1522
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1523
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1524
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1525
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1526
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1527
  --libdir=DIR            object code libraries [EPREFIX/lib]
1528
  --includedir=DIR        C header files [PREFIX/include]
1529
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1530
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1531
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1532
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1533
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1534
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1535
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1536
  --htmldir=DIR           html documentation [DOCDIR]
1537
  --dvidir=DIR            dvi documentation [DOCDIR]
1538
  --pdfdir=DIR            pdf documentation [DOCDIR]
1539
  --psdir=DIR             ps documentation [DOCDIR]
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1540
_ACEOF
1541
1542
  cat <<\_ACEOF
1543
1544
Program names:
1545
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1546
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1547
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1548
1549
X features:
1550
  --x-includes=DIR    X include files are in DIR
1551
  --x-libraries=DIR   X library files are in DIR
1552
1553
System types:
1554
  --build=BUILD     configure for building on BUILD [guessed]
1555
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1556
_ACEOF
1557
fi
1558
1559
if test -n "$ac_init_help"; then
1560
1561
  cat <<\_ACEOF
1562
1563
Optional Features:
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1564
  --disable-option-checking  ignore unrecognized --enable/--with options
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1565
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1566
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1567
  --disable-dependency-tracking  speeds up one-time build
1568
  --enable-dependency-tracking   do not reject slow dependency extractors
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1569
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1570
  --enable-static[=PKGS]  build static libraries [default=yes]
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1571
  --enable-fast-install[=PKGS]
1572
                          optimize for fast installation [default=yes]
1573
  --disable-libtool-lock  avoid locking (might break parallel builds)
1574
  --enable-maintainer-mode    enable maintainer specific things
1575
  --enable-sandboxed      don't touch anything out of the install directory
1576
  --disable-long-codes    use this if your compiler won't do long long
1577
  --enable-dyncodes       use dynamic codes
1578
  --enable-debug          enable debugging features
1579
  --disable-daemonize     disable daemons from daemonizing
1580
1581
Optional Packages:
1582
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1583
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1584
  --with-pic              try to use only PIC/non-PIC objects [default=use
1585
                          both]
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1586
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1587
  --with-x                use the X Window System
1588
  --with-kerneldir=DIR    kernel sources in DIR
1589
  --with-driver=X         specify the driver to use, where X is one of:
1590
                          all, none, userspace, accent, act200l,
1591
                          act220l, adaptec, alsa_usb, animax, asusdh,
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1592
                          atilibusb, atiusb, atwf83, audio, audio_alsa
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1593
                          avermedia, avermedia_vdomate, avermedia98,
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
1594
                          awlibusb, bestbuy, bestbuy2, breakoutbox,
1595
                          bte, bw6130, caraca, chronos, commandir,
1596
                          comX, cph06x, creative, creative_infracd,
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1597
                          devinput, dfclibusb, digimatrix, dsp, dvico, ea65,
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
1598
                          ene0100, exaudio, flyvideo, ftdi, gvbctv5pci,
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
1599
                          hauppauge, hauppauge_dvb,
1600
                          hercules_smarttv_stereo, i2cuser,
1601
                          igorplugusb, iguanaIR, imon, imon_24g,
1602
                          imon_knob, imon_lcd, imon_pad, imon_rsc,
1603
                          irdeo, irdeo_remote, irlink, irman, irreal,
1604
                          it87, ite8709, knc_one, kworld,
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
1605
                          leadtek_0007, leadtek_0010, leadtek_pvr2000,
1606
                          livedrive_midi, livedrive_seq, logitech,
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
1607
                          lptX, macmini, mceusb, mediafocusI,
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
1608
                          mouseremote, mouseremote_ps2, mp3anywhere,
1609
                          mplay, nslu2,packard_bell, parallel, pcmak,
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1610
                          pcmak_usb, pctv, pixelview_bt878,
1611
                          pixelview_pak, pixelview_pro, provideo,
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
1612
                          realmagic, remotemaster, sa1100, samsung,
1613
                          sasem, sb0540, serial, silitek, sir, slinke,
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1614
                          srm7500libusb, streamzap, tekram,
1615
                          tekram_bt829, tira, tira_raw, ttusbir,
1616
                          tuxbox, tvbox, udp, uirt2, uirt2_raw,
1617
                          usb_uirt_raw, usbx, wpc8769l
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1618
  --with-devdir=DIR       Install device files in DIR (/dev)
1619
  --with-moduledir=DIR    kernel modules in DIR (/lib/modules/`uname -r`/misc)
1620
  --with-major=value      specify the device major for the driver (61)
1621
  --with-port=port        specify the port number for the lirc device.
1622
  --with-irq=irq          specify the irq line for the lirc device.
1623
  --with-timer=value      specify the timer value for the parallel driver
1624
  --with-tty=file         specify the tty to use (Irman, RemoteMaster, etc.)
1625
  --without-soft-carrier  use this if your serial hw generates carrier
1626
  --with-transmitter      use this if you use a transmitter diode
1627
  --with-igor             use this if you have an Igor Cesko receiver
1628
  --with-syslog=facility  use syslog instead of logfile
1629
1630
Some influential environment variables:
1631
  CC          C compiler command
1632
  CFLAGS      C compiler flags
1633
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1634
              nonstandard directory <lib dir>
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1635
  LIBS        libraries to pass to the linker, e.g. -l<library>
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1636
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1637
              you have headers in a nonstandard directory <include dir>
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1638
  CPP         C preprocessor
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1639
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1640
1641
Use these variables to override the choices made by `configure' or to help
1642
it to find libraries and programs with nonstandard names/locations.
1643
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1644
Report bugs to the package provider.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1645
_ACEOF
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1646
ac_status=$?
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1647
fi
1648
1649
if test "$ac_init_help" = "recursive"; then
1650
  # If there are subdirs, report their specific --help.
1651
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1652
    test -d "$ac_dir" ||
1653
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1654
      continue
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1655
    ac_builddir=.
1656
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1657
case "$ac_dir" in
1658
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659
*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1660
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1661
  # A ".." for each directory in $ac_dir_suffix.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1662
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1663
  case $ac_top_builddir_sub in
1664
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1666
  esac ;;
1667
esac
1668
ac_abs_top_builddir=$ac_pwd
1669
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1670
# for backward compatibility:
1671
ac_top_builddir=$ac_top_build_prefix
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1672
1673
case $srcdir in
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1674
  .)  # We are building in place.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1675
    ac_srcdir=.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1676
    ac_top_srcdir=$ac_top_builddir_sub
1677
    ac_abs_top_srcdir=$ac_pwd ;;
1678
  [\\/]* | ?:[\\/]* )  # Absolute name.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1679
    ac_srcdir=$srcdir$ac_dir_suffix;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1680
    ac_top_srcdir=$srcdir
1681
    ac_abs_top_srcdir=$srcdir ;;
1682
  *) # Relative name.
1683
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1684
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1685
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1686
esac
1687
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1688
1689
    cd "$ac_dir" || { ac_status=$?; continue; }
1690
    # Check for guested configure.
1691
    if test -f "$ac_srcdir/configure.gnu"; then
1692
      echo &&
1693
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1694
    elif test -f "$ac_srcdir/configure"; then
1695
      echo &&
1696
      $SHELL "$ac_srcdir/configure" --help=recursive
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1697
    else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1698
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1699
    fi || ac_status=$?
1700
    cd "$ac_pwd" || { ac_status=$?; break; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1701
  done
1702
fi
1703
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1704
test -n "$ac_init_help" && exit $ac_status
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1705
if $ac_init_version; then
1706
  cat <<\_ACEOF
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1707
configure
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1708
generated by GNU Autoconf 2.65
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1709
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1710
Copyright (C) 2009 Free Software Foundation, Inc.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1711
This configure script is free software; the Free Software Foundation
1712
gives unlimited permission to copy, distribute and modify it.
1713
_ACEOF
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
1714
  exit
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
1715
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
1716
1717
## ------------------------ ##
1718
## Autoconf initialization. ##
1719
## ------------------------ ##
1720
1721
# ac_fn_c_try_compile LINENO
1722
# --------------------------
1723
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1724
ac_fn_c_try_compile ()
1725
{
1726
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727
  rm -f conftest.$ac_objext
1728
  if { { ac_try="$ac_compile"
1729
case "(($ac_try" in
1730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731
  *) ac_try_echo=$ac_try;;
1732
esac
1733
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734
$as_echo "$ac_try_echo"; } >&5
1735
  (eval "$ac_compile") 2>conftest.err
1736
  ac_status=$?
1737
  if test -s conftest.err; then
1738
    grep -v '^ *+' conftest.err >conftest.er1
1739
    cat conftest.er1 >&5
1740
    mv -f conftest.er1 conftest.err
1741
  fi
1742
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743
  test $ac_status = 0; } && {
1744
	 test -z "$ac_c_werror_flag" ||
1745
	 test ! -s conftest.err
1746
       } && test -s conftest.$ac_objext; then :
1747
  ac_retval=0
1748
else
1749
  $as_echo "$as_me: failed program was:" >&5
1750
sed 's/^/| /' conftest.$ac_ext >&5
1751
1752
	ac_retval=1
1753
fi
1754
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755
  as_fn_set_status $ac_retval
1756
1757
} # ac_fn_c_try_compile
1758
1759
# ac_fn_c_try_link LINENO
1760
# -----------------------
1761
# Try to link conftest.$ac_ext, and return whether this succeeded.
1762
ac_fn_c_try_link ()
1763
{
1764
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765
  rm -f conftest.$ac_objext conftest$ac_exeext
1766
  if { { ac_try="$ac_link"
1767
case "(($ac_try" in
1768
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769
  *) ac_try_echo=$ac_try;;
1770
esac
1771
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772
$as_echo "$ac_try_echo"; } >&5
1773
  (eval "$ac_link") 2>conftest.err
1774
  ac_status=$?
1775
  if test -s conftest.err; then
1776
    grep -v '^ *+' conftest.err >conftest.er1
1777
    cat conftest.er1 >&5
1778
    mv -f conftest.er1 conftest.err
1779
  fi
1780
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781
  test $ac_status = 0; } && {
1782
	 test -z "$ac_c_werror_flag" ||
1783
	 test ! -s conftest.err
1784
       } && test -s conftest$ac_exeext && {
1785
	 test "$cross_compiling" = yes ||
1786
	 $as_test_x conftest$ac_exeext
1787
       }; then :
1788
  ac_retval=0
1789
else
1790
  $as_echo "$as_me: failed program was:" >&5
1791
sed 's/^/| /' conftest.$ac_ext >&5
1792
1793
	ac_retval=1
1794
fi
1795
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797
  # interfere with the next link command; also delete a directory that is
1798
  # left behind by Apple's compiler.  We do this before executing the actions.
1799
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801
  as_fn_set_status $ac_retval
1802
1803
} # ac_fn_c_try_link
1804
1805
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1806
# -------------------------------------------------------
1807
# Tests whether HEADER exists and can be compiled using the include files in
1808
# INCLUDES, setting the cache variable VAR accordingly.
1809
ac_fn_c_check_header_compile ()
1810
{
1811
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813
$as_echo_n "checking for $2... " >&6; }
1814
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1815
  $as_echo_n "(cached) " >&6
1816
else
1817
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818
/* end confdefs.h.  */
1819
$4
1820
#include <$2>
1821
_ACEOF
1822
if ac_fn_c_try_compile "$LINENO"; then :
1823
  eval "$3=yes"
1824
else
1825
  eval "$3=no"
1826
fi
1827
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828
fi
1829
eval ac_res=\$$3
1830
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831
$as_echo "$ac_res" >&6; }
1832
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833
1834
} # ac_fn_c_check_header_compile
1835
1836
# ac_fn_c_try_cpp LINENO
1837
# ----------------------
1838
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839
ac_fn_c_try_cpp ()
1840
{
1841
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1843
case "(($ac_try" in
1844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845
  *) ac_try_echo=$ac_try;;
1846
esac
1847
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848
$as_echo "$ac_try_echo"; } >&5
1849
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850
  ac_status=$?
1851
  if test -s conftest.err; then
1852
    grep -v '^ *+' conftest.err >conftest.er1
1853
    cat conftest.er1 >&5
1854
    mv -f conftest.er1 conftest.err
1855
  fi
1856
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857
  test $ac_status = 0; } >/dev/null && {
1858
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1859
	 test ! -s conftest.err
1860
       }; then :
1861
  ac_retval=0
1862
else
1863
  $as_echo "$as_me: failed program was:" >&5
1864
sed 's/^/| /' conftest.$ac_ext >&5
1865
1866
    ac_retval=1
1867
fi
1868
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869
  as_fn_set_status $ac_retval
1870
1871
} # ac_fn_c_try_cpp
1872
1873
# ac_fn_c_try_run LINENO
1874
# ----------------------
1875
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1876
# that executables *can* be run.
1877
ac_fn_c_try_run ()
1878
{
1879
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880
  if { { ac_try="$ac_link"
1881
case "(($ac_try" in
1882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883
  *) ac_try_echo=$ac_try;;
1884
esac
1885
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886
$as_echo "$ac_try_echo"; } >&5
1887
  (eval "$ac_link") 2>&5
1888
  ac_status=$?
1889
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1891
  { { case "(($ac_try" in
1892
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893
  *) ac_try_echo=$ac_try;;
1894
esac
1895
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896
$as_echo "$ac_try_echo"; } >&5
1897
  (eval "$ac_try") 2>&5
1898
  ac_status=$?
1899
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900
  test $ac_status = 0; }; }; then :
1901
  ac_retval=0
1902
else
1903
  $as_echo "$as_me: program exited with status $ac_status" >&5
1904
       $as_echo "$as_me: failed program was:" >&5
1905
sed 's/^/| /' conftest.$ac_ext >&5
1906
1907
       ac_retval=$ac_status
1908
fi
1909
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911
  as_fn_set_status $ac_retval
1912
1913
} # ac_fn_c_try_run
1914
1915
# ac_fn_c_check_func LINENO FUNC VAR
1916
# ----------------------------------
1917
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1918
ac_fn_c_check_func ()
1919
{
1920
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922
$as_echo_n "checking for $2... " >&6; }
1923
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924
  $as_echo_n "(cached) " >&6
1925
else
1926
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927
/* end confdefs.h.  */
1928
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1929
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1930
#define $2 innocuous_$2
1931
1932
/* System header to define __stub macros and hopefully few prototypes,
1933
    which can conflict with char $2 (); below.
1934
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1935
    <limits.h> exists even on freestanding compilers.  */
1936
1937
#ifdef __STDC__
1938
# include <limits.h>
1939
#else
1940
# include <assert.h>
1941
#endif
1942
1943
#undef $2
1944
1945
/* Override any GCC internal prototype to avoid an error.
1946
   Use char because int might match the return type of a GCC
1947
   builtin and then its argument prototype would still apply.  */
1948
#ifdef __cplusplus
1949
extern "C"
1950
#endif
1951
char $2 ();
1952
/* The GNU C library defines this for functions which it implements
1953
    to always fail with ENOSYS.  Some functions are actually named
1954
    something starting with __ and the normal name is an alias.  */
1955
#if defined __stub_$2 || defined __stub___$2
1956
choke me
1957
#endif
1958
1959
int
1960
main ()
1961
{
1962
return $2 ();
1963
  ;
1964
  return 0;
1965
}
1966
_ACEOF
1967
if ac_fn_c_try_link "$LINENO"; then :
1968
  eval "$3=yes"
1969
else
1970
  eval "$3=no"
1971
fi
1972
rm -f core conftest.err conftest.$ac_objext \
1973
    conftest$ac_exeext conftest.$ac_ext
1974
fi
1975
eval ac_res=\$$3
1976
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977
$as_echo "$ac_res" >&6; }
1978
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979
1980
} # ac_fn_c_check_func
1981
1982
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1983
# -------------------------------------------------------
1984
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1985
# the include files in INCLUDES and setting the cache variable VAR
1986
# accordingly.
1987
ac_fn_c_check_header_mongrel ()
1988
{
1989
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1991
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992
$as_echo_n "checking for $2... " >&6; }
1993
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994
  $as_echo_n "(cached) " >&6
1995
fi
1996
eval ac_res=\$$3
1997
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998
$as_echo "$ac_res" >&6; }
1999
else
2000
  # Is the header compilable?
2001
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2002
$as_echo_n "checking $2 usability... " >&6; }
2003
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004
/* end confdefs.h.  */
2005
$4
2006
#include <$2>
2007
_ACEOF
2008
if ac_fn_c_try_compile "$LINENO"; then :
2009
  ac_header_compiler=yes
2010
else
2011
  ac_header_compiler=no
2012
fi
2013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2015
$as_echo "$ac_header_compiler" >&6; }
2016
2017
# Is the header present?
2018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2019
$as_echo_n "checking $2 presence... " >&6; }
2020
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021
/* end confdefs.h.  */
2022
#include <$2>
2023
_ACEOF
2024
if ac_fn_c_try_cpp "$LINENO"; then :
2025
  ac_header_preproc=yes
2026
else
2027
  ac_header_preproc=no
2028
fi
2029
rm -f conftest.err conftest.$ac_ext
2030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2031
$as_echo "$ac_header_preproc" >&6; }
2032
2033
# So?  What about this header?
2034
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2035
  yes:no: )
2036
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2037
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2038
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040
    ;;
2041
  no:yes:* )
2042
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2043
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2044
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2045
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2046
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2047
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2048
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2049
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2050
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2052
    ;;
2053
esac
2054
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055
$as_echo_n "checking for $2... " >&6; }
2056
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2057
  $as_echo_n "(cached) " >&6
2058
else
2059
  eval "$3=\$ac_header_compiler"
2060
fi
2061
eval ac_res=\$$3
2062
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063
$as_echo "$ac_res" >&6; }
2064
fi
2065
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066
2067
} # ac_fn_c_check_header_mongrel
2068
2069
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2070
# -------------------------------------------
2071
# Tests whether TYPE exists after having included INCLUDES, setting cache
2072
# variable VAR accordingly.
2073
ac_fn_c_check_type ()
2074
{
2075
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077
$as_echo_n "checking for $2... " >&6; }
2078
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2079
  $as_echo_n "(cached) " >&6
2080
else
2081
  eval "$3=no"
2082
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083
/* end confdefs.h.  */
2084
$4
2085
int
2086
main ()
2087
{
2088
if (sizeof ($2))
2089
	 return 0;
2090
  ;
2091
  return 0;
2092
}
2093
_ACEOF
2094
if ac_fn_c_try_compile "$LINENO"; then :
2095
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096
/* end confdefs.h.  */
2097
$4
2098
int
2099
main ()
2100
{
2101
if (sizeof (($2)))
2102
	    return 0;
2103
  ;
2104
  return 0;
2105
}
2106
_ACEOF
2107
if ac_fn_c_try_compile "$LINENO"; then :
2108
2109
else
2110
  eval "$3=yes"
2111
fi
2112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113
fi
2114
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115
fi
2116
eval ac_res=\$$3
2117
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118
$as_echo "$ac_res" >&6; }
2119
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120
2121
} # ac_fn_c_check_type
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2122
cat >config.log <<_ACEOF
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2123
This file contains any messages produced by compilers while
2124
running configure, to aid debugging if configure makes a mistake.
2125
2126
It was created by $as_me, which was
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2127
generated by GNU Autoconf 2.65.  Invocation command line was
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2128
2129
  $ $0 $@
2130
2131
_ACEOF
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2132
exec 5>>config.log
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2133
{
2134
cat <<_ASUNAME
2135
## --------- ##
2136
## Platform. ##
2137
## --------- ##
2138
2139
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2140
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2141
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2142
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2143
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2144
2145
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2146
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2147
2148
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2149
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2150
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2151
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2152
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2153
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2154
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2155
2156
_ASUNAME
2157
2158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159
for as_dir in $PATH
2160
do
2161
  IFS=$as_save_IFS
2162
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2163
    $as_echo "PATH: $as_dir"
2164
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2165
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2166
2167
} >&5
2168
2169
cat >&5 <<_ACEOF
2170
2171
2172
## ----------- ##
2173
## Core tests. ##
2174
## ----------- ##
2175
2176
_ACEOF
2177
2178
2179
# Keep a trace of the command line.
2180
# Strip out --no-create and --no-recursion so they do not pile up.
2181
# Strip out --silent because we don't want to record it for future runs.
2182
# Also quote any args containing shell meta-characters.
2183
# Make two passes to allow for proper duplicate-argument suppression.
2184
ac_configure_args=
2185
ac_configure_args0=
2186
ac_configure_args1=
2187
ac_must_keep_next=false
2188
for ac_pass in 1 2
2189
do
2190
  for ac_arg
2191
  do
2192
    case $ac_arg in
2193
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2194
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2195
    | -silent | --silent | --silen | --sile | --sil)
2196
      continue ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2197
    *\'*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2198
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2199
    esac
2200
    case $ac_pass in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2201
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2202
    2)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2203
      as_fn_append ac_configure_args1 " '$ac_arg'"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2204
      if test $ac_must_keep_next = true; then
2205
	ac_must_keep_next=false # Got value, back to normal.
2206
      else
2207
	case $ac_arg in
2208
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2209
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2210
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2211
	  | -with-* | --with-* | -without-* | --without-* | --x)
2212
	    case "$ac_configure_args0 " in
2213
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2214
	    esac
2215
	    ;;
2216
	  -* ) ac_must_keep_next=true ;;
2217
	esac
2218
      fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2219
      as_fn_append ac_configure_args " '$ac_arg'"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2220
      ;;
2221
    esac
2222
  done
2223
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2224
{ ac_configure_args0=; unset ac_configure_args0;}
2225
{ ac_configure_args1=; unset ac_configure_args1;}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2226
2227
# When interrupted or exit'd, cleanup temporary files, and complete
2228
# config.log.  We remove comments because anyway the quotes in there
2229
# would cause problems or look ugly.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2230
# WARNING: Use '\'' to represent an apostrophe within the trap.
2231
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2232
trap 'exit_status=$?
2233
  # Save into config.log some information that might help in debugging.
2234
  {
2235
    echo
2236
2237
    cat <<\_ASBOX
2238
## ---------------- ##
2239
## Cache variables. ##
2240
## ---------------- ##
2241
_ASBOX
2242
    echo
2243
    # The following way of writing the cache mishandles newlines in values,
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2244
(
2245
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2246
    eval ac_val=\$$ac_var
2247
    case $ac_val in #(
2248
    *${as_nl}*)
2249
      case $ac_var in #(
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2250
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2251
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2252
      esac
2253
      case $ac_var in #(
2254
      _ | IFS | as_nl) ;; #(
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2255
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2256
      *) { eval $ac_var=; unset $ac_var;} ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2257
      esac ;;
2258
    esac
2259
  done
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2260
  (set) 2>&1 |
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2261
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2262
    *${as_nl}ac_space=\ *)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2263
      sed -n \
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2264
	"s/'\''/'\''\\\\'\'''\''/g;
2265
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2266
      ;; #(
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2267
    *)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2268
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2269
      ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2270
    esac |
2271
    sort
2272
)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2273
    echo
2274
2275
    cat <<\_ASBOX
2276
## ----------------- ##
2277
## Output variables. ##
2278
## ----------------- ##
2279
_ASBOX
2280
    echo
2281
    for ac_var in $ac_subst_vars
2282
    do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2283
      eval ac_val=\$$ac_var
2284
      case $ac_val in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2285
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2286
      esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2287
      $as_echo "$ac_var='\''$ac_val'\''"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2288
    done | sort
2289
    echo
2290
2291
    if test -n "$ac_subst_files"; then
2292
      cat <<\_ASBOX
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2293
## ------------------- ##
2294
## File substitutions. ##
2295
## ------------------- ##
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2296
_ASBOX
2297
      echo
2298
      for ac_var in $ac_subst_files
2299
      do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2300
	eval ac_val=\$$ac_var
2301
	case $ac_val in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2302
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2303
	esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2304
	$as_echo "$ac_var='\''$ac_val'\''"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2305
      done | sort
2306
      echo
2307
    fi
2308
2309
    if test -s confdefs.h; then
2310
      cat <<\_ASBOX
2311
## ----------- ##
2312
## confdefs.h. ##
2313
## ----------- ##
2314
_ASBOX
2315
      echo
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2316
      cat confdefs.h
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2317
      echo
2318
    fi
2319
    test "$ac_signal" != 0 &&
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2320
      $as_echo "$as_me: caught signal $ac_signal"
2321
    $as_echo "$as_me: exit $exit_status"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2322
  } >&5
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2323
  rm -f core *.core core.conftest.* &&
2324
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2325
    exit $exit_status
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2326
' 0
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2327
for ac_signal in 1 2 13 15; do
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2328
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2329
done
2330
ac_signal=0
2331
2332
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2333
rm -f -r conftest* confdefs.h
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2334
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2335
$as_echo "/* confdefs.h */" > confdefs.h
2336
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2337
# Predefined preprocessor variables.
2338
2339
cat >>confdefs.h <<_ACEOF
2340
#define PACKAGE_NAME "$PACKAGE_NAME"
2341
_ACEOF
2342
2343
cat >>confdefs.h <<_ACEOF
2344
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2345
_ACEOF
2346
2347
cat >>confdefs.h <<_ACEOF
2348
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2349
_ACEOF
2350
2351
cat >>confdefs.h <<_ACEOF
2352
#define PACKAGE_STRING "$PACKAGE_STRING"
2353
_ACEOF
2354
2355
cat >>confdefs.h <<_ACEOF
2356
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2357
_ACEOF
2358
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2359
cat >>confdefs.h <<_ACEOF
2360
#define PACKAGE_URL "$PACKAGE_URL"
2361
_ACEOF
2362
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2363
2364
# Let the site file select an alternate cache file if it wants to.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2365
# Prefer an explicitly selected file to automatically selected ones.
2366
ac_site_file1=NONE
2367
ac_site_file2=NONE
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2368
if test -n "$CONFIG_SITE"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2369
  ac_site_file1=$CONFIG_SITE
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2370
elif test "x$prefix" != xNONE; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2371
  ac_site_file1=$prefix/share/config.site
2372
  ac_site_file2=$prefix/etc/config.site
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2373
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2374
  ac_site_file1=$ac_default_prefix/share/config.site
2375
  ac_site_file2=$ac_default_prefix/etc/config.site
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2376
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2377
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2378
do
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2379
  test "x$ac_site_file" = xNONE && continue
2380
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2381
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2382
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2383
    sed 's/^/| /' "$ac_site_file" >&5
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2384
    . "$ac_site_file"
2385
  fi
2386
done
2387
2388
if test -r "$cache_file"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2389
  # Some versions of bash will fail to source /dev/null (special files
2390
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2391
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2392
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2393
$as_echo "$as_me: loading cache $cache_file" >&6;}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2394
    case $cache_file in
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2395
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2396
      *)                      . "./$cache_file";;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2397
    esac
2398
  fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2399
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2400
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2401
$as_echo "$as_me: creating cache $cache_file" >&6;}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2402
  >$cache_file
2403
fi
2404
2405
# Check that the precious variables saved in the cache have kept the same
2406
# value.
2407
ac_cache_corrupted=false
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2408
for ac_var in $ac_precious_vars; do
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2409
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2410
  eval ac_new_set=\$ac_env_${ac_var}_set
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2411
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2412
  eval ac_new_val=\$ac_env_${ac_var}_value
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2413
  case $ac_old_set,$ac_new_set in
2414
    set,)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2415
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2416
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2417
      ac_cache_corrupted=: ;;
2418
    ,set)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2419
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2420
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2421
      ac_cache_corrupted=: ;;
2422
    ,);;
2423
    *)
2424
      if test "x$ac_old_val" != "x$ac_new_val"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2425
	# differences in whitespace do not lead to failure.
2426
	ac_old_val_w=`echo x $ac_old_val`
2427
	ac_new_val_w=`echo x $ac_new_val`
2428
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2429
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2430
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2431
	  ac_cache_corrupted=:
2432
	else
2433
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2434
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2435
	  eval $ac_var=\$ac_old_val
2436
	fi
2437
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2438
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2439
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2440
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2441
      fi;;
2442
  esac
2443
  # Pass precious variables to config.status.
2444
  if test "$ac_new_set" = set; then
2445
    case $ac_new_val in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2446
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2447
    *) ac_arg=$ac_var=$ac_new_val ;;
2448
    esac
2449
    case " $ac_configure_args " in
2450
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2451
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2452
    esac
2453
  fi
2454
done
2455
if $ac_cache_corrupted; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2456
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2457
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2458
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2459
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2460
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2461
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2462
## -------------------- ##
2463
## Main body of script. ##
2464
## -------------------- ##
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2465
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2466
ac_ext=c
2467
ac_cpp='$CPP $CPPFLAGS'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2471
2472
2473
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
2474
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2475
am__api_version='1.11'
2476
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2477
ac_aux_dir=
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2478
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2479
  for ac_t in install-sh install.sh shtool; do
2480
    if test -f "$ac_dir/$ac_t"; then
2481
      ac_aux_dir=$ac_dir
2482
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2483
      break 2
2484
    fi
2485
  done
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2486
done
2487
if test -z "$ac_aux_dir"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2488
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2489
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2490
2491
# These three variables are undocumented and unsupported,
2492
# and are intended to be withdrawn in a future Autoconf release.
2493
# They can cause serious problems if a builder's source tree is in a directory
2494
# whose full name contains unusual characters.
2495
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2496
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2497
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2498
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2499
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2500
# Find a good install program.  We prefer a C program (faster),
2501
# so one script is as good as another.  But avoid the broken or
2502
# incompatible versions:
2503
# SysV /etc/install, /usr/sbin/install
2504
# SunOS /usr/etc/install
2505
# IRIX /sbin/install
2506
# AIX /bin/install
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2507
# AmigaOS /C/install, which installs bootblocks on floppy discs
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2508
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2509
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2510
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2511
# OS/2's system install, which has a completely different semantic
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2512
# ./install, which can be erroneously created by make from ./install.sh.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2513
# Reject install programs that cannot install multiple files.
2514
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2515
$as_echo_n "checking for a BSD-compatible install... " >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2516
if test -z "$INSTALL"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2517
if test "${ac_cv_path_install+set}" = set; then :
2518
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2519
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2520
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521
for as_dir in $PATH
2522
do
2523
  IFS=$as_save_IFS
2524
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2525
    # Account for people who put trailing slashes in PATH elements.
2526
case $as_dir/ in #((
2527
  ./ | .// | /[cC]/* | \
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2528
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2529
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2530
  /usr/ucb/* ) ;;
2531
  *)
2532
    # OSF1 and SCO ODT 3.0 have their own names for install.
2533
    # Don't use installbsd from OSF since it installs stuff as root
2534
    # by default.
2535
    for ac_prog in ginstall scoinst install; do
2536
      for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2537
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2538
	  if test $ac_prog = install &&
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2539
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2540
	    # AIX install.  It has an incompatible calling convention.
2541
	    :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2542
	  elif test $ac_prog = install &&
2543
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2544
	    # program-specific install script used by HP pwplus--don't use.
2545
	    :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2546
	  else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2547
	    rm -rf conftest.one conftest.two conftest.dir
2548
	    echo one > conftest.one
2549
	    echo two > conftest.two
2550
	    mkdir conftest.dir
2551
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2552
	      test -s conftest.one && test -s conftest.two &&
2553
	      test -s conftest.dir/conftest.one &&
2554
	      test -s conftest.dir/conftest.two
2555
	    then
2556
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2557
	      break 3
2558
	    fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2559
	  fi
2560
	fi
2561
      done
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2562
    done
2563
    ;;
2564
esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2565
2566
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2567
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2568
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2569
rm -rf conftest.one conftest.two conftest.dir
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2570
2571
fi
2572
  if test "${ac_cv_path_install+set}" = set; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2573
    INSTALL=$ac_cv_path_install
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2574
  else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2575
    # As a last resort, use the slow shell script.  Don't cache a
2576
    # value for INSTALL within a source directory, because that will
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2577
    # break other packages using the cache if that directory is
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2578
    # removed, or if the value is a relative name.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2579
    INSTALL=$ac_install_sh
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2580
  fi
2581
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2583
$as_echo "$INSTALL" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2584
2585
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2586
# It thinks the first close brace ends the variable substitution.
2587
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2588
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2589
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2590
2591
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2592
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2594
$as_echo_n "checking whether build environment is sane... " >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2595
# Just in case
2596
sleep 1
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2597
echo timestamp > conftest.file
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2598
# Reject unsafe characters in $srcdir or the absolute working directory
2599
# name.  Accept space and tab only in the latter.
2600
am_lf='
2601
'
2602
case `pwd` in
2603
  *[\\\"\#\$\&\'\`$am_lf]*)
2604
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2605
esac
2606
case $srcdir in
2607
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2608
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2609
esac
2610
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2611
# Do `set' in a subshell so we don't clobber the current shell's
2612
# arguments.  Must try -L first in case configure is actually a
2613
# symlink; some systems play weird games with the mod time of symlinks
2614
# (eg FreeBSD returns the mod time of the symlink's containing
2615
# directory).
2616
if (
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2617
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2618
   if test "$*" = "X"; then
2619
      # -L didn't work.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2620
      set X `ls -t "$srcdir/configure" conftest.file`
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2621
   fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2622
   rm -f conftest.file
2623
   if test "$*" != "X $srcdir/configure conftest.file" \
2624
      && test "$*" != "X conftest.file $srcdir/configure"; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2625
2626
      # If neither matched, then we have a broken ls.  This can happen
2627
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2628
      # broken ls alias from the environment.  This has actually
2629
      # happened.  Such a system could not be considered "sane".
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2630
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2631
alias in your environment" "$LINENO" 5
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2632
   fi
2633
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2634
   test "$2" = conftest.file
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2635
   )
2636
then
2637
   # Ok.
2638
   :
2639
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2640
   as_fn_error "newly created file is older than distributed files!
2641
Check your system clock" "$LINENO" 5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2642
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2644
$as_echo "yes" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2645
test "$program_prefix" != NONE &&
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2646
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2647
# Use a double $ so make ignores it.
2648
test "$program_suffix" != NONE &&
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2649
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2650
# Double any \ or $.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2651
# By default was `s,x,x', remove it if useless.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2652
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2653
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
2654
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2655
# expand $ac_aux_dir to an absolute path
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2656
am_aux_dir=`cd $ac_aux_dir && pwd`
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2657
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2658
if test x"${MISSING+set}" != xset; then
2659
  case $am_aux_dir in
2660
  *\ * | *\	*)
2661
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2662
  *)
2663
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2664
  esac
2665
fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2666
# Use eval to expand $SHELL
2667
if eval "$MISSING --run true"; then
2668
  am_missing_run="$MISSING --run "
2669
else
2670
  am_missing_run=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2671
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2672
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2673
fi
2674
2675
if test x"${install_sh}" != xset; then
2676
  case $am_aux_dir in
2677
  *\ * | *\	*)
2678
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2679
  *)
2680
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2681
  esac
2682
fi
2683
2684
# Installed binaries are usually stripped using `strip' when the user
2685
# run `make install-strip'.  However `strip' might not be the right
2686
# tool to use in cross-compilation environments, therefore Automake
2687
# will honor the `STRIP' environment variable to overrule this program.
2688
if test "$cross_compiling" != no; then
2689
  if test -n "$ac_tool_prefix"; then
2690
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2691
set dummy ${ac_tool_prefix}strip; ac_word=$2
2692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693
$as_echo_n "checking for $ac_word... " >&6; }
2694
if test "${ac_cv_prog_STRIP+set}" = set; then :
2695
  $as_echo_n "(cached) " >&6
2696
else
2697
  if test -n "$STRIP"; then
2698
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2699
else
2700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701
for as_dir in $PATH
2702
do
2703
  IFS=$as_save_IFS
2704
  test -z "$as_dir" && as_dir=.
2705
    for ac_exec_ext in '' $ac_executable_extensions; do
2706
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2708
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709
    break 2
2710
  fi
2711
done
2712
  done
2713
IFS=$as_save_IFS
2714
2715
fi
2716
fi
2717
STRIP=$ac_cv_prog_STRIP
2718
if test -n "$STRIP"; then
2719
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2720
$as_echo "$STRIP" >&6; }
2721
else
2722
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723
$as_echo "no" >&6; }
2724
fi
2725
2726
2727
fi
2728
if test -z "$ac_cv_prog_STRIP"; then
2729
  ac_ct_STRIP=$STRIP
2730
  # Extract the first word of "strip", so it can be a program name with args.
2731
set dummy strip; ac_word=$2
2732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733
$as_echo_n "checking for $ac_word... " >&6; }
2734
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2735
  $as_echo_n "(cached) " >&6
2736
else
2737
  if test -n "$ac_ct_STRIP"; then
2738
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2739
else
2740
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741
for as_dir in $PATH
2742
do
2743
  IFS=$as_save_IFS
2744
  test -z "$as_dir" && as_dir=.
2745
    for ac_exec_ext in '' $ac_executable_extensions; do
2746
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747
    ac_cv_prog_ac_ct_STRIP="strip"
2748
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749
    break 2
2750
  fi
2751
done
2752
  done
2753
IFS=$as_save_IFS
2754
2755
fi
2756
fi
2757
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2758
if test -n "$ac_ct_STRIP"; then
2759
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2760
$as_echo "$ac_ct_STRIP" >&6; }
2761
else
2762
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763
$as_echo "no" >&6; }
2764
fi
2765
2766
  if test "x$ac_ct_STRIP" = x; then
2767
    STRIP=":"
2768
  else
2769
    case $cross_compiling:$ac_tool_warned in
2770
yes:)
2771
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773
ac_tool_warned=yes ;;
2774
esac
2775
    STRIP=$ac_ct_STRIP
2776
  fi
2777
else
2778
  STRIP="$ac_cv_prog_STRIP"
2779
fi
2780
2781
fi
2782
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2783
2784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2785
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2786
if test -z "$MKDIR_P"; then
2787
  if test "${ac_cv_path_mkdir+set}" = set; then :
2788
  $as_echo_n "(cached) " >&6
2789
else
2790
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2792
do
2793
  IFS=$as_save_IFS
2794
  test -z "$as_dir" && as_dir=.
2795
    for ac_prog in mkdir gmkdir; do
2796
	 for ac_exec_ext in '' $ac_executable_extensions; do
2797
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2798
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2799
	     'mkdir (GNU coreutils) '* | \
2800
	     'mkdir (coreutils) '* | \
2801
	     'mkdir (fileutils) '4.1*)
2802
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2803
	       break 3;;
2804
	   esac
2805
	 done
2806
       done
2807
  done
2808
IFS=$as_save_IFS
2809
2810
fi
2811
2812
  test -d ./--version && rmdir ./--version
2813
  if test "${ac_cv_path_mkdir+set}" = set; then
2814
    MKDIR_P="$ac_cv_path_mkdir -p"
2815
  else
2816
    # As a last resort, use the slow shell script.  Don't cache a
2817
    # value for MKDIR_P within a source directory, because that will
2818
    # break other packages using the cache if that directory is
2819
    # removed, or if the value is a relative name.
2820
    MKDIR_P="$ac_install_sh -d"
2821
  fi
2822
fi
2823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2824
$as_echo "$MKDIR_P" >&6; }
2825
2826
mkdir_p="$MKDIR_P"
2827
case $mkdir_p in
2828
  [\\/$]* | ?:[\\/]*) ;;
2829
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2830
esac
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2831
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2832
for ac_prog in gawk mawk nawk awk
2833
do
2834
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2835
set dummy $ac_prog; ac_word=$2
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837
$as_echo_n "checking for $ac_word... " >&6; }
2838
if test "${ac_cv_prog_AWK+set}" = set; then :
2839
  $as_echo_n "(cached) " >&6
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2840
else
2841
  if test -n "$AWK"; then
2842
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2843
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845
for as_dir in $PATH
2846
do
2847
  IFS=$as_save_IFS
2848
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2849
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2850
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2851
    ac_cv_prog_AWK="$ac_prog"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2852
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2853
    break 2
2854
  fi
2855
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2856
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2857
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2858
2859
fi
2860
fi
2861
AWK=$ac_cv_prog_AWK
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2862
if test -n "$AWK"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2863
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2864
$as_echo "$AWK" >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2865
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2866
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867
$as_echo "no" >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2868
fi
2869
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2870
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2871
  test -n "$AWK" && break
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2872
done
2873
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2875
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2876
set x ${MAKE-make}
2877
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2878
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2879
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2880
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2881
  cat >conftest.make <<\_ACEOF
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2882
SHELL = /bin/sh
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2883
all:
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2884
	@echo '@@@%%%=$(MAKE)=@@@%%%'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2885
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2886
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2887
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2888
  *@@@%%%=?*=@@@%%%*)
2889
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2890
  *)
2891
    eval ac_cv_prog_make_${ac_make}_set=no;;
2892
esac
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2893
rm -f conftest.make
2894
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
2895
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2896
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2897
$as_echo "yes" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2898
  SET_MAKE=
2899
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2900
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901
$as_echo "no" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2902
  SET_MAKE="MAKE=${MAKE-make}"
2903
fi
2904
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2905
rm -rf .tst 2>/dev/null
2906
mkdir .tst 2>/dev/null
2907
if test -d .tst; then
2908
  am__leading_dot=.
2909
else
2910
  am__leading_dot=_
2911
fi
2912
rmdir .tst 2>/dev/null
2913
2914
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2915
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2916
  # is not polluted with repeated "-I."
2917
  am__isrc=' -I$(srcdir)'
2918
  # test to see if srcdir already configured
2919
  if test -f $srcdir/config.status; then
2920
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2921
  fi
2922
fi
2923
2924
# test whether we have cygpath
2925
if test -z "$CYGPATH_W"; then
2926
  if (cygpath --version) >/dev/null 2>/dev/null; then
2927
    CYGPATH_W='cygpath -w'
2928
  else
2929
    CYGPATH_W=echo
2930
  fi
2931
fi
2932
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2933
2934
# Define the identity of the package.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2935
 PACKAGE=lirc
1.2.11 by Mario Limonciello
Import upstream version 0.8.7~pre3
2936
 VERSION=0.8.7-pre3
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2937
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2938
2939
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2940
#define PACKAGE "$PACKAGE"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2941
_ACEOF
2942
2943
2944
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
2945
#define VERSION "$VERSION"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2946
_ACEOF
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2947
2948
# Some tools Automake needs.
2949
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2950
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2951
2952
2953
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2954
2955
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2956
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
2957
2958
2959
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2960
2961
2962
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2963
2964
# We need awk for the "check" target.  The system "awk" is bad on
2965
# some platforms.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2966
# Always define AMTAR for backward compatibility.
2967
2968
AMTAR=${AMTAR-"${am_missing_run}tar"}
2969
2970
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2971
2972
2973
2974
2975
2976
ac_config_headers="$ac_config_headers config.h"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2977
2978
2979
CFLAGS="${CFLAGS--O2 -g -Wall}"
2980
2981
ac_ext=c
2982
ac_cpp='$CPP $CPPFLAGS'
2983
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2984
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2985
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2986
if test -n "$ac_tool_prefix"; then
2987
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2988
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
2989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990
$as_echo_n "checking for $ac_word... " >&6; }
2991
if test "${ac_cv_prog_CC+set}" = set; then :
2992
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
2993
else
2994
  if test -n "$CC"; then
2995
  ac_cv_prog_CC="$CC" # Let the user override the test.
2996
else
2997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998
for as_dir in $PATH
2999
do
3000
  IFS=$as_save_IFS
3001
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3002
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3003
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3004
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3005
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3006
    break 2
3007
  fi
3008
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3009
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3010
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3011
3012
fi
3013
fi
3014
CC=$ac_cv_prog_CC
3015
if test -n "$CC"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3016
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017
$as_echo "$CC" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3018
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3019
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020
$as_echo "no" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3021
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3022
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3023
3024
fi
3025
if test -z "$ac_cv_prog_CC"; then
3026
  ac_ct_CC=$CC
3027
  # Extract the first word of "gcc", so it can be a program name with args.
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3028
set dummy gcc; ac_word=$2
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030
$as_echo_n "checking for $ac_word... " >&6; }
3031
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3032
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3033
else
3034
  if test -n "$ac_ct_CC"; then
3035
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3036
else
3037
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038
for as_dir in $PATH
3039
do
3040
  IFS=$as_save_IFS
3041
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3042
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3043
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3044
    ac_cv_prog_ac_ct_CC="gcc"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3045
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3046
    break 2
3047
  fi
3048
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3049
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3050
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3051
3052
fi
3053
fi
3054
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055
if test -n "$ac_ct_CC"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3056
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3057
$as_echo "$ac_ct_CC" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3058
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3059
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060
$as_echo "no" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3061
fi
3062
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3063
  if test "x$ac_ct_CC" = x; then
3064
    CC=""
3065
  else
3066
    case $cross_compiling:$ac_tool_warned in
3067
yes:)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3068
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3070
ac_tool_warned=yes ;;
3071
esac
3072
    CC=$ac_ct_CC
3073
  fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3074
else
3075
  CC="$ac_cv_prog_CC"
3076
fi
3077
3078
if test -z "$CC"; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3079
          if test -n "$ac_tool_prefix"; then
3080
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3081
set dummy ${ac_tool_prefix}cc; ac_word=$2
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3082
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083
$as_echo_n "checking for $ac_word... " >&6; }
3084
if test "${ac_cv_prog_CC+set}" = set; then :
3085
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3086
else
3087
  if test -n "$CC"; then
3088
  ac_cv_prog_CC="$CC" # Let the user override the test.
3089
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091
for as_dir in $PATH
3092
do
3093
  IFS=$as_save_IFS
3094
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3095
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3096
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3097
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3098
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3099
    break 2
3100
  fi
3101
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3102
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3103
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3104
3105
fi
3106
fi
3107
CC=$ac_cv_prog_CC
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3108
if test -n "$CC"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3109
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110
$as_echo "$CC" >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3111
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3112
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113
$as_echo "no" >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3114
fi
3115
3116
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3117
  fi
3118
fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3119
if test -z "$CC"; then
3120
  # Extract the first word of "cc", so it can be a program name with args.
3121
set dummy cc; ac_word=$2
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123
$as_echo_n "checking for $ac_word... " >&6; }
3124
if test "${ac_cv_prog_CC+set}" = set; then :
3125
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3126
else
3127
  if test -n "$CC"; then
3128
  ac_cv_prog_CC="$CC" # Let the user override the test.
3129
else
3130
  ac_prog_rejected=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132
for as_dir in $PATH
3133
do
3134
  IFS=$as_save_IFS
3135
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3136
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3137
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3138
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3139
       ac_prog_rejected=yes
3140
       continue
3141
     fi
3142
    ac_cv_prog_CC="cc"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3143
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3144
    break 2
3145
  fi
3146
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3147
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3148
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3149
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3150
if test $ac_prog_rejected = yes; then
3151
  # We found a bogon in the path, so make sure we never use it.
3152
  set dummy $ac_cv_prog_CC
3153
  shift
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3154
  if test $# != 0; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3155
    # We chose a different compiler from the bogus one.
3156
    # However, it has the same basename, so the bogon will be chosen
3157
    # first if we set CC to just the basename; use the full file name.
3158
    shift
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3159
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3160
  fi
3161
fi
3162
fi
3163
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3164
CC=$ac_cv_prog_CC
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3165
if test -n "$CC"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3166
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167
$as_echo "$CC" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3168
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3169
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170
$as_echo "no" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3171
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3172
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3173
3174
fi
3175
if test -z "$CC"; then
3176
  if test -n "$ac_tool_prefix"; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3177
  for ac_prog in cl.exe
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3178
  do
3179
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3180
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182
$as_echo_n "checking for $ac_word... " >&6; }
3183
if test "${ac_cv_prog_CC+set}" = set; then :
3184
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3185
else
3186
  if test -n "$CC"; then
3187
  ac_cv_prog_CC="$CC" # Let the user override the test.
3188
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190
for as_dir in $PATH
3191
do
3192
  IFS=$as_save_IFS
3193
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3194
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3195
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3196
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3197
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3198
    break 2
3199
  fi
3200
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3201
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3202
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3203
3204
fi
3205
fi
3206
CC=$ac_cv_prog_CC
3207
if test -n "$CC"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209
$as_echo "$CC" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3210
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3211
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212
$as_echo "no" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3213
fi
3214
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3215
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3216
    test -n "$CC" && break
3217
  done
3218
fi
3219
if test -z "$CC"; then
3220
  ac_ct_CC=$CC
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3221
  for ac_prog in cl.exe
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3222
do
3223
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3224
set dummy $ac_prog; ac_word=$2
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226
$as_echo_n "checking for $ac_word... " >&6; }
3227
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3228
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3229
else
3230
  if test -n "$ac_ct_CC"; then
3231
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3232
else
3233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234
for as_dir in $PATH
3235
do
3236
  IFS=$as_save_IFS
3237
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3238
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3239
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3240
    ac_cv_prog_ac_ct_CC="$ac_prog"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3241
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3242
    break 2
3243
  fi
3244
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3245
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3246
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3247
3248
fi
3249
fi
3250
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3251
if test -n "$ac_ct_CC"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3252
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3253
$as_echo "$ac_ct_CC" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3254
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3255
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256
$as_echo "no" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3257
fi
3258
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3259
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3260
  test -n "$ac_ct_CC" && break
3261
done
3262
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3263
  if test "x$ac_ct_CC" = x; then
3264
    CC=""
3265
  else
3266
    case $cross_compiling:$ac_tool_warned in
3267
yes:)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3268
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3269
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3270
ac_tool_warned=yes ;;
3271
esac
3272
    CC=$ac_ct_CC
3273
  fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3274
fi
3275
3276
fi
3277
3278
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3279
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281
as_fn_error "no acceptable C compiler found in \$PATH
3282
See \`config.log' for more details." "$LINENO" 5; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3283
3284
# Provide some information about the compiler.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3285
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3286
set X $ac_compile
3287
ac_compiler=$2
3288
for ac_option in --version -v -V -qversion; do
3289
  { { ac_try="$ac_compiler $ac_option >&5"
3290
case "(($ac_try" in
3291
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292
  *) ac_try_echo=$ac_try;;
3293
esac
3294
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295
$as_echo "$ac_try_echo"; } >&5
3296
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3297
  ac_status=$?
3298
  if test -s conftest.err; then
3299
    sed '10a\
3300
... rest of stderr output deleted ...
3301
         10q' conftest.err >conftest.er1
3302
    cat conftest.er1 >&5
3303
  fi
3304
  rm -f conftest.er1 conftest.err
3305
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306
  test $ac_status = 0; }
3307
done
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3308
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3309
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3310
/* end confdefs.h.  */
3311
3312
int
3313
main ()
3314
{
3315
3316
  ;
3317
  return 0;
3318
}
3319
_ACEOF
3320
ac_clean_files_save=$ac_clean_files
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3321
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3322
# Try to create an executable without -o first, disregard a.out.
3323
# It will help us diagnose broken compilers, and finding out an intuition
3324
# of exeext.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3325
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3326
$as_echo_n "checking whether the C compiler works... " >&6; }
3327
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3328
3329
# The possible output files:
3330
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3331
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3332
ac_rmfiles=
3333
for ac_file in $ac_files
3334
do
3335
  case $ac_file in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3336
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3337
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3338
  esac
3339
done
3340
rm -f $ac_rmfiles
3341
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3342
if { { ac_try="$ac_link_default"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3343
case "(($ac_try" in
3344
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345
  *) ac_try_echo=$ac_try;;
3346
esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3347
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348
$as_echo "$ac_try_echo"; } >&5
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3349
  (eval "$ac_link_default") 2>&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3350
  ac_status=$?
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3351
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352
  test $ac_status = 0; }; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3353
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3354
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3355
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3356
# so that the user can short-circuit this test for compilers unknown to
3357
# Autoconf.
3358
for ac_file in $ac_files ''
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3359
do
3360
  test -f "$ac_file" || continue
3361
  case $ac_file in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3362
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3363
	;;
3364
    [ab].out )
3365
	# We found the default executable, but exeext='' is most
3366
	# certainly right.
3367
	break;;
3368
    *.* )
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3369
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3370
	then :; else
3371
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372
	fi
3373
	# We set ac_cv_exeext here because the later test for it is not
3374
	# safe: cross compilers may not add the suffix if given an `-o'
3375
	# argument, so we may need to know it at that point already.
3376
	# Even if this section looks crufty: it has the advantage of
3377
	# actually working.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3378
	break;;
3379
    * )
3380
	break;;
3381
  esac
3382
done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3383
test "$ac_cv_exeext" = no && ac_cv_exeext=
3384
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3385
else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3386
  ac_file=''
3387
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3388
if test -z "$ac_file"; then :
3389
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390
$as_echo "no" >&6; }
3391
$as_echo "$as_me: failed program was:" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3392
sed 's/^/| /' conftest.$ac_ext >&5
3393
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3394
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396
{ as_fn_set_status 77
3397
as_fn_error "C compiler cannot create executables
3398
See \`config.log' for more details." "$LINENO" 5; }; }
3399
else
3400
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3401
$as_echo "yes" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3402
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3403
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3404
$as_echo_n "checking for C compiler default output file name... " >&6; }
3405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3406
$as_echo "$ac_file" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3407
ac_exeext=$ac_cv_exeext
3408
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3409
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3410
ac_clean_files=$ac_clean_files_save
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3412
$as_echo_n "checking for suffix of executables... " >&6; }
3413
if { { ac_try="$ac_link"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3414
case "(($ac_try" in
3415
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416
  *) ac_try_echo=$ac_try;;
3417
esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3418
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419
$as_echo "$ac_try_echo"; } >&5
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3420
  (eval "$ac_link") 2>&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3421
  ac_status=$?
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3422
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423
  test $ac_status = 0; }; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3424
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3425
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3426
# work properly (i.e., refer to `conftest.exe'), while it won't with
3427
# `rm'.
3428
for ac_file in conftest.exe conftest conftest.*; do
3429
  test -f "$ac_file" || continue
3430
  case $ac_file in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3431
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3432
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433
	  break;;
3434
    * ) break;;
3435
  esac
3436
done
3437
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3438
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440
as_fn_error "cannot compute suffix of executables: cannot compile and link
3441
See \`config.log' for more details." "$LINENO" 5; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3442
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3443
rm -f conftest conftest$ac_cv_exeext
3444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3445
$as_echo "$ac_cv_exeext" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3446
3447
rm -f conftest.$ac_ext
3448
EXEEXT=$ac_cv_exeext
3449
ac_exeext=$EXEEXT
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3450
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451
/* end confdefs.h.  */
3452
#include <stdio.h>
3453
int
3454
main ()
3455
{
3456
FILE *f = fopen ("conftest.out", "w");
3457
 return ferror (f) || fclose (f) != 0;
3458
3459
  ;
3460
  return 0;
3461
}
3462
_ACEOF
3463
ac_clean_files="$ac_clean_files conftest.out"
3464
# Check that the compiler produces executables we can run.  If not, either
3465
# the compiler is broken, or we cross compile.
3466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3467
$as_echo_n "checking whether we are cross compiling... " >&6; }
3468
if test "$cross_compiling" != yes; then
3469
  { { ac_try="$ac_link"
3470
case "(($ac_try" in
3471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472
  *) ac_try_echo=$ac_try;;
3473
esac
3474
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475
$as_echo "$ac_try_echo"; } >&5
3476
  (eval "$ac_link") 2>&5
3477
  ac_status=$?
3478
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479
  test $ac_status = 0; }
3480
  if { ac_try='./conftest$ac_cv_exeext'
3481
  { { case "(($ac_try" in
3482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483
  *) ac_try_echo=$ac_try;;
3484
esac
3485
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486
$as_echo "$ac_try_echo"; } >&5
3487
  (eval "$ac_try") 2>&5
3488
  ac_status=$?
3489
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490
  test $ac_status = 0; }; }; then
3491
    cross_compiling=no
3492
  else
3493
    if test "$cross_compiling" = maybe; then
3494
	cross_compiling=yes
3495
    else
3496
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498
as_fn_error "cannot run C compiled programs.
3499
If you meant to cross compile, use \`--host'.
3500
See \`config.log' for more details." "$LINENO" 5; }
3501
    fi
3502
  fi
3503
fi
3504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3505
$as_echo "$cross_compiling" >&6; }
3506
3507
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3508
ac_clean_files=$ac_clean_files_save
3509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3510
$as_echo_n "checking for suffix of object files... " >&6; }
3511
if test "${ac_cv_objext+set}" = set; then :
3512
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3513
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3514
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3515
/* end confdefs.h.  */
3516
3517
int
3518
main ()
3519
{
3520
3521
  ;
3522
  return 0;
3523
}
3524
_ACEOF
3525
rm -f conftest.o conftest.obj
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3526
if { { ac_try="$ac_compile"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3527
case "(($ac_try" in
3528
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529
  *) ac_try_echo=$ac_try;;
3530
esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3531
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532
$as_echo "$ac_try_echo"; } >&5
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3533
  (eval "$ac_compile") 2>&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3534
  ac_status=$?
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3535
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536
  test $ac_status = 0; }; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3537
  for ac_file in conftest.o conftest.obj conftest.*; do
3538
  test -f "$ac_file" || continue;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3539
  case $ac_file in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3540
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3541
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3542
       break;;
3543
  esac
3544
done
3545
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3546
  $as_echo "$as_me: failed program was:" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3547
sed 's/^/| /' conftest.$ac_ext >&5
3548
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3549
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551
as_fn_error "cannot compute suffix of object files: cannot compile
3552
See \`config.log' for more details." "$LINENO" 5; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3553
fi
3554
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3555
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3557
$as_echo "$ac_cv_objext" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3558
OBJEXT=$ac_cv_objext
3559
ac_objext=$OBJEXT
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3561
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3562
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3563
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3564
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3565
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3566
/* end confdefs.h.  */
3567
3568
int
3569
main ()
3570
{
3571
#ifndef __GNUC__
3572
       choke me
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3573
#endif
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3574
3575
  ;
3576
  return 0;
3577
}
3578
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3579
if ac_fn_c_try_compile "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3580
  ac_compiler_gnu=yes
3581
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3582
  ac_compiler_gnu=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3583
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3584
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3585
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3586
3587
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3589
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3590
if test $ac_compiler_gnu = yes; then
3591
  GCC=yes
3592
else
3593
  GCC=
3594
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3595
ac_test_CFLAGS=${CFLAGS+set}
3596
ac_save_CFLAGS=$CFLAGS
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3597
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3598
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3599
if test "${ac_cv_prog_cc_g+set}" = set; then :
3600
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3601
else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3602
  ac_save_c_werror_flag=$ac_c_werror_flag
3603
   ac_c_werror_flag=yes
3604
   ac_cv_prog_cc_g=no
3605
   CFLAGS="-g"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3606
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3607
/* end confdefs.h.  */
3608
3609
int
3610
main ()
3611
{
3612
3613
  ;
3614
  return 0;
3615
}
3616
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3617
if ac_fn_c_try_compile "$LINENO"; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3618
  ac_cv_prog_cc_g=yes
3619
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3620
  CFLAGS=""
3621
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3622
/* end confdefs.h.  */
3623
3624
int
3625
main ()
3626
{
3627
3628
  ;
3629
  return 0;
3630
}
3631
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3632
if ac_fn_c_try_compile "$LINENO"; then :
3633
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3634
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3635
  ac_c_werror_flag=$ac_save_c_werror_flag
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3636
	 CFLAGS="-g"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3637
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3638
/* end confdefs.h.  */
3639
3640
int
3641
main ()
3642
{
3643
3644
  ;
3645
  return 0;
3646
}
3647
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3648
if ac_fn_c_try_compile "$LINENO"; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3649
  ac_cv_prog_cc_g=yes
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3650
fi
3651
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652
fi
3653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656
   ac_c_werror_flag=$ac_save_c_werror_flag
3657
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3659
$as_echo "$ac_cv_prog_cc_g" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3660
if test "$ac_test_CFLAGS" = set; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3661
  CFLAGS=$ac_save_CFLAGS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
3662
elif test $ac_cv_prog_cc_g = yes; then
3663
  if test "$GCC" = yes; then
3664
    CFLAGS="-g -O2"
3665
  else
3666
    CFLAGS="-g"
3667
  fi
3668
else
3669
  if test "$GCC" = yes; then
3670
    CFLAGS="-O2"
3671
  else
3672
    CFLAGS=
3673
  fi
3674
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3676
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3677
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3678
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3679
else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3680
  ac_cv_prog_cc_c89=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3681
ac_save_CC=$CC
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3682
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3683
/* end confdefs.h.  */
3684
#include <stdarg.h>
3685
#include <stdio.h>
3686
#include <sys/types.h>
3687
#include <sys/stat.h>
3688
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3689
struct buf { int x; };
3690
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3691
static char *e (p, i)
3692
     char **p;
3693
     int i;
3694
{
3695
  return p[i];
3696
}
3697
static char *f (char * (*g) (char **, int), char **p, ...)
3698
{
3699
  char *s;
3700
  va_list v;
3701
  va_start (v,p);
3702
  s = g (p, va_arg (v,int));
3703
  va_end (v);
3704
  return s;
3705
}
3706
3707
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3708
   function prototypes and stuff, but not '\xHH' hex character constants.
3709
   These don't provoke an error unfortunately, instead are silently treated
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3710
   as 'x'.  The following induces an error, until -std is added to get
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3711
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3712
   array size at least.  It's necessary to write '\x00'==0 to get something
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3713
   that's true only with -std.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3714
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3715
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3716
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3717
   inside strings and character constants.  */
3718
#define FOO(x) 'x'
3719
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3720
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3721
int test (int i, double x);
3722
struct s1 {int (*f) (int a);};
3723
struct s2 {int (*f) (double a);};
3724
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3725
int argc;
3726
char **argv;
3727
int
3728
main ()
3729
{
3730
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3731
  ;
3732
  return 0;
3733
}
3734
_ACEOF
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3735
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3736
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3737
do
3738
  CC="$ac_save_CC $ac_arg"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3739
  if ac_fn_c_try_compile "$LINENO"; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3740
  ac_cv_prog_cc_c89=$ac_arg
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3741
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3742
rm -f core conftest.err conftest.$ac_objext
3743
  test "x$ac_cv_prog_cc_c89" != "xno" && break
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3744
done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3745
rm -f conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3746
CC=$ac_save_CC
3747
3748
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3749
# AC_CACHE_VAL
3750
case "x$ac_cv_prog_cc_c89" in
3751
  x)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3752
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3753
$as_echo "none needed" >&6; } ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3754
  xno)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3755
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3756
$as_echo "unsupported" >&6; } ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3757
  *)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3758
    CC="$CC $ac_cv_prog_cc_c89"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3759
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3760
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3761
esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3762
if test "x$ac_cv_prog_cc_c89" != xno; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3763
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3764
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3765
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
3766
ac_ext=c
3767
ac_cpp='$CPP $CPPFLAGS'
3768
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3771
DEPDIR="${am__leading_dot}deps"
3772
3773
ac_config_commands="$ac_config_commands depfiles"
3774
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3775
3776
am_make=${MAKE-make}
3777
cat > confinc << 'END'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3778
am__doit:
3779
	@echo this is the am__doit target
3780
.PHONY: am__doit
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3781
END
3782
# If we don't find an include directive, just comment out the code.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3784
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3785
am__include="#"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3786
am__quote=
3787
_am_result=none
3788
# First try GNU make style include.
3789
echo "include confinc" > confmf
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3790
# Ignore all kinds of additional output from `make'.
3791
case `$am_make -s -f confmf 2> /dev/null` in #(
3792
*the\ am__doit\ target*)
3793
  am__include=include
3794
  am__quote=
3795
  _am_result=GNU
3796
  ;;
3797
esac
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3798
# Now try BSD make style include.
3799
if test "$am__include" = "#"; then
3800
   echo '.include "confinc"' > confmf
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3801
   case `$am_make -s -f confmf 2> /dev/null` in #(
3802
   *the\ am__doit\ target*)
3803
     am__include=.include
3804
     am__quote="\""
3805
     _am_result=BSD
3806
     ;;
3807
   esac
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3808
fi
3809
3810
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3812
$as_echo "$_am_result" >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3813
rm -f confinc confmf
3814
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3815
# Check whether --enable-dependency-tracking was given.
3816
if test "${enable_dependency_tracking+set}" = set; then :
3817
  enableval=$enable_dependency_tracking;
3818
fi
3819
3820
if test "x$enable_dependency_tracking" != xno; then
3821
  am_depcomp="$ac_aux_dir/depcomp"
3822
  AMDEPBACKSLASH='\'
3823
fi
3824
 if test "x$enable_dependency_tracking" != xno; then
3825
  AMDEP_TRUE=
3826
  AMDEP_FALSE='#'
3827
else
3828
  AMDEP_TRUE='#'
3829
  AMDEP_FALSE=
3830
fi
3831
3832
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
3833
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3834
depcc="$CC"   am_compiler_list=
3835
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3837
$as_echo_n "checking dependency style of $depcc... " >&6; }
3838
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3839
  $as_echo_n "(cached) " >&6
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3840
else
3841
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3842
  # We make a subdir and do the tests there.  Otherwise we can end up
3843
  # making bogus files that we don't know about and never remove.  For
3844
  # instance it was reported that on HP-UX the gcc test will end up
3845
  # making a dummy file named `D' -- because `-MD' means `put the output
3846
  # in D'.
3847
  mkdir conftest.dir
3848
  # Copy depcomp to subdir because otherwise we won't find it if we're
3849
  # using a relative directory.
3850
  cp "$am_depcomp" conftest.dir
3851
  cd conftest.dir
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3852
  # We will build objects and dependencies in a subdirectory because
3853
  # it helps to detect inapplicable dependency modes.  For instance
3854
  # both Tru64's cc and ICC support -MD to output dependencies as a
3855
  # side effect of compilation, but ICC will put the dependencies in
3856
  # the current directory while Tru64 will put them in the object
3857
  # directory.
3858
  mkdir sub
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3859
3860
  am_cv_CC_dependencies_compiler_type=none
3861
  if test "$am_compiler_list" = ""; then
3862
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3863
  fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3864
  am__universal=false
3865
  case " $depcc " in #(
3866
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3867
     esac
3868
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3869
  for depmode in $am_compiler_list; do
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3870
    # Setup a source with many dependencies, because some compilers
3871
    # like to wrap large dependency lists on column 80 (with \), and
3872
    # we should not choose a depcomp mode which is confused by this.
3873
    #
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3874
    # We need to recreate these files for each test, as the compiler may
3875
    # overwrite some of them when testing with obscure command lines.
3876
    # This happens at least with the AIX C compiler.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3877
    : > sub/conftest.c
3878
    for i in 1 2 3 4 5 6; do
3879
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3880
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3881
      # Solaris 8's {/usr,}/bin/sh.
3882
      touch sub/conftst$i.h
3883
    done
3884
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3885
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3886
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3887
    # mode.  It turns out that the SunPro C++ compiler does not properly
3888
    # handle `-M -o', and we need to detect this.  Also, some Intel
3889
    # versions had trouble with output in subdirs
3890
    am__obj=sub/conftest.${OBJEXT-o}
3891
    am__minus_obj="-o $am__obj"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3892
    case $depmode in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3893
    gcc)
3894
      # This depmode causes a compiler race in universal mode.
3895
      test "$am__universal" = false || continue
3896
      ;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3897
    nosideeffect)
3898
      # after this tag, mechanisms are not by side-effect, so they'll
3899
      # only be used when explicitly requested
3900
      if test "x$enable_dependency_tracking" = xyes; then
3901
	continue
3902
      else
3903
	break
3904
      fi
3905
      ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3906
    msvisualcpp | msvcmsys)
3907
      # This compiler won't grok `-c -o', but also, the minuso test has
3908
      # not run yet.  These depmodes are late enough in the game, and
3909
      # so weak that their functioning should not be impacted.
3910
      am__obj=conftest.${OBJEXT-o}
3911
      am__minus_obj=
3912
      ;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3913
    none) break ;;
3914
    esac
3915
    if depmode=$depmode \
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3916
       source=sub/conftest.c object=$am__obj \
3917
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3918
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3919
         >/dev/null 2>conftest.err &&
3920
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3921
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3922
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3923
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3924
      # icc doesn't choke on unknown options, it will just issue warnings
3925
      # or remarks (even with -Werror).  So we grep stderr for any message
3926
      # that says an option was ignored or not supported.
3927
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3928
      #   icc: Command line warning: ignoring option '-M'; no argument required
3929
      # The diagnosis changed in icc 8.0:
3930
      #   icc: Command line remark: option '-MP' not supported
3931
      if (grep 'ignoring option' conftest.err ||
3932
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3933
        am_cv_CC_dependencies_compiler_type=$depmode
3934
        break
3935
      fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
3936
    fi
3937
  done
3938
3939
  cd ..
3940
  rm -rf conftest.dir
3941
else
3942
  am_cv_CC_dependencies_compiler_type=none
3943
fi
3944
3945
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3947
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3948
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3949
3950
 if
3951
  test "x$enable_dependency_tracking" != xno \
3952
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3953
  am__fastdepCC_TRUE=
3954
  am__fastdepCC_FALSE='#'
3955
else
3956
  am__fastdepCC_TRUE='#'
3957
  am__fastdepCC_FALSE=
3958
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3959
3960
3961
if test "x$CC" != xcc; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3962
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3963
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3964
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3965
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3966
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3967
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3968
set dummy $CC; ac_cc=`$as_echo "$2" |
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3969
		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3970
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3971
  $as_echo_n "(cached) " >&6
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3972
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3973
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
3974
/* end confdefs.h.  */
3975
3976
int
3977
main ()
3978
{
3979
3980
  ;
3981
  return 0;
3982
}
3983
_ACEOF
3984
# Make sure it works both with $CC and with simple cc.
3985
# We do the test twice because some compilers refuse to overwrite an
3986
# existing .o file with -o, though they will create one.
3987
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3988
rm -f conftest2.*
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
3989
if { { case "(($ac_try" in
3990
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991
  *) ac_try_echo=$ac_try;;
3992
esac
3993
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994
$as_echo "$ac_try_echo"; } >&5
3995
  (eval "$ac_try") 2>&5
3996
  ac_status=$?
3997
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998
  test $ac_status = 0; } &&
3999
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4000
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001
  *) ac_try_echo=$ac_try;;
4002
esac
4003
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004
$as_echo "$ac_try_echo"; } >&5
4005
  (eval "$ac_try") 2>&5
4006
  ac_status=$?
4007
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4008
  test $ac_status = 0; };
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4009
then
4010
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4011
  if test "x$CC" != xcc; then
4012
    # Test first that cc exists at all.
4013
    if { ac_try='cc -c conftest.$ac_ext >&5'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4014
  { { case "(($ac_try" in
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4015
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016
  *) ac_try_echo=$ac_try;;
4017
esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4018
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4019
$as_echo "$ac_try_echo"; } >&5
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4020
  (eval "$ac_try") 2>&5
4021
  ac_status=$?
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4022
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4023
  test $ac_status = 0; }; }; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4024
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4025
      rm -f conftest2.*
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4026
      if { { case "(($ac_try" in
4027
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028
  *) ac_try_echo=$ac_try;;
4029
esac
4030
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4031
$as_echo "$ac_try_echo"; } >&5
4032
  (eval "$ac_try") 2>&5
4033
  ac_status=$?
4034
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035
  test $ac_status = 0; } &&
4036
	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4037
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038
  *) ac_try_echo=$ac_try;;
4039
esac
4040
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4041
$as_echo "$ac_try_echo"; } >&5
4042
  (eval "$ac_try") 2>&5
4043
  ac_status=$?
4044
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4045
  test $ac_status = 0; };
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4046
      then
4047
	# cc works too.
4048
	:
4049
      else
4050
	# cc exists but doesn't like -o.
4051
	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4052
      fi
4053
    fi
4054
  fi
4055
else
4056
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4057
fi
4058
rm -f core conftest*
4059
4060
fi
4061
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4062
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063
$as_echo "yes" >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4064
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4065
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066
$as_echo "no" >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4067
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4068
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4069
4070
fi
4071
4072
# FIXME: we rely on the cache variable name because
4073
# there is no other way.
4074
set dummy $CC
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4075
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4076
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4077
if test "$am_t" != yes; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4078
   # Losing compiler, so override with the script.
4079
   # FIXME: It is wrong to rewrite CC.
4080
   # But if we don't then we get into trouble of one sort or another.
4081
   # A longer-term fix would be to have automake use am__CC in this case,
4082
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4083
   CC="$am_aux_dir/compile $CC"
4084
fi
4085
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4086
4087
4088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4089
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4090
set x ${MAKE-make}
4091
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4092
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4093
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4094
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4095
  cat >conftest.make <<\_ACEOF
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4096
SHELL = /bin/sh
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4097
all:
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4098
	@echo '@@@%%%=$(MAKE)=@@@%%%'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4099
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4100
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4101
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4102
  *@@@%%%=?*=@@@%%%*)
4103
    eval ac_cv_prog_make_${ac_make}_set=yes;;
4104
  *)
4105
    eval ac_cv_prog_make_${ac_make}_set=no;;
4106
esac
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4107
rm -f conftest.make
4108
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4109
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4110
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4111
$as_echo "yes" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4112
  SET_MAKE=
4113
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115
$as_echo "no" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4116
  SET_MAKE="MAKE=${MAKE-make}"
4117
fi
4118
4119
# Extract the first word of "mknod", so it can be a program name with args.
4120
set dummy mknod; ac_word=$2
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122
$as_echo_n "checking for $ac_word... " >&6; }
4123
if test "${ac_cv_path_mknod+set}" = set; then :
4124
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4125
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4126
  case $mknod in
4127
  [\\/]* | ?:[\\/]*)
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4128
  ac_cv_path_mknod="$mknod" # Let the user override the test with a path.
4129
  ;;
4130
  *)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4131
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132
for as_dir in $PATH
4133
do
4134
  IFS=$as_save_IFS
4135
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4136
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4137
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4138
    ac_cv_path_mknod="$as_dir/$ac_word$ac_exec_ext"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4139
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4140
    break 2
4141
  fi
4142
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4143
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4144
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4145
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4146
  test -z "$ac_cv_path_mknod" && ac_cv_path_mknod="/bin/mknod"
4147
  ;;
4148
esac
4149
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4150
mknod=$ac_cv_path_mknod
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4151
if test -n "$mknod"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4152
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mknod" >&5
4153
$as_echo "$mknod" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4154
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4155
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156
$as_echo "no" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4157
fi
4158
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4159
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4160
# Extract the first word of "mkfifo", so it can be a program name with args.
4161
set dummy mkfifo; ac_word=$2
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4162
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163
$as_echo_n "checking for $ac_word... " >&6; }
4164
if test "${ac_cv_path_mkfifo+set}" = set; then :
4165
  $as_echo_n "(cached) " >&6
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4166
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4167
  case $mkfifo in
4168
  [\\/]* | ?:[\\/]*)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4169
  ac_cv_path_mkfifo="$mkfifo" # Let the user override the test with a path.
4170
  ;;
4171
  *)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4172
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173
for as_dir in $PATH
4174
do
4175
  IFS=$as_save_IFS
4176
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4177
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4178
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4179
    ac_cv_path_mkfifo="$as_dir/$ac_word$ac_exec_ext"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4180
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4181
    break 2
4182
  fi
4183
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4184
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4185
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4186
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4187
  test -z "$ac_cv_path_mkfifo" && ac_cv_path_mkfifo="/usr/bin/mkfifo"
4188
  ;;
4189
esac
4190
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4191
mkfifo=$ac_cv_path_mkfifo
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4192
if test -n "$mkfifo"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4193
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkfifo" >&5
4194
$as_echo "$mkfifo" >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4195
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4196
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197
$as_echo "no" >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4198
fi
4199
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4200
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4201
# Extract the first word of "depmod", so it can be a program name with args.
4202
set dummy depmod; ac_word=$2
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204
$as_echo_n "checking for $ac_word... " >&6; }
4205
if test "${ac_cv_path_depmod+set}" = set; then :
4206
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4207
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4208
  case $depmod in
4209
  [\\/]* | ?:[\\/]*)
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4210
  ac_cv_path_depmod="$depmod" # Let the user override the test with a path.
4211
  ;;
4212
  *)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4213
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214
as_dummy="$PATH:/sbin"
4215
for as_dir in $as_dummy
4216
do
4217
  IFS=$as_save_IFS
4218
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4219
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4220
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4221
    ac_cv_path_depmod="$as_dir/$ac_word$ac_exec_ext"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4222
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4223
    break 2
4224
  fi
4225
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4226
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4227
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4228
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4229
  test -z "$ac_cv_path_depmod" && ac_cv_path_depmod="/sbin/depmod"
4230
  ;;
4231
esac
4232
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4233
depmod=$ac_cv_path_depmod
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4234
if test -n "$depmod"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4235
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $depmod" >&5
4236
$as_echo "$depmod" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4237
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4238
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239
$as_echo "no" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4240
fi
4241
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4242
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4243
# Extract the first word of "libusb-config", so it can be a program name with args.
4244
set dummy libusb-config; ac_word=$2
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4245
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246
$as_echo_n "checking for $ac_word... " >&6; }
4247
if test "${ac_cv_path_LIBUSB_CONFIG+set}" = set; then :
4248
  $as_echo_n "(cached) " >&6
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4249
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4250
  case $LIBUSB_CONFIG in
4251
  [\\/]* | ?:[\\/]*)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4252
  ac_cv_path_LIBUSB_CONFIG="$LIBUSB_CONFIG" # Let the user override the test with a path.
4253
  ;;
4254
  *)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4255
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256
for as_dir in $PATH
4257
do
4258
  IFS=$as_save_IFS
4259
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4260
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4261
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4262
    ac_cv_path_LIBUSB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4263
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4264
    break 2
4265
  fi
4266
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4267
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4268
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4269
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4270
  ;;
4271
esac
4272
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4273
LIBUSB_CONFIG=$ac_cv_path_LIBUSB_CONFIG
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4274
if test -n "$LIBUSB_CONFIG"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4275
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBUSB_CONFIG" >&5
4276
$as_echo "$LIBUSB_CONFIG" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4277
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4278
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279
$as_echo "no" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4280
fi
4281
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4282
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4284
$as_echo_n "checking whether ln -s works... " >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4285
LN_S=$as_ln_s
4286
if test "$LN_S" = "ln -s"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4287
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4288
$as_echo "yes" >&6; }
4289
else
4290
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4291
$as_echo "no, using $LN_S" >&6; }
4292
fi
4293
4294
case `pwd` in
4295
  *\ * | *\	*)
4296
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4297
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4298
esac
4299
4300
4301
4302
macro_version='2.2.6b'
4303
macro_revision='1.3017'
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
ltmain="$ac_aux_dir/ltmain.sh"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4318
4319
# Make sure we can run config.sub.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4320
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4321
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4322
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4324
$as_echo_n "checking build system type... " >&6; }
4325
if test "${ac_cv_build+set}" = set; then :
4326
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4327
else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4328
  ac_build_alias=$build_alias
4329
test "x$ac_build_alias" = x &&
4330
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4331
test "x$ac_build_alias" = x &&
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4332
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4333
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4334
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4335
4336
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4338
$as_echo "$ac_cv_build" >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4339
case $ac_cv_build in
4340
*-*-*) ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4341
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4342
esac
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4343
build=$ac_cv_build
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4344
ac_save_IFS=$IFS; IFS='-'
4345
set x $ac_cv_build
4346
shift
4347
build_cpu=$1
4348
build_vendor=$2
4349
shift; shift
4350
# Remember, the first character of IFS is used to create $*,
4351
# except with old shells:
4352
build_os=$*
4353
IFS=$ac_save_IFS
4354
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4355
4356
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4358
$as_echo_n "checking host system type... " >&6; }
4359
if test "${ac_cv_host+set}" = set; then :
4360
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4361
else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4362
  if test "x$host_alias" = x; then
4363
  ac_cv_host=$ac_cv_build
4364
else
4365
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4366
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4367
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4368
4369
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4371
$as_echo "$ac_cv_host" >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4372
case $ac_cv_host in
4373
*-*-*) ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4374
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4375
esac
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4376
host=$ac_cv_host
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4377
ac_save_IFS=$IFS; IFS='-'
4378
set x $ac_cv_host
4379
shift
4380
host_cpu=$1
4381
host_vendor=$2
4382
shift; shift
4383
# Remember, the first character of IFS is used to create $*,
4384
# except with old shells:
4385
host_os=$*
4386
IFS=$ac_save_IFS
4387
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4388
4389
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4391
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4392
if test "${ac_cv_path_SED+set}" = set; then :
4393
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4394
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4395
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4396
     for ac_i in 1 2 3 4 5 6 7; do
4397
       ac_script="$ac_script$as_nl$ac_script"
4398
     done
4399
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4400
     { ac_script=; unset ac_script;}
4401
     if test -z "$SED"; then
4402
  ac_path_SED_found=false
4403
  # Loop through the user's path and test for each of PROGNAME-LIST
4404
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4405
for as_dir in $PATH
4406
do
4407
  IFS=$as_save_IFS
4408
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4409
    for ac_prog in sed gsed; do
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4410
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4411
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4412
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4413
# Check for GNU ac_path_SED and select it if it is found.
4414
  # Check for GNU $ac_path_SED
4415
case `"$ac_path_SED" --version 2>&1` in
4416
*GNU*)
4417
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4418
*)
4419
  ac_count=0
4420
  $as_echo_n 0123456789 >"conftest.in"
4421
  while :
4422
  do
4423
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4424
    mv "conftest.tmp" "conftest.in"
4425
    cp "conftest.in" "conftest.nl"
4426
    $as_echo '' >> "conftest.nl"
4427
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4428
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4429
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4430
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4431
      # Best one so far, save it but keep looking for a better one
4432
      ac_cv_path_SED="$ac_path_SED"
4433
      ac_path_SED_max=$ac_count
4434
    fi
4435
    # 10*(2^10) chars as input seems more than enough
4436
    test $ac_count -gt 10 && break
4437
  done
4438
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4439
esac
4440
4441
      $ac_path_SED_found && break 3
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4442
    done
4443
  done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4444
  done
4445
IFS=$as_save_IFS
4446
  if test -z "$ac_cv_path_SED"; then
4447
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4448
  fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4449
else
4450
  ac_cv_path_SED=$SED
4451
fi
4452
4453
fi
4454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4455
$as_echo "$ac_cv_path_SED" >&6; }
4456
 SED="$ac_cv_path_SED"
4457
  rm -f conftest.sed
4458
4459
test -z "$SED" && SED=sed
4460
Xsed="$SED -e 1s/^X//"
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4473
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4474
if test "${ac_cv_path_GREP+set}" = set; then :
4475
  $as_echo_n "(cached) " >&6
4476
else
4477
  if test -z "$GREP"; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4478
  ac_path_GREP_found=false
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4479
  # Loop through the user's path and test for each of PROGNAME-LIST
4480
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4481
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4482
do
4483
  IFS=$as_save_IFS
4484
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4485
    for ac_prog in grep ggrep; do
4486
    for ac_exec_ext in '' $ac_executable_extensions; do
4487
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4488
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4489
# Check for GNU ac_path_GREP and select it if it is found.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4490
  # Check for GNU $ac_path_GREP
4491
case `"$ac_path_GREP" --version 2>&1` in
4492
*GNU*)
4493
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4494
*)
4495
  ac_count=0
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4496
  $as_echo_n 0123456789 >"conftest.in"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4497
  while :
4498
  do
4499
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4500
    mv "conftest.tmp" "conftest.in"
4501
    cp "conftest.in" "conftest.nl"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4502
    $as_echo 'GREP' >> "conftest.nl"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4503
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4504
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4505
    as_fn_arith $ac_count + 1 && ac_count=$as_val
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4506
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4507
      # Best one so far, save it but keep looking for a better one
4508
      ac_cv_path_GREP="$ac_path_GREP"
4509
      ac_path_GREP_max=$ac_count
4510
    fi
4511
    # 10*(2^10) chars as input seems more than enough
4512
    test $ac_count -gt 10 && break
4513
  done
4514
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4515
esac
4516
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4517
      $ac_path_GREP_found && break 3
4518
    done
4519
  done
4520
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4521
IFS=$as_save_IFS
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4522
  if test -z "$ac_cv_path_GREP"; then
4523
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4524
  fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4525
else
4526
  ac_cv_path_GREP=$GREP
4527
fi
4528
4529
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4531
$as_echo "$ac_cv_path_GREP" >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4532
 GREP="$ac_cv_path_GREP"
4533
4534
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4536
$as_echo_n "checking for egrep... " >&6; }
4537
if test "${ac_cv_path_EGREP+set}" = set; then :
4538
  $as_echo_n "(cached) " >&6
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4539
else
4540
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4541
   then ac_cv_path_EGREP="$GREP -E"
4542
   else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4543
     if test -z "$EGREP"; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4544
  ac_path_EGREP_found=false
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4545
  # Loop through the user's path and test for each of PROGNAME-LIST
4546
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4547
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4548
do
4549
  IFS=$as_save_IFS
4550
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4551
    for ac_prog in egrep; do
4552
    for ac_exec_ext in '' $ac_executable_extensions; do
4553
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4554
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4555
# Check for GNU ac_path_EGREP and select it if it is found.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4556
  # Check for GNU $ac_path_EGREP
4557
case `"$ac_path_EGREP" --version 2>&1` in
4558
*GNU*)
4559
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4560
*)
4561
  ac_count=0
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4562
  $as_echo_n 0123456789 >"conftest.in"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4563
  while :
4564
  do
4565
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4566
    mv "conftest.tmp" "conftest.in"
4567
    cp "conftest.in" "conftest.nl"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4568
    $as_echo 'EGREP' >> "conftest.nl"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4569
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4570
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4571
    as_fn_arith $ac_count + 1 && ac_count=$as_val
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4572
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4573
      # Best one so far, save it but keep looking for a better one
4574
      ac_cv_path_EGREP="$ac_path_EGREP"
4575
      ac_path_EGREP_max=$ac_count
4576
    fi
4577
    # 10*(2^10) chars as input seems more than enough
4578
    test $ac_count -gt 10 && break
4579
  done
4580
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4581
esac
4582
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4583
      $ac_path_EGREP_found && break 3
4584
    done
4585
  done
4586
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4587
IFS=$as_save_IFS
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4588
  if test -z "$ac_cv_path_EGREP"; then
4589
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4590
  fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4591
else
4592
  ac_cv_path_EGREP=$EGREP
4593
fi
4594
4595
   fi
4596
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4598
$as_echo "$ac_cv_path_EGREP" >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4599
 EGREP="$ac_cv_path_EGREP"
4600
4601
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4603
$as_echo_n "checking for fgrep... " >&6; }
4604
if test "${ac_cv_path_FGREP+set}" = set; then :
4605
  $as_echo_n "(cached) " >&6
4606
else
4607
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4608
   then ac_cv_path_FGREP="$GREP -F"
4609
   else
4610
     if test -z "$FGREP"; then
4611
  ac_path_FGREP_found=false
4612
  # Loop through the user's path and test for each of PROGNAME-LIST
4613
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4615
do
4616
  IFS=$as_save_IFS
4617
  test -z "$as_dir" && as_dir=.
4618
    for ac_prog in fgrep; do
4619
    for ac_exec_ext in '' $ac_executable_extensions; do
4620
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4621
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4622
# Check for GNU ac_path_FGREP and select it if it is found.
4623
  # Check for GNU $ac_path_FGREP
4624
case `"$ac_path_FGREP" --version 2>&1` in
4625
*GNU*)
4626
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4627
*)
4628
  ac_count=0
4629
  $as_echo_n 0123456789 >"conftest.in"
4630
  while :
4631
  do
4632
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4633
    mv "conftest.tmp" "conftest.in"
4634
    cp "conftest.in" "conftest.nl"
4635
    $as_echo 'FGREP' >> "conftest.nl"
4636
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4637
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4638
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4639
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4640
      # Best one so far, save it but keep looking for a better one
4641
      ac_cv_path_FGREP="$ac_path_FGREP"
4642
      ac_path_FGREP_max=$ac_count
4643
    fi
4644
    # 10*(2^10) chars as input seems more than enough
4645
    test $ac_count -gt 10 && break
4646
  done
4647
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4648
esac
4649
4650
      $ac_path_FGREP_found && break 3
4651
    done
4652
  done
4653
  done
4654
IFS=$as_save_IFS
4655
  if test -z "$ac_cv_path_FGREP"; then
4656
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4657
  fi
4658
else
4659
  ac_cv_path_FGREP=$FGREP
4660
fi
4661
4662
   fi
4663
fi
4664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4665
$as_echo "$ac_cv_path_FGREP" >&6; }
4666
 FGREP="$ac_cv_path_FGREP"
4667
4668
4669
test -z "$GREP" && GREP=grep
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4688
4689
# Check whether --with-gnu-ld was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4690
if test "${with_gnu_ld+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4691
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4692
else
4693
  with_gnu_ld=no
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4694
fi
4695
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4696
ac_prog=ld
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4697
if test "$GCC" = yes; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4698
  # Check if gcc -print-prog-name=ld gives a path.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4699
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4700
$as_echo_n "checking for ld used by $CC... " >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4701
  case $host in
4702
  *-*-mingw*)
4703
    # gcc leaves a trailing carriage return which upsets mingw
4704
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4705
  *)
4706
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4707
  esac
4708
  case $ac_prog in
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4709
    # Accept absolute paths.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4710
    [\\/]* | ?:[\\/]*)
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4711
      re_direlt='/[^/][^/]*/\.\./'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4712
      # Canonicalize the pathname of ld
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4713
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4714
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4715
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4716
      done
4717
      test -z "$LD" && LD="$ac_prog"
4718
      ;;
4719
  "")
4720
    # If it fails, then pretend we aren't using GCC.
4721
    ac_prog=ld
4722
    ;;
4723
  *)
4724
    # If it is relative, then search for the first ld in PATH.
4725
    with_gnu_ld=unknown
4726
    ;;
4727
  esac
4728
elif test "$with_gnu_ld" = yes; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4729
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4730
$as_echo_n "checking for GNU ld... " >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4731
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4732
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4733
$as_echo_n "checking for non-GNU ld... " >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4734
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4735
if test "${lt_cv_path_LD+set}" = set; then :
4736
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4737
else
4738
  if test -z "$LD"; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4739
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4740
  for ac_dir in $PATH; do
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4741
    IFS="$lt_save_ifs"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4742
    test -z "$ac_dir" && ac_dir=.
4743
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4744
      lt_cv_path_LD="$ac_dir/$ac_prog"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4745
      # Check to see if the program is GNU ld.  I'd rather use --version,
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4746
      # but apparently some variants of GNU ld only accept -v.
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4747
      # Break only if it was the GNU/non-GNU ld that we prefer.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4748
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4749
      *GNU* | *'with BFD'*)
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4750
	test "$with_gnu_ld" != no && break
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4751
	;;
4752
      *)
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4753
	test "$with_gnu_ld" != yes && break
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4754
	;;
4755
      esac
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4756
    fi
4757
  done
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4758
  IFS="$lt_save_ifs"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4759
else
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4760
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4761
fi
4762
fi
4763
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4764
LD="$lt_cv_path_LD"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4765
if test -n "$LD"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4766
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4767
$as_echo "$LD" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4768
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4769
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770
$as_echo "no" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4771
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4772
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4774
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4775
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4776
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4777
else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4778
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4779
case `$LD -v 2>&1 </dev/null` in
4780
*GNU* | *'with BFD'*)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4781
  lt_cv_prog_gnu_ld=yes
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4782
  ;;
4783
*)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4784
  lt_cv_prog_gnu_ld=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4785
  ;;
4786
esac
4787
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4789
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4790
with_gnu_ld=$lt_cv_prog_gnu_ld
4791
4792
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4793
4794
4795
4796
4797
4798
4799
4800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4801
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4802
if test "${lt_cv_path_NM+set}" = set; then :
4803
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4804
else
4805
  if test -n "$NM"; then
4806
  # Let the user override the test.
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
4807
  lt_cv_path_NM="$NM"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4808
else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4809
  lt_nm_to_check="${ac_tool_prefix}nm"
4810
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4811
    lt_nm_to_check="$lt_nm_to_check nm"
4812
  fi
4813
  for lt_tmp_nm in $lt_nm_to_check; do
4814
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4815
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4816
      IFS="$lt_save_ifs"
4817
      test -z "$ac_dir" && ac_dir=.
4818
      tmp_nm="$ac_dir/$lt_tmp_nm"
4819
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4820
	# Check to see if the nm accepts a BSD-compat flag.
4821
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4822
	#   nm: unknown option "B" ignored
4823
	# Tru64's nm complains that /dev/null is an invalid object file
4824
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4825
	*/dev/null* | *'Invalid file or object type'*)
4826
	  lt_cv_path_NM="$tmp_nm -B"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4827
	  break
4828
	  ;;
4829
	*)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4830
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4831
	  */dev/null*)
4832
	    lt_cv_path_NM="$tmp_nm -p"
4833
	    break
4834
	    ;;
4835
	  *)
4836
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4837
	    continue # so that we can try to find one that supports BSD flags
4838
	    ;;
4839
	  esac
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
4840
	  ;;
4841
	esac
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
4842
      fi
4843
    done
4844
    IFS="$lt_save_ifs"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
4845
  done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
4846
  : ${lt_cv_path_NM=no}
4847
fi
4848
fi
4849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4850
$as_echo "$lt_cv_path_NM" >&6; }
4851
if test "$lt_cv_path_NM" != "no"; then
4852
  NM="$lt_cv_path_NM"
4853
else
4854
  # Didn't find any BSD compatible name lister, look for dumpbin.
4855
  if test -n "$ac_tool_prefix"; then
4856
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4857
  do
4858
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4859
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861
$as_echo_n "checking for $ac_word... " >&6; }
4862
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4863
  $as_echo_n "(cached) " >&6
4864
else
4865
  if test -n "$DUMPBIN"; then
4866
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4867
else
4868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869
for as_dir in $PATH
4870
do
4871
  IFS=$as_save_IFS
4872
  test -z "$as_dir" && as_dir=.
4873
    for ac_exec_ext in '' $ac_executable_extensions; do
4874
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4876
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877
    break 2
4878
  fi
4879
done
4880
  done
4881
IFS=$as_save_IFS
4882
4883
fi
4884
fi
4885
DUMPBIN=$ac_cv_prog_DUMPBIN
4886
if test -n "$DUMPBIN"; then
4887
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4888
$as_echo "$DUMPBIN" >&6; }
4889
else
4890
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891
$as_echo "no" >&6; }
4892
fi
4893
4894
4895
    test -n "$DUMPBIN" && break
4896
  done
4897
fi
4898
if test -z "$DUMPBIN"; then
4899
  ac_ct_DUMPBIN=$DUMPBIN
4900
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4901
do
4902
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4903
set dummy $ac_prog; ac_word=$2
4904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905
$as_echo_n "checking for $ac_word... " >&6; }
4906
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4907
  $as_echo_n "(cached) " >&6
4908
else
4909
  if test -n "$ac_ct_DUMPBIN"; then
4910
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4911
else
4912
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913
for as_dir in $PATH
4914
do
4915
  IFS=$as_save_IFS
4916
  test -z "$as_dir" && as_dir=.
4917
    for ac_exec_ext in '' $ac_executable_extensions; do
4918
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4920
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921
    break 2
4922
  fi
4923
done
4924
  done
4925
IFS=$as_save_IFS
4926
4927
fi
4928
fi
4929
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4930
if test -n "$ac_ct_DUMPBIN"; then
4931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4932
$as_echo "$ac_ct_DUMPBIN" >&6; }
4933
else
4934
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935
$as_echo "no" >&6; }
4936
fi
4937
4938
4939
  test -n "$ac_ct_DUMPBIN" && break
4940
done
4941
4942
  if test "x$ac_ct_DUMPBIN" = x; then
4943
    DUMPBIN=":"
4944
  else
4945
    case $cross_compiling:$ac_tool_warned in
4946
yes:)
4947
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949
ac_tool_warned=yes ;;
4950
esac
4951
    DUMPBIN=$ac_ct_DUMPBIN
4952
  fi
4953
fi
4954
4955
4956
  if test "$DUMPBIN" != ":"; then
4957
    NM="$DUMPBIN"
4958
  fi
4959
fi
4960
test -z "$NM" && NM=nm
4961
4962
4963
4964
4965
4966
4967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4968
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4969
if test "${lt_cv_nm_interface+set}" = set; then :
4970
  $as_echo_n "(cached) " >&6
4971
else
4972
  lt_cv_nm_interface="BSD nm"
4973
  echo "int some_variable = 0;" > conftest.$ac_ext
4974
  (eval echo "\"\$as_me:4964: $ac_compile\"" >&5)
4975
  (eval "$ac_compile" 2>conftest.err)
4976
  cat conftest.err >&5
4977
  (eval echo "\"\$as_me:4967: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4978
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4979
  cat conftest.err >&5
4980
  (eval echo "\"\$as_me:4970: output\"" >&5)
4981
  cat conftest.out >&5
4982
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4983
    lt_cv_nm_interface="MS dumpbin"
4984
  fi
4985
  rm -f conftest*
4986
fi
4987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4988
$as_echo "$lt_cv_nm_interface" >&6; }
4989
4990
# find the maximum length of command line arguments
4991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4992
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4993
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4994
  $as_echo_n "(cached) " >&6
4995
else
4996
    i=0
4997
  teststring="ABCD"
4998
4999
  case $build_os in
5000
  msdosdjgpp*)
5001
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5002
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5003
    # during glob expansion).  Even if it were fixed, the result of this
5004
    # check would be larger than it should be.
5005
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5006
    ;;
5007
5008
  gnu*)
5009
    # Under GNU Hurd, this test is not required because there is
5010
    # no limit to the length of command line arguments.
5011
    # Libtool will interpret -1 as no limit whatsoever
5012
    lt_cv_sys_max_cmd_len=-1;
5013
    ;;
5014
5015
  cygwin* | mingw* | cegcc*)
5016
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5017
    # about 5 minutes as the teststring grows exponentially.
5018
    # Worse, since 9x/ME are not pre-emptively multitasking,
5019
    # you end up with a "frozen" computer, even though with patience
5020
    # the test eventually succeeds (with a max line length of 256k).
5021
    # Instead, let's just punt: use the minimum linelength reported by
5022
    # all of the supported platforms: 8192 (on NT/2K/XP).
5023
    lt_cv_sys_max_cmd_len=8192;
5024
    ;;
5025
5026
  amigaos*)
5027
    # On AmigaOS with pdksh, this test takes hours, literally.
5028
    # So we just punt and use a minimum line length of 8192.
5029
    lt_cv_sys_max_cmd_len=8192;
5030
    ;;
5031
5032
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5033
    # This has been around since 386BSD, at least.  Likely further.
5034
    if test -x /sbin/sysctl; then
5035
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5036
    elif test -x /usr/sbin/sysctl; then
5037
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5038
    else
5039
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5040
    fi
5041
    # And add a safety zone
5042
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5043
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5044
    ;;
5045
5046
  interix*)
5047
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5048
    lt_cv_sys_max_cmd_len=196608
5049
    ;;
5050
5051
  osf*)
5052
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5053
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5054
    # nice to cause kernel panics so lets avoid the loop below.
5055
    # First set a reasonable default.
5056
    lt_cv_sys_max_cmd_len=16384
5057
    #
5058
    if test -x /sbin/sysconfig; then
5059
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5060
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5061
      esac
5062
    fi
5063
    ;;
5064
  sco3.2v5*)
5065
    lt_cv_sys_max_cmd_len=102400
5066
    ;;
5067
  sysv5* | sco5v6* | sysv4.2uw2*)
5068
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5069
    if test -n "$kargmax"; then
5070
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5071
    else
5072
      lt_cv_sys_max_cmd_len=32768
5073
    fi
5074
    ;;
5075
  *)
5076
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5077
    if test -n "$lt_cv_sys_max_cmd_len"; then
5078
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5079
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5080
    else
5081
      # Make teststring a little bigger before we do anything with it.
5082
      # a 1K string should be a reasonable start.
5083
      for i in 1 2 3 4 5 6 7 8 ; do
5084
        teststring=$teststring$teststring
5085
      done
5086
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5087
      # If test is not a shell built-in, we'll probably end up computing a
5088
      # maximum length that is only half of the actual maximum length, but
5089
      # we can't tell.
5090
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5091
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5092
	      test $i != 17 # 1/2 MB should be enough
5093
      do
5094
        i=`expr $i + 1`
5095
        teststring=$teststring$teststring
5096
      done
5097
      # Only check the string length outside the loop.
5098
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5099
      teststring=
5100
      # Add a significant safety factor because C++ compilers can tack on
5101
      # massive amounts of additional arguments before passing them to the
5102
      # linker.  It appears as though 1/2 is a usable value.
5103
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5104
    fi
5105
    ;;
5106
  esac
5107
5108
fi
5109
5110
if test -n $lt_cv_sys_max_cmd_len ; then
5111
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5112
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5113
else
5114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5115
$as_echo "none" >&6; }
5116
fi
5117
max_cmd_len=$lt_cv_sys_max_cmd_len
5118
5119
5120
5121
5122
5123
5124
: ${CP="cp -f"}
5125
: ${MV="mv -f"}
5126
: ${RM="rm -f"}
5127
5128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5129
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5130
# Try some XSI features
5131
xsi_shell=no
5132
( _lt_dummy="a/b/c"
5133
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5134
      = c,a/b,, \
5135
    && eval 'test $(( 1 + 1 )) -eq 2 \
5136
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5137
  && xsi_shell=yes
5138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5139
$as_echo "$xsi_shell" >&6; }
5140
5141
5142
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5143
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5144
lt_shell_append=no
5145
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5146
    >/dev/null 2>&1 \
5147
  && lt_shell_append=yes
5148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5149
$as_echo "$lt_shell_append" >&6; }
5150
5151
5152
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5153
  lt_unset=unset
5154
else
5155
  lt_unset=false
5156
fi
5157
5158
5159
5160
5161
5162
# test EBCDIC or ASCII
5163
case `echo X|tr X '\101'` in
5164
 A) # ASCII based system
5165
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5166
  lt_SP2NL='tr \040 \012'
5167
  lt_NL2SP='tr \015\012 \040\040'
5168
  ;;
5169
 *) # EBCDIC based system
5170
  lt_SP2NL='tr \100 \n'
5171
  lt_NL2SP='tr \r\n \100\100'
5172
  ;;
5173
esac
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5184
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5185
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5186
  $as_echo_n "(cached) " >&6
5187
else
5188
  lt_cv_ld_reload_flag='-r'
5189
fi
5190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5191
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5192
reload_flag=$lt_cv_ld_reload_flag
5193
case $reload_flag in
5194
"" | " "*) ;;
5195
*) reload_flag=" $reload_flag" ;;
5196
esac
5197
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5198
case $host_os in
5199
  darwin*)
5200
    if test "$GCC" = yes; then
5201
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5202
    else
5203
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5204
    fi
5205
    ;;
5206
esac
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
if test -n "$ac_tool_prefix"; then
5217
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5218
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220
$as_echo_n "checking for $ac_word... " >&6; }
5221
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5222
  $as_echo_n "(cached) " >&6
5223
else
5224
  if test -n "$OBJDUMP"; then
5225
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5226
else
5227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228
for as_dir in $PATH
5229
do
5230
  IFS=$as_save_IFS
5231
  test -z "$as_dir" && as_dir=.
5232
    for ac_exec_ext in '' $ac_executable_extensions; do
5233
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5235
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236
    break 2
5237
  fi
5238
done
5239
  done
5240
IFS=$as_save_IFS
5241
5242
fi
5243
fi
5244
OBJDUMP=$ac_cv_prog_OBJDUMP
5245
if test -n "$OBJDUMP"; then
5246
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5247
$as_echo "$OBJDUMP" >&6; }
5248
else
5249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250
$as_echo "no" >&6; }
5251
fi
5252
5253
5254
fi
5255
if test -z "$ac_cv_prog_OBJDUMP"; then
5256
  ac_ct_OBJDUMP=$OBJDUMP
5257
  # Extract the first word of "objdump", so it can be a program name with args.
5258
set dummy objdump; ac_word=$2
5259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260
$as_echo_n "checking for $ac_word... " >&6; }
5261
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5262
  $as_echo_n "(cached) " >&6
5263
else
5264
  if test -n "$ac_ct_OBJDUMP"; then
5265
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5266
else
5267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268
for as_dir in $PATH
5269
do
5270
  IFS=$as_save_IFS
5271
  test -z "$as_dir" && as_dir=.
5272
    for ac_exec_ext in '' $ac_executable_extensions; do
5273
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5275
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276
    break 2
5277
  fi
5278
done
5279
  done
5280
IFS=$as_save_IFS
5281
5282
fi
5283
fi
5284
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5285
if test -n "$ac_ct_OBJDUMP"; then
5286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5287
$as_echo "$ac_ct_OBJDUMP" >&6; }
5288
else
5289
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290
$as_echo "no" >&6; }
5291
fi
5292
5293
  if test "x$ac_ct_OBJDUMP" = x; then
5294
    OBJDUMP="false"
5295
  else
5296
    case $cross_compiling:$ac_tool_warned in
5297
yes:)
5298
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5299
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5300
ac_tool_warned=yes ;;
5301
esac
5302
    OBJDUMP=$ac_ct_OBJDUMP
5303
  fi
5304
else
5305
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5306
fi
5307
5308
test -z "$OBJDUMP" && OBJDUMP=objdump
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5319
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5320
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5321
  $as_echo_n "(cached) " >&6
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5322
else
5323
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5324
lt_cv_file_magic_test_file=
5325
lt_cv_deplibs_check_method='unknown'
5326
# Need to set the preceding variable on all platforms that support
5327
# interlibrary dependencies.
5328
# 'none' -- dependencies not supported.
5329
# `unknown' -- same as none, but documents that we really don't know.
5330
# 'pass_all' -- all dependencies passed with no checks.
5331
# 'test_compile' -- check by making test program.
5332
# 'file_magic [[regex]]' -- check by looking for files in library path
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5333
# which responds to the $file_magic_cmd with a given extended regex.
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5334
# If you have `file' or equivalent on your system and you're not sure
5335
# whether `pass_all' will *always* work, you probably want this one.
5336
5337
case $host_os in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5338
aix[4-9]*)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5339
  lt_cv_deplibs_check_method=pass_all
5340
  ;;
5341
5342
beos*)
5343
  lt_cv_deplibs_check_method=pass_all
5344
  ;;
5345
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5346
bsdi[45]*)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5347
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5348
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5349
  lt_cv_file_magic_test_file=/shlib/libc.so
5350
  ;;
5351
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5352
cygwin*)
5353
  # func_win32_libid is a shell function defined in ltmain.sh
5354
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5355
  lt_cv_file_magic_cmd='func_win32_libid'
5356
  ;;
5357
5358
mingw* | pw32*)
5359
  # Base MSYS/MinGW do not provide the 'file' command needed by
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5360
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5361
  # unless we find 'file', for example because we are cross-compiling.
5362
  if ( file / ) >/dev/null 2>&1; then
5363
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5364
    lt_cv_file_magic_cmd='func_win32_libid'
5365
  else
5366
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5367
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5368
  fi
5369
  ;;
5370
5371
cegcc)
5372
  # use the weaker test based on 'objdump'. See mingw*.
5373
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5374
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5375
  ;;
5376
5377
darwin* | rhapsody*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5378
  lt_cv_deplibs_check_method=pass_all
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5379
  ;;
5380
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5381
freebsd* | dragonfly*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5382
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5383
    case $host_cpu in
5384
    i*86 )
5385
      # Not sure whether the presence of OpenBSD here was a mistake.
5386
      # Let's accept both of them until this is cleared up.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5387
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5388
      lt_cv_file_magic_cmd=/usr/bin/file
5389
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5390
      ;;
5391
    esac
5392
  else
5393
    lt_cv_deplibs_check_method=pass_all
5394
  fi
5395
  ;;
5396
5397
gnu*)
5398
  lt_cv_deplibs_check_method=pass_all
5399
  ;;
5400
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5401
hpux10.20* | hpux11*)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5402
  lt_cv_file_magic_cmd=/usr/bin/file
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5403
  case $host_cpu in
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5404
  ia64*)
5405
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5406
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5407
    ;;
5408
  hppa*64*)
5409
    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]'
5410
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5411
    ;;
5412
  *)
5413
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5414
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5415
    ;;
5416
  esac
5417
  ;;
5418
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5419
interix[3-9]*)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5420
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5421
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5422
  ;;
5423
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5424
irix5* | irix6* | nonstopux*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5425
  case $LD in
5426
  *-32|*"-32 ") libmagic=32-bit;;
5427
  *-n32|*"-n32 ") libmagic=N32;;
5428
  *-64|*"-64 ") libmagic=64-bit;;
5429
  *) libmagic=never-match;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5430
  esac
5431
  lt_cv_deplibs_check_method=pass_all
5432
  ;;
5433
5434
# This must be Linux ELF.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5435
linux* | k*bsd*-gnu)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5436
  lt_cv_deplibs_check_method=pass_all
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5437
  ;;
5438
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5439
netbsd*)
5440
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5441
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5442
  else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5443
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5444
  fi
5445
  ;;
5446
5447
newos6*)
5448
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5449
  lt_cv_file_magic_cmd=/usr/bin/file
5450
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5451
  ;;
5452
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5453
*nto* | *qnx*)
5454
  lt_cv_deplibs_check_method=pass_all
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5455
  ;;
5456
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5457
openbsd*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5458
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5459
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5460
  else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5461
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5462
  fi
5463
  ;;
5464
5465
osf3* | osf4* | osf5*)
5466
  lt_cv_deplibs_check_method=pass_all
5467
  ;;
5468
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5469
rdos*)
5470
  lt_cv_deplibs_check_method=pass_all
5471
  ;;
5472
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5473
solaris*)
5474
  lt_cv_deplibs_check_method=pass_all
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5475
  ;;
5476
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5477
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5478
  lt_cv_deplibs_check_method=pass_all
5479
  ;;
5480
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5481
sysv4 | sysv4.3*)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5482
  case $host_vendor in
5483
  motorola)
5484
    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]'
5485
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5486
    ;;
5487
  ncr)
5488
    lt_cv_deplibs_check_method=pass_all
5489
    ;;
5490
  sequent)
5491
    lt_cv_file_magic_cmd='/bin/file'
5492
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5493
    ;;
5494
  sni)
5495
    lt_cv_file_magic_cmd='/bin/file'
5496
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5497
    lt_cv_file_magic_test_file=/lib/libc.so
5498
    ;;
5499
  siemens)
5500
    lt_cv_deplibs_check_method=pass_all
5501
    ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5502
  pc)
5503
    lt_cv_deplibs_check_method=pass_all
5504
    ;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5505
  esac
5506
  ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5507
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5508
tpf*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5509
  lt_cv_deplibs_check_method=pass_all
5510
  ;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5511
esac
5512
5513
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5515
$as_echo "$lt_cv_deplibs_check_method" >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5516
file_magic_cmd=$lt_cv_file_magic_cmd
5517
deplibs_check_method=$lt_cv_deplibs_check_method
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5518
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5519
5520
5521
5522
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5523
5524
5525
5526
5527
5528
5529
5530
5531
if test -n "$ac_tool_prefix"; then
5532
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5533
set dummy ${ac_tool_prefix}ar; ac_word=$2
5534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535
$as_echo_n "checking for $ac_word... " >&6; }
5536
if test "${ac_cv_prog_AR+set}" = set; then :
5537
  $as_echo_n "(cached) " >&6
5538
else
5539
  if test -n "$AR"; then
5540
  ac_cv_prog_AR="$AR" # Let the user override the test.
5541
else
5542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543
for as_dir in $PATH
5544
do
5545
  IFS=$as_save_IFS
5546
  test -z "$as_dir" && as_dir=.
5547
    for ac_exec_ext in '' $ac_executable_extensions; do
5548
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5550
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551
    break 2
5552
  fi
5553
done
5554
  done
5555
IFS=$as_save_IFS
5556
5557
fi
5558
fi
5559
AR=$ac_cv_prog_AR
5560
if test -n "$AR"; then
5561
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5562
$as_echo "$AR" >&6; }
5563
else
5564
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565
$as_echo "no" >&6; }
5566
fi
5567
5568
5569
fi
5570
if test -z "$ac_cv_prog_AR"; then
5571
  ac_ct_AR=$AR
5572
  # Extract the first word of "ar", so it can be a program name with args.
5573
set dummy ar; ac_word=$2
5574
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575
$as_echo_n "checking for $ac_word... " >&6; }
5576
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5577
  $as_echo_n "(cached) " >&6
5578
else
5579
  if test -n "$ac_ct_AR"; then
5580
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5581
else
5582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583
for as_dir in $PATH
5584
do
5585
  IFS=$as_save_IFS
5586
  test -z "$as_dir" && as_dir=.
5587
    for ac_exec_ext in '' $ac_executable_extensions; do
5588
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589
    ac_cv_prog_ac_ct_AR="ar"
5590
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591
    break 2
5592
  fi
5593
done
5594
  done
5595
IFS=$as_save_IFS
5596
5597
fi
5598
fi
5599
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5600
if test -n "$ac_ct_AR"; then
5601
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5602
$as_echo "$ac_ct_AR" >&6; }
5603
else
5604
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605
$as_echo "no" >&6; }
5606
fi
5607
5608
  if test "x$ac_ct_AR" = x; then
5609
    AR="false"
5610
  else
5611
    case $cross_compiling:$ac_tool_warned in
5612
yes:)
5613
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5614
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5615
ac_tool_warned=yes ;;
5616
esac
5617
    AR=$ac_ct_AR
5618
  fi
5619
else
5620
  AR="$ac_cv_prog_AR"
5621
fi
5622
5623
test -z "$AR" && AR=ar
5624
test -z "$AR_FLAGS" && AR_FLAGS=cru
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
if test -n "$ac_tool_prefix"; then
5637
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5638
set dummy ${ac_tool_prefix}strip; ac_word=$2
5639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640
$as_echo_n "checking for $ac_word... " >&6; }
5641
if test "${ac_cv_prog_STRIP+set}" = set; then :
5642
  $as_echo_n "(cached) " >&6
5643
else
5644
  if test -n "$STRIP"; then
5645
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5646
else
5647
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648
for as_dir in $PATH
5649
do
5650
  IFS=$as_save_IFS
5651
  test -z "$as_dir" && as_dir=.
5652
    for ac_exec_ext in '' $ac_executable_extensions; do
5653
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5655
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5656
    break 2
5657
  fi
5658
done
5659
  done
5660
IFS=$as_save_IFS
5661
5662
fi
5663
fi
5664
STRIP=$ac_cv_prog_STRIP
5665
if test -n "$STRIP"; then
5666
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5667
$as_echo "$STRIP" >&6; }
5668
else
5669
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670
$as_echo "no" >&6; }
5671
fi
5672
5673
5674
fi
5675
if test -z "$ac_cv_prog_STRIP"; then
5676
  ac_ct_STRIP=$STRIP
5677
  # Extract the first word of "strip", so it can be a program name with args.
5678
set dummy strip; ac_word=$2
5679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680
$as_echo_n "checking for $ac_word... " >&6; }
5681
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5682
  $as_echo_n "(cached) " >&6
5683
else
5684
  if test -n "$ac_ct_STRIP"; then
5685
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5686
else
5687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688
for as_dir in $PATH
5689
do
5690
  IFS=$as_save_IFS
5691
  test -z "$as_dir" && as_dir=.
5692
    for ac_exec_ext in '' $ac_executable_extensions; do
5693
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694
    ac_cv_prog_ac_ct_STRIP="strip"
5695
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696
    break 2
5697
  fi
5698
done
5699
  done
5700
IFS=$as_save_IFS
5701
5702
fi
5703
fi
5704
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5705
if test -n "$ac_ct_STRIP"; then
5706
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5707
$as_echo "$ac_ct_STRIP" >&6; }
5708
else
5709
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710
$as_echo "no" >&6; }
5711
fi
5712
5713
  if test "x$ac_ct_STRIP" = x; then
5714
    STRIP=":"
5715
  else
5716
    case $cross_compiling:$ac_tool_warned in
5717
yes:)
5718
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720
ac_tool_warned=yes ;;
5721
esac
5722
    STRIP=$ac_ct_STRIP
5723
  fi
5724
else
5725
  STRIP="$ac_cv_prog_STRIP"
5726
fi
5727
5728
test -z "$STRIP" && STRIP=:
5729
5730
5731
5732
5733
5734
5735
if test -n "$ac_tool_prefix"; then
5736
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5737
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739
$as_echo_n "checking for $ac_word... " >&6; }
5740
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5741
  $as_echo_n "(cached) " >&6
5742
else
5743
  if test -n "$RANLIB"; then
5744
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5745
else
5746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747
for as_dir in $PATH
5748
do
5749
  IFS=$as_save_IFS
5750
  test -z "$as_dir" && as_dir=.
5751
    for ac_exec_ext in '' $ac_executable_extensions; do
5752
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5753
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5754
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755
    break 2
5756
  fi
5757
done
5758
  done
5759
IFS=$as_save_IFS
5760
5761
fi
5762
fi
5763
RANLIB=$ac_cv_prog_RANLIB
5764
if test -n "$RANLIB"; then
5765
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5766
$as_echo "$RANLIB" >&6; }
5767
else
5768
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769
$as_echo "no" >&6; }
5770
fi
5771
5772
5773
fi
5774
if test -z "$ac_cv_prog_RANLIB"; then
5775
  ac_ct_RANLIB=$RANLIB
5776
  # Extract the first word of "ranlib", so it can be a program name with args.
5777
set dummy ranlib; ac_word=$2
5778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779
$as_echo_n "checking for $ac_word... " >&6; }
5780
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5781
  $as_echo_n "(cached) " >&6
5782
else
5783
  if test -n "$ac_ct_RANLIB"; then
5784
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5785
else
5786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787
for as_dir in $PATH
5788
do
5789
  IFS=$as_save_IFS
5790
  test -z "$as_dir" && as_dir=.
5791
    for ac_exec_ext in '' $ac_executable_extensions; do
5792
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5793
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5794
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795
    break 2
5796
  fi
5797
done
5798
  done
5799
IFS=$as_save_IFS
5800
5801
fi
5802
fi
5803
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5804
if test -n "$ac_ct_RANLIB"; then
5805
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5806
$as_echo "$ac_ct_RANLIB" >&6; }
5807
else
5808
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809
$as_echo "no" >&6; }
5810
fi
5811
5812
  if test "x$ac_ct_RANLIB" = x; then
5813
    RANLIB=":"
5814
  else
5815
    case $cross_compiling:$ac_tool_warned in
5816
yes:)
5817
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5818
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5819
ac_tool_warned=yes ;;
5820
esac
5821
    RANLIB=$ac_ct_RANLIB
5822
  fi
5823
else
5824
  RANLIB="$ac_cv_prog_RANLIB"
5825
fi
5826
5827
test -z "$RANLIB" && RANLIB=:
5828
5829
5830
5831
5832
5833
5834
# Determine commands to create old-style static archives.
5835
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5836
old_postinstall_cmds='chmod 644 $oldlib'
5837
old_postuninstall_cmds=
5838
5839
if test -n "$RANLIB"; then
5840
  case $host_os in
5841
  openbsd*)
5842
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5843
    ;;
5844
  *)
5845
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5846
    ;;
5847
  esac
5848
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5849
fi
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5884
# If no C compiler was specified, use CC.
5885
LTCC=${LTCC-"$CC"}
5886
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5887
# If no C compiler flags were specified, use CFLAGS.
5888
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5889
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5890
# Allow CC to be a program name with arguments.
5891
compiler=$CC
5892
5893
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5894
# Check for command to grab the raw symbol name followed by C symbol from nm.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5896
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5897
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5898
  $as_echo_n "(cached) " >&6
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5899
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5900
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5901
# These are sane defaults that work on at least a few old systems.
5902
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5903
5904
# Character class describing NM global symbol codes.
5905
symcode='[BCDEGRST]'
5906
5907
# Regexp to match symbols that can be accessed directly from C.
5908
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5909
5910
# Define system-specific variables.
5911
case $host_os in
5912
aix*)
5913
  symcode='[BCDT]'
5914
  ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5915
cygwin* | mingw* | pw32* | cegcc*)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5916
  symcode='[ABCDGISTW]'
5917
  ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5918
hpux*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5919
  if test "$host_cpu" = ia64; then
5920
    symcode='[ABCDEGRST]'
5921
  fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5922
  ;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5923
irix* | nonstopux*)
5924
  symcode='[BCDEGRST]'
5925
  ;;
5926
osf*)
5927
  symcode='[BCDEGQRST]'
5928
  ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5929
solaris*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5930
  symcode='[BDRT]'
5931
  ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5932
sco3.2v5*)
5933
  symcode='[DT]'
5934
  ;;
5935
sysv4.2uw2*)
5936
  symcode='[DT]'
5937
  ;;
5938
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5939
  symcode='[ABDT]'
5940
  ;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5941
sysv4)
5942
  symcode='[DFNSTU]'
5943
  ;;
5944
esac
5945
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5946
# If we're using GNU nm, then use its standard symbol codes.
5947
case `$NM -V 2>&1` in
5948
*GNU* | *'with BFD'*)
5949
  symcode='[ABCDGIRSTW]' ;;
5950
esac
5951
5952
# Transform an extracted symbol line into a proper C declaration.
5953
# Some systems (esp. on ia64) link data and code symbols differently,
5954
# so use this general approach.
5955
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5956
5957
# Transform an extracted symbol line into symbol name and symbol address
5958
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5959
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5960
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5961
# Handle CRLF in mingw tool chain
5962
opt_cr=
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5963
case $build_os in
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5964
mingw*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5965
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5966
  ;;
5967
esac
5968
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5969
# Try without a prefix underscore, then with it.
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5970
for ac_symprfx in "" "_"; do
5971
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
5972
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5973
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5974
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5975
  # Write the raw and C identifiers.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
5976
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5977
    # Fake it for dumpbin and say T for any non-static function
5978
    # and D for any global variable.
5979
    # Also find C++ and __fastcall symbols from MSVC++,
5980
    # which start with @ or ?.
5981
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5982
"     {last_section=section; section=\$ 3};"\
5983
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5984
"     \$ 0!~/External *\|/{next};"\
5985
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5986
"     {if(hide[section]) next};"\
5987
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5988
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5989
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5990
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5991
"     ' prfx=^$ac_symprfx"
5992
  else
5993
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5994
  fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5995
5996
  # Check to see that the pipe works correctly.
5997
  pipe_works=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
5998
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
5999
  rm -f conftest*
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6000
  cat > conftest.$ac_ext <<_LT_EOF
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6001
#ifdef __cplusplus
6002
extern "C" {
6003
#endif
6004
char nm_test_var;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6005
void nm_test_func(void);
6006
void nm_test_func(void){}
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6007
#ifdef __cplusplus
6008
}
6009
#endif
6010
int main(){nm_test_var='a';nm_test_func();return(0);}
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6011
_LT_EOF
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6012
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6013
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
6014
  (eval $ac_compile) 2>&5
6015
  ac_status=$?
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6016
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017
  test $ac_status = 0; }; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6018
    # Now try to grab the symbols.
6019
    nlist=conftest.nm
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6020
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
6021
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6022
  ac_status=$?
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6023
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6024
  test $ac_status = 0; } && test -s "$nlist"; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6025
      # Try sorting and uniquifying the output.
6026
      if sort "$nlist" | uniq > "$nlist"T; then
6027
	mv -f "$nlist"T "$nlist"
6028
      else
6029
	rm -f "$nlist"T
6030
      fi
6031
6032
      # Make sure that we snagged all the symbols we need.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6033
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6034
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6035
	  cat <<_LT_EOF > conftest.$ac_ext
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6036
#ifdef __cplusplus
6037
extern "C" {
6038
#endif
6039
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6040
_LT_EOF
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6041
	  # Now generate the symbol file.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6042
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6043
6044
	  cat <<_LT_EOF >> conftest.$ac_ext
6045
6046
/* The mapping between symbol names and symbols.  */
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6047
const struct {
6048
  const char *name;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6049
  void       *address;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6050
}
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6051
lt__PROGRAM__LTX_preloaded_symbols[] =
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6052
{
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6053
  { "@PROGRAM@", (void *) 0 },
6054
_LT_EOF
6055
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6056
	  cat <<\_LT_EOF >> conftest.$ac_ext
6057
  {0, (void *) 0}
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6058
};
6059
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6060
/* This works around a problem in FreeBSD linker */
6061
#ifdef FREEBSD_WORKAROUND
6062
static const void *lt_preloaded_setup() {
6063
  return lt__PROGRAM__LTX_preloaded_symbols;
6064
}
6065
#endif
6066
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6067
#ifdef __cplusplus
6068
}
6069
#endif
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6070
_LT_EOF
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6071
	  # Now try linking the two files.
6072
	  mv conftest.$ac_objext conftstm.$ac_objext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
6073
	  lt_save_LIBS="$LIBS"
6074
	  lt_save_CFLAGS="$CFLAGS"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6075
	  LIBS="conftstm.$ac_objext"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
6076
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6077
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
6078
  (eval $ac_link) 2>&5
6079
  ac_status=$?
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6080
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6081
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6082
	    pipe_works=yes
6083
	  fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
6084
	  LIBS="$lt_save_LIBS"
6085
	  CFLAGS="$lt_save_CFLAGS"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6086
	else
6087
	  echo "cannot find nm_test_func in $nlist" >&5
6088
	fi
6089
      else
6090
	echo "cannot find nm_test_var in $nlist" >&5
6091
      fi
6092
    else
6093
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6094
    fi
6095
  else
6096
    echo "$progname: failed program was:" >&5
6097
    cat conftest.$ac_ext >&5
6098
  fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6099
  rm -rf conftest* conftst*
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
6100
6101
  # Do not use the global_symbol_pipe unless it works.
6102
  if test "$pipe_works" = yes; then
6103
    break
6104
  else
6105
    lt_cv_sys_global_symbol_pipe=
6106
  fi
6107
done
6108
6109
fi
6110
6111
if test -z "$lt_cv_sys_global_symbol_pipe"; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
6112
  lt_cv_sys_global_symbol_to_cdecl=
6113
fi
6114
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
6115
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6116
$as_echo "failed" >&6; }
6117
else
6118
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6119
$as_echo "ok" >&6; }
6120
fi
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
# Check whether --enable-libtool-lock was given.
6145
if test "${enable_libtool_lock+set}" = set; then :
6146
  enableval=$enable_libtool_lock;
6147
fi
6148
6149
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6150
6151
# Some flags need to be propagated to the compiler or linker for good
6152
# libtool support.
6153
case $host in
6154
ia64-*-hpux*)
6155
  # Find out which ABI we are using.
6156
  echo 'int i;' > conftest.$ac_ext
6157
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6158
  (eval $ac_compile) 2>&5
6159
  ac_status=$?
6160
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161
  test $ac_status = 0; }; then
6162
    case `/usr/bin/file conftest.$ac_objext` in
6163
      *ELF-32*)
6164
	HPUX_IA64_MODE="32"
6165
	;;
6166
      *ELF-64*)
6167
	HPUX_IA64_MODE="64"
6168
	;;
6169
    esac
6170
  fi
6171
  rm -rf conftest*
6172
  ;;
6173
*-*-irix6*)
6174
  # Find out which ABI we are using.
6175
  echo '#line 6165 "configure"' > conftest.$ac_ext
6176
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6177
  (eval $ac_compile) 2>&5
6178
  ac_status=$?
6179
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180
  test $ac_status = 0; }; then
6181
    if test "$lt_cv_prog_gnu_ld" = yes; then
6182
      case `/usr/bin/file conftest.$ac_objext` in
6183
	*32-bit*)
6184
	  LD="${LD-ld} -melf32bsmip"
6185
	  ;;
6186
	*N32*)
6187
	  LD="${LD-ld} -melf32bmipn32"
6188
	  ;;
6189
	*64-bit*)
6190
	  LD="${LD-ld} -melf64bmip"
6191
	;;
6192
      esac
6193
    else
6194
      case `/usr/bin/file conftest.$ac_objext` in
6195
	*32-bit*)
6196
	  LD="${LD-ld} -32"
6197
	  ;;
6198
	*N32*)
6199
	  LD="${LD-ld} -n32"
6200
	  ;;
6201
	*64-bit*)
6202
	  LD="${LD-ld} -64"
6203
	  ;;
6204
      esac
6205
    fi
6206
  fi
6207
  rm -rf conftest*
6208
  ;;
6209
6210
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6211
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6212
  # Find out which ABI we are using.
6213
  echo 'int i;' > conftest.$ac_ext
6214
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6215
  (eval $ac_compile) 2>&5
6216
  ac_status=$?
6217
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6218
  test $ac_status = 0; }; then
6219
    case `/usr/bin/file conftest.o` in
6220
      *32-bit*)
6221
	case $host in
6222
	  x86_64-*kfreebsd*-gnu)
6223
	    LD="${LD-ld} -m elf_i386_fbsd"
6224
	    ;;
6225
	  x86_64-*linux*)
6226
	    LD="${LD-ld} -m elf_i386"
6227
	    ;;
6228
	  ppc64-*linux*|powerpc64-*linux*)
6229
	    LD="${LD-ld} -m elf32ppclinux"
6230
	    ;;
6231
	  s390x-*linux*)
6232
	    LD="${LD-ld} -m elf_s390"
6233
	    ;;
6234
	  sparc64-*linux*)
6235
	    LD="${LD-ld} -m elf32_sparc"
6236
	    ;;
6237
	esac
6238
	;;
6239
      *64-bit*)
6240
	case $host in
6241
	  x86_64-*kfreebsd*-gnu)
6242
	    LD="${LD-ld} -m elf_x86_64_fbsd"
6243
	    ;;
6244
	  x86_64-*linux*)
6245
	    LD="${LD-ld} -m elf_x86_64"
6246
	    ;;
6247
	  ppc*-*linux*|powerpc*-*linux*)
6248
	    LD="${LD-ld} -m elf64ppc"
6249
	    ;;
6250
	  s390*-*linux*|s390*-*tpf*)
6251
	    LD="${LD-ld} -m elf64_s390"
6252
	    ;;
6253
	  sparc*-*linux*)
6254
	    LD="${LD-ld} -m elf64_sparc"
6255
	    ;;
6256
	esac
6257
	;;
6258
    esac
6259
  fi
6260
  rm -rf conftest*
6261
  ;;
6262
6263
*-*-sco3.2v5*)
6264
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6265
  SAVE_CFLAGS="$CFLAGS"
6266
  CFLAGS="$CFLAGS -belf"
6267
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6268
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6269
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6270
  $as_echo_n "(cached) " >&6
6271
else
6272
  ac_ext=c
6273
ac_cpp='$CPP $CPPFLAGS'
6274
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6275
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6276
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6277
6278
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279
/* end confdefs.h.  */
6280
6281
int
6282
main ()
6283
{
6284
6285
  ;
6286
  return 0;
6287
}
6288
_ACEOF
6289
if ac_fn_c_try_link "$LINENO"; then :
6290
  lt_cv_cc_needs_belf=yes
6291
else
6292
  lt_cv_cc_needs_belf=no
6293
fi
6294
rm -f core conftest.err conftest.$ac_objext \
6295
    conftest$ac_exeext conftest.$ac_ext
6296
     ac_ext=c
6297
ac_cpp='$CPP $CPPFLAGS'
6298
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6299
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6300
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6301
6302
fi
6303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6304
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6305
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6306
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6307
    CFLAGS="$SAVE_CFLAGS"
6308
  fi
6309
  ;;
6310
sparc*-*solaris*)
6311
  # Find out which ABI we are using.
6312
  echo 'int i;' > conftest.$ac_ext
6313
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6314
  (eval $ac_compile) 2>&5
6315
  ac_status=$?
6316
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317
  test $ac_status = 0; }; then
6318
    case `/usr/bin/file conftest.o` in
6319
    *64-bit*)
6320
      case $lt_cv_prog_gnu_ld in
6321
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6322
      *)
6323
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6324
	  LD="${LD-ld} -64"
6325
	fi
6326
	;;
6327
      esac
6328
      ;;
6329
    esac
6330
  fi
6331
  rm -rf conftest*
6332
  ;;
6333
esac
6334
6335
need_locks="$enable_libtool_lock"
6336
6337
6338
  case $host_os in
6339
    rhapsody* | darwin*)
6340
    if test -n "$ac_tool_prefix"; then
6341
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6342
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344
$as_echo_n "checking for $ac_word... " >&6; }
6345
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6346
  $as_echo_n "(cached) " >&6
6347
else
6348
  if test -n "$DSYMUTIL"; then
6349
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6350
else
6351
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352
for as_dir in $PATH
6353
do
6354
  IFS=$as_save_IFS
6355
  test -z "$as_dir" && as_dir=.
6356
    for ac_exec_ext in '' $ac_executable_extensions; do
6357
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6359
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360
    break 2
6361
  fi
6362
done
6363
  done
6364
IFS=$as_save_IFS
6365
6366
fi
6367
fi
6368
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6369
if test -n "$DSYMUTIL"; then
6370
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6371
$as_echo "$DSYMUTIL" >&6; }
6372
else
6373
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374
$as_echo "no" >&6; }
6375
fi
6376
6377
6378
fi
6379
if test -z "$ac_cv_prog_DSYMUTIL"; then
6380
  ac_ct_DSYMUTIL=$DSYMUTIL
6381
  # Extract the first word of "dsymutil", so it can be a program name with args.
6382
set dummy dsymutil; ac_word=$2
6383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384
$as_echo_n "checking for $ac_word... " >&6; }
6385
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6386
  $as_echo_n "(cached) " >&6
6387
else
6388
  if test -n "$ac_ct_DSYMUTIL"; then
6389
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6390
else
6391
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392
for as_dir in $PATH
6393
do
6394
  IFS=$as_save_IFS
6395
  test -z "$as_dir" && as_dir=.
6396
    for ac_exec_ext in '' $ac_executable_extensions; do
6397
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6399
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400
    break 2
6401
  fi
6402
done
6403
  done
6404
IFS=$as_save_IFS
6405
6406
fi
6407
fi
6408
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6409
if test -n "$ac_ct_DSYMUTIL"; then
6410
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6411
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6412
else
6413
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414
$as_echo "no" >&6; }
6415
fi
6416
6417
  if test "x$ac_ct_DSYMUTIL" = x; then
6418
    DSYMUTIL=":"
6419
  else
6420
    case $cross_compiling:$ac_tool_warned in
6421
yes:)
6422
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424
ac_tool_warned=yes ;;
6425
esac
6426
    DSYMUTIL=$ac_ct_DSYMUTIL
6427
  fi
6428
else
6429
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6430
fi
6431
6432
    if test -n "$ac_tool_prefix"; then
6433
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6434
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436
$as_echo_n "checking for $ac_word... " >&6; }
6437
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6438
  $as_echo_n "(cached) " >&6
6439
else
6440
  if test -n "$NMEDIT"; then
6441
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6442
else
6443
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444
for as_dir in $PATH
6445
do
6446
  IFS=$as_save_IFS
6447
  test -z "$as_dir" && as_dir=.
6448
    for ac_exec_ext in '' $ac_executable_extensions; do
6449
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6451
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452
    break 2
6453
  fi
6454
done
6455
  done
6456
IFS=$as_save_IFS
6457
6458
fi
6459
fi
6460
NMEDIT=$ac_cv_prog_NMEDIT
6461
if test -n "$NMEDIT"; then
6462
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6463
$as_echo "$NMEDIT" >&6; }
6464
else
6465
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466
$as_echo "no" >&6; }
6467
fi
6468
6469
6470
fi
6471
if test -z "$ac_cv_prog_NMEDIT"; then
6472
  ac_ct_NMEDIT=$NMEDIT
6473
  # Extract the first word of "nmedit", so it can be a program name with args.
6474
set dummy nmedit; ac_word=$2
6475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476
$as_echo_n "checking for $ac_word... " >&6; }
6477
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6478
  $as_echo_n "(cached) " >&6
6479
else
6480
  if test -n "$ac_ct_NMEDIT"; then
6481
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6482
else
6483
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484
for as_dir in $PATH
6485
do
6486
  IFS=$as_save_IFS
6487
  test -z "$as_dir" && as_dir=.
6488
    for ac_exec_ext in '' $ac_executable_extensions; do
6489
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6490
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6491
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492
    break 2
6493
  fi
6494
done
6495
  done
6496
IFS=$as_save_IFS
6497
6498
fi
6499
fi
6500
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6501
if test -n "$ac_ct_NMEDIT"; then
6502
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6503
$as_echo "$ac_ct_NMEDIT" >&6; }
6504
else
6505
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506
$as_echo "no" >&6; }
6507
fi
6508
6509
  if test "x$ac_ct_NMEDIT" = x; then
6510
    NMEDIT=":"
6511
  else
6512
    case $cross_compiling:$ac_tool_warned in
6513
yes:)
6514
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6515
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6516
ac_tool_warned=yes ;;
6517
esac
6518
    NMEDIT=$ac_ct_NMEDIT
6519
  fi
6520
else
6521
  NMEDIT="$ac_cv_prog_NMEDIT"
6522
fi
6523
6524
    if test -n "$ac_tool_prefix"; then
6525
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6526
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528
$as_echo_n "checking for $ac_word... " >&6; }
6529
if test "${ac_cv_prog_LIPO+set}" = set; then :
6530
  $as_echo_n "(cached) " >&6
6531
else
6532
  if test -n "$LIPO"; then
6533
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6534
else
6535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536
for as_dir in $PATH
6537
do
6538
  IFS=$as_save_IFS
6539
  test -z "$as_dir" && as_dir=.
6540
    for ac_exec_ext in '' $ac_executable_extensions; do
6541
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6543
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544
    break 2
6545
  fi
6546
done
6547
  done
6548
IFS=$as_save_IFS
6549
6550
fi
6551
fi
6552
LIPO=$ac_cv_prog_LIPO
6553
if test -n "$LIPO"; then
6554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6555
$as_echo "$LIPO" >&6; }
6556
else
6557
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558
$as_echo "no" >&6; }
6559
fi
6560
6561
6562
fi
6563
if test -z "$ac_cv_prog_LIPO"; then
6564
  ac_ct_LIPO=$LIPO
6565
  # Extract the first word of "lipo", so it can be a program name with args.
6566
set dummy lipo; ac_word=$2
6567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568
$as_echo_n "checking for $ac_word... " >&6; }
6569
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6570
  $as_echo_n "(cached) " >&6
6571
else
6572
  if test -n "$ac_ct_LIPO"; then
6573
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6574
else
6575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576
for as_dir in $PATH
6577
do
6578
  IFS=$as_save_IFS
6579
  test -z "$as_dir" && as_dir=.
6580
    for ac_exec_ext in '' $ac_executable_extensions; do
6581
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582
    ac_cv_prog_ac_ct_LIPO="lipo"
6583
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584
    break 2
6585
  fi
6586
done
6587
  done
6588
IFS=$as_save_IFS
6589
6590
fi
6591
fi
6592
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6593
if test -n "$ac_ct_LIPO"; then
6594
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6595
$as_echo "$ac_ct_LIPO" >&6; }
6596
else
6597
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598
$as_echo "no" >&6; }
6599
fi
6600
6601
  if test "x$ac_ct_LIPO" = x; then
6602
    LIPO=":"
6603
  else
6604
    case $cross_compiling:$ac_tool_warned in
6605
yes:)
6606
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6607
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6608
ac_tool_warned=yes ;;
6609
esac
6610
    LIPO=$ac_ct_LIPO
6611
  fi
6612
else
6613
  LIPO="$ac_cv_prog_LIPO"
6614
fi
6615
6616
    if test -n "$ac_tool_prefix"; then
6617
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6618
set dummy ${ac_tool_prefix}otool; ac_word=$2
6619
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620
$as_echo_n "checking for $ac_word... " >&6; }
6621
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6622
  $as_echo_n "(cached) " >&6
6623
else
6624
  if test -n "$OTOOL"; then
6625
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6626
else
6627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628
for as_dir in $PATH
6629
do
6630
  IFS=$as_save_IFS
6631
  test -z "$as_dir" && as_dir=.
6632
    for ac_exec_ext in '' $ac_executable_extensions; do
6633
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6635
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636
    break 2
6637
  fi
6638
done
6639
  done
6640
IFS=$as_save_IFS
6641
6642
fi
6643
fi
6644
OTOOL=$ac_cv_prog_OTOOL
6645
if test -n "$OTOOL"; then
6646
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6647
$as_echo "$OTOOL" >&6; }
6648
else
6649
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650
$as_echo "no" >&6; }
6651
fi
6652
6653
6654
fi
6655
if test -z "$ac_cv_prog_OTOOL"; then
6656
  ac_ct_OTOOL=$OTOOL
6657
  # Extract the first word of "otool", so it can be a program name with args.
6658
set dummy otool; ac_word=$2
6659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660
$as_echo_n "checking for $ac_word... " >&6; }
6661
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6662
  $as_echo_n "(cached) " >&6
6663
else
6664
  if test -n "$ac_ct_OTOOL"; then
6665
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6666
else
6667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668
for as_dir in $PATH
6669
do
6670
  IFS=$as_save_IFS
6671
  test -z "$as_dir" && as_dir=.
6672
    for ac_exec_ext in '' $ac_executable_extensions; do
6673
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674
    ac_cv_prog_ac_ct_OTOOL="otool"
6675
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676
    break 2
6677
  fi
6678
done
6679
  done
6680
IFS=$as_save_IFS
6681
6682
fi
6683
fi
6684
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6685
if test -n "$ac_ct_OTOOL"; then
6686
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6687
$as_echo "$ac_ct_OTOOL" >&6; }
6688
else
6689
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690
$as_echo "no" >&6; }
6691
fi
6692
6693
  if test "x$ac_ct_OTOOL" = x; then
6694
    OTOOL=":"
6695
  else
6696
    case $cross_compiling:$ac_tool_warned in
6697
yes:)
6698
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6699
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6700
ac_tool_warned=yes ;;
6701
esac
6702
    OTOOL=$ac_ct_OTOOL
6703
  fi
6704
else
6705
  OTOOL="$ac_cv_prog_OTOOL"
6706
fi
6707
6708
    if test -n "$ac_tool_prefix"; then
6709
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6710
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712
$as_echo_n "checking for $ac_word... " >&6; }
6713
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6714
  $as_echo_n "(cached) " >&6
6715
else
6716
  if test -n "$OTOOL64"; then
6717
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6718
else
6719
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720
for as_dir in $PATH
6721
do
6722
  IFS=$as_save_IFS
6723
  test -z "$as_dir" && as_dir=.
6724
    for ac_exec_ext in '' $ac_executable_extensions; do
6725
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6727
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728
    break 2
6729
  fi
6730
done
6731
  done
6732
IFS=$as_save_IFS
6733
6734
fi
6735
fi
6736
OTOOL64=$ac_cv_prog_OTOOL64
6737
if test -n "$OTOOL64"; then
6738
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6739
$as_echo "$OTOOL64" >&6; }
6740
else
6741
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742
$as_echo "no" >&6; }
6743
fi
6744
6745
6746
fi
6747
if test -z "$ac_cv_prog_OTOOL64"; then
6748
  ac_ct_OTOOL64=$OTOOL64
6749
  # Extract the first word of "otool64", so it can be a program name with args.
6750
set dummy otool64; ac_word=$2
6751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752
$as_echo_n "checking for $ac_word... " >&6; }
6753
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6754
  $as_echo_n "(cached) " >&6
6755
else
6756
  if test -n "$ac_ct_OTOOL64"; then
6757
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6758
else
6759
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760
for as_dir in $PATH
6761
do
6762
  IFS=$as_save_IFS
6763
  test -z "$as_dir" && as_dir=.
6764
    for ac_exec_ext in '' $ac_executable_extensions; do
6765
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6767
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768
    break 2
6769
  fi
6770
done
6771
  done
6772
IFS=$as_save_IFS
6773
6774
fi
6775
fi
6776
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6777
if test -n "$ac_ct_OTOOL64"; then
6778
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6779
$as_echo "$ac_ct_OTOOL64" >&6; }
6780
else
6781
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782
$as_echo "no" >&6; }
6783
fi
6784
6785
  if test "x$ac_ct_OTOOL64" = x; then
6786
    OTOOL64=":"
6787
  else
6788
    case $cross_compiling:$ac_tool_warned in
6789
yes:)
6790
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6791
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6792
ac_tool_warned=yes ;;
6793
esac
6794
    OTOOL64=$ac_ct_OTOOL64
6795
  fi
6796
else
6797
  OTOOL64="$ac_cv_prog_OTOOL64"
6798
fi
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6827
$as_echo_n "checking for -single_module linker flag... " >&6; }
6828
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6829
  $as_echo_n "(cached) " >&6
6830
else
6831
  lt_cv_apple_cc_single_mod=no
6832
      if test -z "${LT_MULTI_MODULE}"; then
6833
	# By default we will add the -single_module flag. You can override
6834
	# by either setting the environment variable LT_MULTI_MODULE
6835
	# non-empty at configure time, or by adding -multi_module to the
6836
	# link flags.
6837
	rm -rf libconftest.dylib*
6838
	echo "int foo(void){return 1;}" > conftest.c
6839
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6840
-dynamiclib -Wl,-single_module conftest.c" >&5
6841
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6842
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6843
        _lt_result=$?
6844
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6845
	  lt_cv_apple_cc_single_mod=yes
6846
	else
6847
	  cat conftest.err >&5
6848
	fi
6849
	rm -rf libconftest.dylib*
6850
	rm -f conftest.*
6851
      fi
6852
fi
6853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6854
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6855
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6856
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6857
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6858
  $as_echo_n "(cached) " >&6
6859
else
6860
  lt_cv_ld_exported_symbols_list=no
6861
      save_LDFLAGS=$LDFLAGS
6862
      echo "_main" > conftest.sym
6863
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6864
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865
/* end confdefs.h.  */
6866
6867
int
6868
main ()
6869
{
6870
6871
  ;
6872
  return 0;
6873
}
6874
_ACEOF
6875
if ac_fn_c_try_link "$LINENO"; then :
6876
  lt_cv_ld_exported_symbols_list=yes
6877
else
6878
  lt_cv_ld_exported_symbols_list=no
6879
fi
6880
rm -f core conftest.err conftest.$ac_objext \
6881
    conftest$ac_exeext conftest.$ac_ext
6882
	LDFLAGS="$save_LDFLAGS"
6883
6884
fi
6885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6886
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6887
    case $host_os in
6888
    rhapsody* | darwin1.[012])
6889
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6890
    darwin1.*)
6891
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6892
    darwin*) # darwin 5.x on
6893
      # if running on 10.5 or later, the deployment target defaults
6894
      # to the OS version, if on x86, and 10.4, the deployment
6895
      # target defaults to 10.4. Don't you love it?
6896
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6897
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6898
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6899
	10.[012]*)
6900
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6901
	10.*)
6902
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6903
      esac
6904
    ;;
6905
  esac
6906
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6907
      _lt_dar_single_mod='$single_module'
6908
    fi
6909
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6910
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6911
    else
6912
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6913
    fi
6914
    if test "$DSYMUTIL" != ":"; then
6915
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6916
    else
6917
      _lt_dsymutil=
6918
    fi
6919
    ;;
6920
  esac
6921
6922
ac_ext=c
6923
ac_cpp='$CPP $CPPFLAGS'
6924
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6928
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6929
# On Suns, sometimes $CPP names a directory.
6930
if test -n "$CPP" && test -d "$CPP"; then
6931
  CPP=
6932
fi
6933
if test -z "$CPP"; then
6934
  if test "${ac_cv_prog_CPP+set}" = set; then :
6935
  $as_echo_n "(cached) " >&6
6936
else
6937
      # Double quotes because CPP needs to be expanded
6938
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6939
    do
6940
      ac_preproc_ok=false
6941
for ac_c_preproc_warn_flag in '' yes
6942
do
6943
  # Use a header file that comes with gcc, so configuring glibc
6944
  # with a fresh cross-compiler works.
6945
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6946
  # <limits.h> exists even on freestanding compilers.
6947
  # On the NeXT, cc -E runs the code through the compiler's parser,
6948
  # not just through cpp. "Syntax error" is here to catch this case.
6949
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950
/* end confdefs.h.  */
6951
#ifdef __STDC__
6952
# include <limits.h>
6953
#else
6954
# include <assert.h>
6955
#endif
6956
		     Syntax error
6957
_ACEOF
6958
if ac_fn_c_try_cpp "$LINENO"; then :
6959
6960
else
6961
  # Broken: fails on valid input.
6962
continue
6963
fi
6964
rm -f conftest.err conftest.$ac_ext
6965
6966
  # OK, works on sane cases.  Now check whether nonexistent headers
6967
  # can be detected and how.
6968
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969
/* end confdefs.h.  */
6970
#include <ac_nonexistent.h>
6971
_ACEOF
6972
if ac_fn_c_try_cpp "$LINENO"; then :
6973
  # Broken: success on invalid input.
6974
continue
6975
else
6976
  # Passes both tests.
6977
ac_preproc_ok=:
6978
break
6979
fi
6980
rm -f conftest.err conftest.$ac_ext
6981
6982
done
6983
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6984
rm -f conftest.err conftest.$ac_ext
6985
if $ac_preproc_ok; then :
6986
  break
6987
fi
6988
6989
    done
6990
    ac_cv_prog_CPP=$CPP
6991
6992
fi
6993
  CPP=$ac_cv_prog_CPP
6994
else
6995
  ac_cv_prog_CPP=$CPP
6996
fi
6997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6998
$as_echo "$CPP" >&6; }
6999
ac_preproc_ok=false
7000
for ac_c_preproc_warn_flag in '' yes
7001
do
7002
  # Use a header file that comes with gcc, so configuring glibc
7003
  # with a fresh cross-compiler works.
7004
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7005
  # <limits.h> exists even on freestanding compilers.
7006
  # On the NeXT, cc -E runs the code through the compiler's parser,
7007
  # not just through cpp. "Syntax error" is here to catch this case.
7008
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009
/* end confdefs.h.  */
7010
#ifdef __STDC__
7011
# include <limits.h>
7012
#else
7013
# include <assert.h>
7014
#endif
7015
		     Syntax error
7016
_ACEOF
7017
if ac_fn_c_try_cpp "$LINENO"; then :
7018
7019
else
7020
  # Broken: fails on valid input.
7021
continue
7022
fi
7023
rm -f conftest.err conftest.$ac_ext
7024
7025
  # OK, works on sane cases.  Now check whether nonexistent headers
7026
  # can be detected and how.
7027
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028
/* end confdefs.h.  */
7029
#include <ac_nonexistent.h>
7030
_ACEOF
7031
if ac_fn_c_try_cpp "$LINENO"; then :
7032
  # Broken: success on invalid input.
7033
continue
7034
else
7035
  # Passes both tests.
7036
ac_preproc_ok=:
7037
break
7038
fi
7039
rm -f conftest.err conftest.$ac_ext
7040
7041
done
7042
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7043
rm -f conftest.err conftest.$ac_ext
7044
if $ac_preproc_ok; then :
7045
7046
else
7047
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7048
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7049
as_fn_error "C preprocessor \"$CPP\" fails sanity check
7050
See \`config.log' for more details." "$LINENO" 5; }
7051
fi
7052
7053
ac_ext=c
7054
ac_cpp='$CPP $CPPFLAGS'
7055
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7058
7059
7060
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7061
$as_echo_n "checking for ANSI C header files... " >&6; }
7062
if test "${ac_cv_header_stdc+set}" = set; then :
7063
  $as_echo_n "(cached) " >&6
7064
else
7065
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066
/* end confdefs.h.  */
7067
#include <stdlib.h>
7068
#include <stdarg.h>
7069
#include <string.h>
7070
#include <float.h>
7071
7072
int
7073
main ()
7074
{
7075
7076
  ;
7077
  return 0;
7078
}
7079
_ACEOF
7080
if ac_fn_c_try_compile "$LINENO"; then :
7081
  ac_cv_header_stdc=yes
7082
else
7083
  ac_cv_header_stdc=no
7084
fi
7085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086
7087
if test $ac_cv_header_stdc = yes; then
7088
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7089
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090
/* end confdefs.h.  */
7091
#include <string.h>
7092
7093
_ACEOF
7094
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095
  $EGREP "memchr" >/dev/null 2>&1; then :
7096
7097
else
7098
  ac_cv_header_stdc=no
7099
fi
7100
rm -f conftest*
7101
7102
fi
7103
7104
if test $ac_cv_header_stdc = yes; then
7105
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7106
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107
/* end confdefs.h.  */
7108
#include <stdlib.h>
7109
7110
_ACEOF
7111
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7112
  $EGREP "free" >/dev/null 2>&1; then :
7113
7114
else
7115
  ac_cv_header_stdc=no
7116
fi
7117
rm -f conftest*
7118
7119
fi
7120
7121
if test $ac_cv_header_stdc = yes; then
7122
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7123
  if test "$cross_compiling" = yes; then :
7124
  :
7125
else
7126
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127
/* end confdefs.h.  */
7128
#include <ctype.h>
7129
#include <stdlib.h>
7130
#if ((' ' & 0x0FF) == 0x020)
7131
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7132
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7133
#else
7134
# define ISLOWER(c) \
7135
		   (('a' <= (c) && (c) <= 'i') \
7136
		     || ('j' <= (c) && (c) <= 'r') \
7137
		     || ('s' <= (c) && (c) <= 'z'))
7138
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7139
#endif
7140
7141
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7142
int
7143
main ()
7144
{
7145
  int i;
7146
  for (i = 0; i < 256; i++)
7147
    if (XOR (islower (i), ISLOWER (i))
7148
	|| toupper (i) != TOUPPER (i))
7149
      return 2;
7150
  return 0;
7151
}
7152
_ACEOF
7153
if ac_fn_c_try_run "$LINENO"; then :
7154
7155
else
7156
  ac_cv_header_stdc=no
7157
fi
7158
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7159
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7160
fi
7161
7162
fi
7163
fi
7164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7165
$as_echo "$ac_cv_header_stdc" >&6; }
7166
if test $ac_cv_header_stdc = yes; then
7167
7168
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7169
7170
fi
7171
7172
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7173
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7174
		  inttypes.h stdint.h unistd.h
7175
do :
7176
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7177
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7178
"
7179
eval as_val=\$$as_ac_Header
7180
   if test "x$as_val" = x""yes; then :
7181
  cat >>confdefs.h <<_ACEOF
7182
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7183
_ACEOF
7184
7185
fi
7186
7187
done
7188
7189
7190
for ac_header in dlfcn.h
7191
do :
7192
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7193
"
7194
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7195
  cat >>confdefs.h <<_ACEOF
7196
#define HAVE_DLFCN_H 1
7197
_ACEOF
7198
7199
fi
7200
7201
done
7202
7203
7204
7205
# Set options
7206
7207
7208
7209
        enable_dlopen=no
7210
7211
7212
  enable_win32_dll=no
7213
7214
7215
            # Check whether --enable-shared was given.
7216
if test "${enable_shared+set}" = set; then :
7217
  enableval=$enable_shared; p=${PACKAGE-default}
7218
    case $enableval in
7219
    yes) enable_shared=yes ;;
7220
    no) enable_shared=no ;;
7221
    *)
7222
      enable_shared=no
7223
      # Look at the argument we got.  We use all the common list separators.
7224
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7225
      for pkg in $enableval; do
7226
	IFS="$lt_save_ifs"
7227
	if test "X$pkg" = "X$p"; then
7228
	  enable_shared=yes
7229
	fi
7230
      done
7231
      IFS="$lt_save_ifs"
7232
      ;;
7233
    esac
7234
else
7235
  enable_shared=yes
7236
fi
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
  # Check whether --enable-static was given.
7247
if test "${enable_static+set}" = set; then :
7248
  enableval=$enable_static; p=${PACKAGE-default}
7249
    case $enableval in
7250
    yes) enable_static=yes ;;
7251
    no) enable_static=no ;;
7252
    *)
7253
     enable_static=no
7254
      # Look at the argument we got.  We use all the common list separators.
7255
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7256
      for pkg in $enableval; do
7257
	IFS="$lt_save_ifs"
7258
	if test "X$pkg" = "X$p"; then
7259
	  enable_static=yes
7260
	fi
7261
      done
7262
      IFS="$lt_save_ifs"
7263
      ;;
7264
    esac
7265
else
7266
  enable_static=yes
7267
fi
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
# Check whether --with-pic was given.
7279
if test "${with_pic+set}" = set; then :
7280
  withval=$with_pic; pic_mode="$withval"
7281
else
7282
  pic_mode=default
7283
fi
7284
7285
7286
test -z "$pic_mode" && pic_mode=default
7287
7288
7289
7290
7291
7292
7293
7294
  # Check whether --enable-fast-install was given.
7295
if test "${enable_fast_install+set}" = set; then :
7296
  enableval=$enable_fast_install; p=${PACKAGE-default}
7297
    case $enableval in
7298
    yes) enable_fast_install=yes ;;
7299
    no) enable_fast_install=no ;;
7300
    *)
7301
      enable_fast_install=no
7302
      # Look at the argument we got.  We use all the common list separators.
7303
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7304
      for pkg in $enableval; do
7305
	IFS="$lt_save_ifs"
7306
	if test "X$pkg" = "X$p"; then
7307
	  enable_fast_install=yes
7308
	fi
7309
      done
7310
      IFS="$lt_save_ifs"
7311
      ;;
7312
    esac
7313
else
7314
  enable_fast_install=yes
7315
fi
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
# This can be used to rebuild libtool when needed
7328
LIBTOOL_DEPS="$ltmain"
7329
7330
# Always use our own libtool.
7331
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
test -z "$LN_S" && LN_S="ln -s"
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
if test -n "${ZSH_VERSION+set}" ; then
7373
   setopt NO_GLOB_SUBST
7374
fi
7375
7376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7377
$as_echo_n "checking for objdir... " >&6; }
7378
if test "${lt_cv_objdir+set}" = set; then :
7379
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7380
else
7381
  rm -f .libs 2>/dev/null
7382
mkdir .libs 2>/dev/null
7383
if test -d .libs; then
7384
  lt_cv_objdir=.libs
7385
else
7386
  # MS-DOS does not allow filenames that begin with a dot.
7387
  lt_cv_objdir=_libs
7388
fi
7389
rmdir .libs 2>/dev/null
7390
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7392
$as_echo "$lt_cv_objdir" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7393
objdir=$lt_cv_objdir
7394
7395
7396
7397
7398
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7399
cat >>confdefs.h <<_ACEOF
7400
#define LT_OBJDIR "$lt_cv_objdir/"
7401
_ACEOF
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7419
case $host_os in
7420
aix3*)
7421
  # AIX sometimes has problems with the GCC collect2 program.  For some
7422
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7423
  # vanish in a puff of smoke.
7424
  if test "X${COLLECT_NAMES+set}" != Xset; then
7425
    COLLECT_NAMES=
7426
    export COLLECT_NAMES
7427
  fi
7428
  ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
7429
esac
7430
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7431
# Sed substitution that helps us do robust quoting.  It backslashifies
7432
# metacharacters that are still active within double-quoted strings.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7433
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7434
7435
# Same as above, but do not quote variable references.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7436
double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7437
7438
# Sed substitution to delay expansion of an escaped shell variable in a
7439
# double_quote_subst'ed string.
7440
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7441
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7442
# Sed substitution to delay expansion of an escaped single quote.
7443
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7444
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7445
# Sed substitution to avoid accidental globbing in evaled expressions
7446
no_glob_subst='s/\*/\\\*/g'
7447
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7448
# Global variables:
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7449
ofile=libtool
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7450
can_build_shared=yes
7451
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7452
# All known linkers require a `.a' archive for static linking (except MSVC,
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7453
# which needs '.lib').
7454
libext=a
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7455
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7456
with_gnu_ld="$lt_cv_prog_gnu_ld"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7457
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7458
old_CC="$CC"
7459
old_CFLAGS="$CFLAGS"
7460
7461
# Set sane defaults for various variables
7462
test -z "$CC" && CC=cc
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7463
test -z "$LTCC" && LTCC=$CC
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7464
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7465
test -z "$LD" && LD=ld
7466
test -z "$ac_objext" && ac_objext=o
7467
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7468
for cc_temp in $compiler""; do
7469
  case $cc_temp in
7470
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7471
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7472
    \-*) ;;
7473
    *) break;;
7474
  esac
7475
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7476
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7477
7478
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7479
# Only perform the check for file, if the check method requires it
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7480
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7481
case $deplibs_check_method in
7482
file_magic*)
7483
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7484
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7485
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7486
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7487
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7488
else
7489
  case $MAGIC_CMD in
7490
[\\/*] |  ?:[\\/]*)
7491
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7492
  ;;
7493
*)
7494
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7495
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7496
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7497
  for ac_dir in $ac_dummy; do
7498
    IFS="$lt_save_ifs"
7499
    test -z "$ac_dir" && ac_dir=.
7500
    if test -f $ac_dir/${ac_tool_prefix}file; then
7501
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7502
      if test -n "$file_magic_test_file"; then
7503
	case $deplibs_check_method in
7504
	"file_magic "*)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7505
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7506
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7507
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7508
	    $EGREP "$file_magic_regex" > /dev/null; then
7509
	    :
7510
	  else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7511
	    cat <<_LT_EOF 1>&2
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7512
7513
*** Warning: the command libtool uses to detect shared libraries,
7514
*** $file_magic_cmd, produces output that libtool cannot recognize.
7515
*** The result is that libtool may fail to recognize shared libraries
7516
*** as such.  This will affect the creation of libtool libraries that
7517
*** depend on shared libraries, but programs linked with such libtool
7518
*** libraries will work regardless of this problem.  Nevertheless, you
7519
*** may want to report the problem to your system manager and/or to
7520
*** bug-libtool@gnu.org
7521
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7522
_LT_EOF
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7523
	  fi ;;
7524
	esac
7525
      fi
7526
      break
7527
    fi
7528
  done
7529
  IFS="$lt_save_ifs"
7530
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7531
  ;;
7532
esac
7533
fi
7534
7535
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7536
if test -n "$MAGIC_CMD"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7537
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7538
$as_echo "$MAGIC_CMD" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7539
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7540
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541
$as_echo "no" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7542
fi
7543
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7544
7545
7546
7547
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7548
if test -z "$lt_cv_path_MAGIC_CMD"; then
7549
  if test -n "$ac_tool_prefix"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7550
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7551
$as_echo_n "checking for file... " >&6; }
7552
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7553
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7554
else
7555
  case $MAGIC_CMD in
7556
[\\/*] |  ?:[\\/]*)
7557
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7558
  ;;
7559
*)
7560
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7561
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7562
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7563
  for ac_dir in $ac_dummy; do
7564
    IFS="$lt_save_ifs"
7565
    test -z "$ac_dir" && ac_dir=.
7566
    if test -f $ac_dir/file; then
7567
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7568
      if test -n "$file_magic_test_file"; then
7569
	case $deplibs_check_method in
7570
	"file_magic "*)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7571
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7572
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7573
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7574
	    $EGREP "$file_magic_regex" > /dev/null; then
7575
	    :
7576
	  else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7577
	    cat <<_LT_EOF 1>&2
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7578
7579
*** Warning: the command libtool uses to detect shared libraries,
7580
*** $file_magic_cmd, produces output that libtool cannot recognize.
7581
*** The result is that libtool may fail to recognize shared libraries
7582
*** as such.  This will affect the creation of libtool libraries that
7583
*** depend on shared libraries, but programs linked with such libtool
7584
*** libraries will work regardless of this problem.  Nevertheless, you
7585
*** may want to report the problem to your system manager and/or to
7586
*** bug-libtool@gnu.org
7587
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7588
_LT_EOF
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7589
	  fi ;;
7590
	esac
7591
      fi
7592
      break
7593
    fi
7594
  done
7595
  IFS="$lt_save_ifs"
7596
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7597
  ;;
7598
esac
7599
fi
7600
7601
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7602
if test -n "$MAGIC_CMD"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7603
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7604
$as_echo "$MAGIC_CMD" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7605
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7606
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607
$as_echo "no" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7608
fi
7609
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7610
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7611
  else
7612
    MAGIC_CMD=:
7613
  fi
7614
fi
7615
7616
  fi
7617
  ;;
7618
esac
7619
7620
# Use C for the default configuration in the libtool script
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7621
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7622
lt_save_CC="$CC"
7623
ac_ext=c
7624
ac_cpp='$CPP $CPPFLAGS'
7625
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7626
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7627
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7628
7629
7630
# Source file extension for C test sources.
7631
ac_ext=c
7632
7633
# Object file extension for compiled C test sources.
7634
objext=o
7635
objext=$objext
7636
7637
# Code to be used in simple compile tests
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7638
lt_simple_compile_test_code="int some_variable = 0;"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7639
7640
# Code to be used in simple link tests
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7641
lt_simple_link_test_code='int main(){return(0);}'
7642
7643
7644
7645
7646
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7647
7648
7649
# If no C compiler was specified, use CC.
7650
LTCC=${LTCC-"$CC"}
7651
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7652
# If no C compiler flags were specified, use CFLAGS.
7653
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7654
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7655
# Allow CC to be a program name with arguments.
7656
compiler=$CC
7657
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7658
# Save the default compiler, since it gets overwritten when the other
7659
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7660
compiler_DEFAULT=$CC
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7661
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7662
# save warnings/boilerplate of simple test code
7663
ac_outfile=conftest.$ac_objext
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7664
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7665
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7666
_lt_compiler_boilerplate=`cat conftest.err`
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7667
$RM conftest*
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7668
7669
ac_outfile=conftest.$ac_objext
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7670
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7671
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7672
_lt_linker_boilerplate=`cat conftest.err`
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7673
$RM -r conftest*
7674
7675
7676
if test -n "$compiler"; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7677
7678
lt_prog_compiler_no_builtin_flag=
7679
7680
if test "$GCC" = yes; then
7681
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7682
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7683
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7684
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7685
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7686
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7687
else
7688
  lt_cv_prog_compiler_rtti_exceptions=no
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7689
   ac_outfile=conftest.$ac_objext
7690
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7691
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7692
   # Insert the option either (1) after the last *FLAGS variable, or
7693
   # (2) before a word containing "conftest.", or (3) at the end.
7694
   # Note that $ac_compile itself does not contain backslashes and begins
7695
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7696
   # The option is referenced via a variable to avoid confusing sed.
7697
   lt_compile=`echo "$ac_compile" | $SED \
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7698
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7699
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7700
   -e 's:$: $lt_compiler_flag:'`
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7701
   (eval echo "\"\$as_me:7691: $lt_compile\"" >&5)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7702
   (eval "$lt_compile" 2>conftest.err)
7703
   ac_status=$?
7704
   cat conftest.err >&5
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7705
   echo "$as_me:7695: \$? = $ac_status" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7706
   if (exit $ac_status) && test -s "$ac_outfile"; then
7707
     # The compiler can only warn and ignore the option if not recognized
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7708
     # So say no if there are warnings other than the usual output.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7709
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7710
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7711
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7712
       lt_cv_prog_compiler_rtti_exceptions=yes
7713
     fi
7714
   fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7715
   $RM conftest*
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7716
7717
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7718
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7719
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7720
7721
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7722
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7723
else
7724
    :
7725
fi
7726
7727
fi
7728
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7729
7730
7731
7732
7733
7734
  lt_prog_compiler_wl=
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7735
lt_prog_compiler_pic=
7736
lt_prog_compiler_static=
7737
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7739
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7740
7741
  if test "$GCC" = yes; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7742
    lt_prog_compiler_wl='-Wl,'
7743
    lt_prog_compiler_static='-static'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7744
7745
    case $host_os in
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7746
      aix*)
7747
      # All AIX code is PIC.
7748
      if test "$host_cpu" = ia64; then
7749
	# AIX 5 now supports IA64 processor
7750
	lt_prog_compiler_static='-Bstatic'
7751
      fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7752
      ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7753
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7754
    amigaos*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7755
      case $host_cpu in
7756
      powerpc)
7757
            # see comment about AmigaOS4 .so support
7758
            lt_prog_compiler_pic='-fPIC'
7759
        ;;
7760
      m68k)
7761
            # FIXME: we need at least 68020 code to build shared libraries, but
7762
            # adding the `-m68020' flag to GCC prevents building anything better,
7763
            # like `-m68040'.
7764
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7765
        ;;
7766
      esac
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7767
      ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7768
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7769
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7770
      # PIC is the default for these OSes.
7771
      ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7772
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7773
    mingw* | cygwin* | pw32* | os2* | cegcc*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7774
      # This hack is so that the source file can tell whether it is being
7775
      # built for inclusion in a dll (and should export symbols for example).
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7776
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7777
      # (--disable-auto-import) libraries
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7778
      lt_prog_compiler_pic='-DDLL_EXPORT'
7779
      ;;
7780
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7781
    darwin* | rhapsody*)
7782
      # PIC is the default on this platform
7783
      # Common symbols not allowed in MH_DYLIB files
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7784
      lt_prog_compiler_pic='-fno-common'
7785
      ;;
7786
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7787
    hpux*)
7788
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7789
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7790
      # sets the default TLS model and affects inlining.
7791
      case $host_cpu in
7792
      hppa*64*)
7793
	# +Z the default
7794
	;;
7795
      *)
7796
	lt_prog_compiler_pic='-fPIC'
7797
	;;
7798
      esac
7799
      ;;
7800
7801
    interix[3-9]*)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7802
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7803
      # Instead, we relocate shared libraries at runtime.
7804
      ;;
7805
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7806
    msdosdjgpp*)
7807
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7808
      # on systems that don't support them.
7809
      lt_prog_compiler_can_build_shared=no
7810
      enable_shared=no
7811
      ;;
7812
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7813
    *nto* | *qnx*)
7814
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7815
      # it will coredump.
7816
      lt_prog_compiler_pic='-fPIC -shared'
7817
      ;;
7818
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7819
    sysv4*MP*)
7820
      if test -d /usr/nec; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7821
	lt_prog_compiler_pic=-Kconform_pic
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7822
      fi
7823
      ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7824
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7825
    *)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7826
      lt_prog_compiler_pic='-fPIC'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7827
      ;;
7828
    esac
7829
  else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7830
    # PORTME Check for flag to pass linker flags through the system compiler.
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7831
    case $host_os in
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7832
    aix*)
7833
      lt_prog_compiler_wl='-Wl,'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7834
      if test "$host_cpu" = ia64; then
7835
	# AIX 5 now supports IA64 processor
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7836
	lt_prog_compiler_static='-Bstatic'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7837
      else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7838
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7839
      fi
7840
      ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7841
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7842
    mingw* | cygwin* | pw32* | os2* | cegcc*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7843
      # This hack is so that the source file can tell whether it is being
7844
      # built for inclusion in a dll (and should export symbols for example).
7845
      lt_prog_compiler_pic='-DDLL_EXPORT'
7846
      ;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7847
7848
    hpux9* | hpux10* | hpux11*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7849
      lt_prog_compiler_wl='-Wl,'
7850
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7851
      # not for PA HP-UX.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7852
      case $host_cpu in
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7853
      hppa*64*|ia64*)
7854
	# +Z the default
7855
	;;
7856
      *)
7857
	lt_prog_compiler_pic='+Z'
7858
	;;
7859
      esac
7860
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7861
      lt_prog_compiler_static='${wl}-a ${wl}archive'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7862
      ;;
7863
7864
    irix5* | irix6* | nonstopux*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7865
      lt_prog_compiler_wl='-Wl,'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7866
      # PIC (with -KPIC) is the default.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7867
      lt_prog_compiler_static='-non_shared'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7868
      ;;
7869
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7870
    linux* | k*bsd*-gnu)
7871
      case $cc_basename in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7872
      # old Intel for x86_64 which still supported -KPIC.
7873
      ecc*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7874
	lt_prog_compiler_wl='-Wl,'
7875
	lt_prog_compiler_pic='-KPIC'
7876
	lt_prog_compiler_static='-static'
7877
        ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7878
      # icc used to be incompatible with GCC.
7879
      # ICC 10 doesn't accept -KPIC any more.
7880
      icc* | ifort*)
7881
	lt_prog_compiler_wl='-Wl,'
7882
	lt_prog_compiler_pic='-fPIC'
7883
	lt_prog_compiler_static='-static'
7884
        ;;
7885
      # Lahey Fortran 8.1.
7886
      lf95*)
7887
	lt_prog_compiler_wl='-Wl,'
7888
	lt_prog_compiler_pic='--shared'
7889
	lt_prog_compiler_static='--static'
7890
	;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7891
      pgcc* | pgf77* | pgf90* | pgf95*)
7892
        # Portland Group compilers (*not* the Pentium gcc compiler,
7893
	# which looks to be a dead project)
7894
	lt_prog_compiler_wl='-Wl,'
7895
	lt_prog_compiler_pic='-fpic'
7896
	lt_prog_compiler_static='-Bstatic'
7897
        ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7898
      ccc*)
7899
        lt_prog_compiler_wl='-Wl,'
7900
        # All Alpha code is PIC.
7901
        lt_prog_compiler_static='-non_shared'
7902
        ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7903
      xl*)
7904
	# IBM XL C 8.0/Fortran 10.1 on PPC
7905
	lt_prog_compiler_wl='-Wl,'
7906
	lt_prog_compiler_pic='-qpic'
7907
	lt_prog_compiler_static='-qstaticlink'
7908
	;;
7909
      *)
7910
	case `$CC -V 2>&1 | sed 5q` in
7911
	*Sun\ C*)
7912
	  # Sun C 5.9
7913
	  lt_prog_compiler_pic='-KPIC'
7914
	  lt_prog_compiler_static='-Bstatic'
7915
	  lt_prog_compiler_wl='-Wl,'
7916
	  ;;
7917
	*Sun\ F*)
7918
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7919
	  lt_prog_compiler_pic='-KPIC'
7920
	  lt_prog_compiler_static='-Bstatic'
7921
	  lt_prog_compiler_wl=''
7922
	  ;;
7923
	esac
7924
	;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7925
      esac
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7926
      ;;
7927
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7928
    newsos6)
7929
      lt_prog_compiler_pic='-KPIC'
7930
      lt_prog_compiler_static='-Bstatic'
7931
      ;;
7932
7933
    *nto* | *qnx*)
7934
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7935
      # it will coredump.
7936
      lt_prog_compiler_pic='-fPIC -shared'
7937
      ;;
7938
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7939
    osf3* | osf4* | osf5*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7940
      lt_prog_compiler_wl='-Wl,'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7941
      # All OSF/1 code is PIC.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7942
      lt_prog_compiler_static='-non_shared'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7943
      ;;
7944
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
7945
    rdos*)
7946
      lt_prog_compiler_static='-non_shared'
7947
      ;;
7948
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7949
    solaris*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7950
      lt_prog_compiler_pic='-KPIC'
7951
      lt_prog_compiler_static='-Bstatic'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7952
      case $cc_basename in
7953
      f77* | f90* | f95*)
7954
	lt_prog_compiler_wl='-Qoption ld ';;
7955
      *)
7956
	lt_prog_compiler_wl='-Wl,';;
7957
      esac
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7958
      ;;
7959
7960
    sunos4*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7961
      lt_prog_compiler_wl='-Qoption ld '
7962
      lt_prog_compiler_pic='-PIC'
7963
      lt_prog_compiler_static='-Bstatic'
7964
      ;;
7965
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7966
    sysv4 | sysv4.2uw2* | sysv4.3*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7967
      lt_prog_compiler_wl='-Wl,'
7968
      lt_prog_compiler_pic='-KPIC'
7969
      lt_prog_compiler_static='-Bstatic'
7970
      ;;
7971
7972
    sysv4*MP*)
7973
      if test -d /usr/nec ;then
7974
	lt_prog_compiler_pic='-Kconform_pic'
7975
	lt_prog_compiler_static='-Bstatic'
7976
      fi
7977
      ;;
7978
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
7979
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7980
      lt_prog_compiler_wl='-Wl,'
7981
      lt_prog_compiler_pic='-KPIC'
7982
      lt_prog_compiler_static='-Bstatic'
7983
      ;;
7984
7985
    unicos*)
7986
      lt_prog_compiler_wl='-Wl,'
7987
      lt_prog_compiler_can_build_shared=no
7988
      ;;
7989
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7990
    uts4*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7991
      lt_prog_compiler_pic='-pic'
7992
      lt_prog_compiler_static='-Bstatic'
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7993
      ;;
7994
7995
    *)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
7996
      lt_prog_compiler_can_build_shared=no
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
7997
      ;;
7998
    esac
7999
  fi
8000
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8001
case $host_os in
8002
  # For platforms which do not support PIC, -DPIC is meaningless:
8003
  *djgpp*)
8004
    lt_prog_compiler_pic=
8005
    ;;
8006
  *)
8007
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8008
    ;;
8009
esac
8010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8011
$as_echo "$lt_prog_compiler_pic" >&6; }
8012
8013
8014
8015
8016
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8017
8018
#
8019
# Check to make sure the PIC flag actually works.
8020
#
8021
if test -n "$lt_prog_compiler_pic"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8022
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8023
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8024
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8025
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8026
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8027
  lt_cv_prog_compiler_pic_works=no
8028
   ac_outfile=conftest.$ac_objext
8029
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8030
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8031
   # Insert the option either (1) after the last *FLAGS variable, or
8032
   # (2) before a word containing "conftest.", or (3) at the end.
8033
   # Note that $ac_compile itself does not contain backslashes and begins
8034
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8035
   # The option is referenced via a variable to avoid confusing sed.
8036
   lt_compile=`echo "$ac_compile" | $SED \
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8037
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8038
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8039
   -e 's:$: $lt_compiler_flag:'`
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8040
   (eval echo "\"\$as_me:8030: $lt_compile\"" >&5)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8041
   (eval "$lt_compile" 2>conftest.err)
8042
   ac_status=$?
8043
   cat conftest.err >&5
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8044
   echo "$as_me:8034: \$? = $ac_status" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8045
   if (exit $ac_status) && test -s "$ac_outfile"; then
8046
     # The compiler can only warn and ignore the option if not recognized
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8047
     # So say no if there are warnings other than the usual output.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8048
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8049
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8050
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8051
       lt_cv_prog_compiler_pic_works=yes
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8052
     fi
8053
   fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8054
   $RM conftest*
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8055
8056
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8058
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8059
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8060
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8061
    case $lt_prog_compiler_pic in
8062
     "" | " "*) ;;
8063
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8064
     esac
8065
else
8066
    lt_prog_compiler_pic=
8067
     lt_prog_compiler_can_build_shared=no
8068
fi
8069
8070
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8071
8072
8073
8074
8075
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8076
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8077
#
8078
# Check to make sure the static flag actually works.
8079
#
8080
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8082
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8083
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8084
  $as_echo_n "(cached) " >&6
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8085
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8086
  lt_cv_prog_compiler_static_works=no
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8087
   save_LDFLAGS="$LDFLAGS"
8088
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8089
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8090
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8091
     # The linker can only warn and ignore the option if not recognized
8092
     # So say no if there are warnings
8093
     if test -s conftest.err; then
8094
       # Append any errors to the config.log.
8095
       cat conftest.err 1>&5
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8096
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8097
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8098
       if diff conftest.exp conftest.er2 >/dev/null; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8099
         lt_cv_prog_compiler_static_works=yes
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8100
       fi
8101
     else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8102
       lt_cv_prog_compiler_static_works=yes
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8103
     fi
8104
   fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8105
   $RM -r conftest*
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8106
   LDFLAGS="$save_LDFLAGS"
8107
8108
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8110
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8111
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8112
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8113
    :
8114
else
8115
    lt_prog_compiler_static=
8116
fi
8117
8118
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8119
8120
8121
8122
8123
8124
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8125
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8126
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8127
  $as_echo_n "(cached) " >&6
8128
else
8129
  lt_cv_prog_compiler_c_o=no
8130
   $RM -r conftest 2>/dev/null
8131
   mkdir conftest
8132
   cd conftest
8133
   mkdir out
8134
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8135
8136
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8137
   # Insert the option either (1) after the last *FLAGS variable, or
8138
   # (2) before a word containing "conftest.", or (3) at the end.
8139
   # Note that $ac_compile itself does not contain backslashes and begins
8140
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8141
   lt_compile=`echo "$ac_compile" | $SED \
8142
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8143
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8144
   -e 's:$: $lt_compiler_flag:'`
8145
   (eval echo "\"\$as_me:8135: $lt_compile\"" >&5)
8146
   (eval "$lt_compile" 2>out/conftest.err)
8147
   ac_status=$?
8148
   cat out/conftest.err >&5
8149
   echo "$as_me:8139: \$? = $ac_status" >&5
8150
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8151
   then
8152
     # The compiler can only warn and ignore the option if not recognized
8153
     # So say no if there are warnings
8154
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8155
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8156
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8157
       lt_cv_prog_compiler_c_o=yes
8158
     fi
8159
   fi
8160
   chmod u+w . 2>&5
8161
   $RM conftest*
8162
   # SGI C++ compiler will create directory out/ii_files/ for
8163
   # template instantiation
8164
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8165
   $RM out/* && rmdir out
8166
   cd ..
8167
   $RM -r conftest
8168
   $RM conftest*
8169
8170
fi
8171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8172
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8173
8174
8175
8176
8177
8178
8179
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8180
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8181
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8182
  $as_echo_n "(cached) " >&6
8183
else
8184
  lt_cv_prog_compiler_c_o=no
8185
   $RM -r conftest 2>/dev/null
8186
   mkdir conftest
8187
   cd conftest
8188
   mkdir out
8189
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8190
8191
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8192
   # Insert the option either (1) after the last *FLAGS variable, or
8193
   # (2) before a word containing "conftest.", or (3) at the end.
8194
   # Note that $ac_compile itself does not contain backslashes and begins
8195
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8196
   lt_compile=`echo "$ac_compile" | $SED \
8197
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8198
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8199
   -e 's:$: $lt_compiler_flag:'`
8200
   (eval echo "\"\$as_me:8190: $lt_compile\"" >&5)
8201
   (eval "$lt_compile" 2>out/conftest.err)
8202
   ac_status=$?
8203
   cat out/conftest.err >&5
8204
   echo "$as_me:8194: \$? = $ac_status" >&5
8205
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8206
   then
8207
     # The compiler can only warn and ignore the option if not recognized
8208
     # So say no if there are warnings
8209
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8210
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8211
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8212
       lt_cv_prog_compiler_c_o=yes
8213
     fi
8214
   fi
8215
   chmod u+w . 2>&5
8216
   $RM conftest*
8217
   # SGI C++ compiler will create directory out/ii_files/ for
8218
   # template instantiation
8219
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8220
   $RM out/* && rmdir out
8221
   cd ..
8222
   $RM -r conftest
8223
   $RM conftest*
8224
8225
fi
8226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8227
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8228
8229
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8230
8231
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
8232
hard_links="nottested"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8233
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
8234
  # do not overwrite the value of need_locks provided by the user
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8235
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8236
$as_echo_n "checking if we can lock with hard links... " >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
8237
  hard_links=yes
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8238
  $RM conftest*
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
8239
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8240
  touch conftest.a
8241
  ln conftest.a conftest.b 2>&5 || hard_links=no
8242
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8243
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8244
$as_echo "$hard_links" >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
8245
  if test "$hard_links" = no; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8246
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8247
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
8248
    need_locks=warn
8249
  fi
8250
else
8251
  need_locks=no
8252
fi
8253
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8254
8255
8256
8257
8258
8259
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8260
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8261
8262
  runpath_var=
8263
  allow_undefined_flag=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8264
  always_export_symbols=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8265
  archive_cmds=
8266
  archive_expsym_cmds=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8267
  compiler_needs_object=no
8268
  enable_shared_with_static_runtimes=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8269
  export_dynamic_flag_spec=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8270
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8271
  hardcode_automatic=no
8272
  hardcode_direct=no
8273
  hardcode_direct_absolute=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8274
  hardcode_libdir_flag_spec=
8275
  hardcode_libdir_flag_spec_ld=
8276
  hardcode_libdir_separator=
8277
  hardcode_minus_L=no
8278
  hardcode_shlibpath_var=unsupported
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8279
  inherit_rpath=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8280
  link_all_deplibs=unknown
8281
  module_cmds=
8282
  module_expsym_cmds=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8283
  old_archive_from_new_cmds=
8284
  old_archive_from_expsyms_cmds=
8285
  thread_safe_flag_spec=
8286
  whole_archive_flag_spec=
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8287
  # include_expsyms should be a list of space-separated symbols to be *always*
8288
  # included in the symbol list
8289
  include_expsyms=
8290
  # exclude_expsyms can be an extended regexp of symbols to exclude
8291
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8292
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8293
  # as well as any symbol that contains `d'.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8294
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8295
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8296
  # platforms (ab)use it in PIC code, but their linkers get confused if
8297
  # the symbol is explicitly referenced.  Since portable code cannot
8298
  # rely on this symbol name, it's probably fine to never include it in
8299
  # preloaded symbol tables.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8300
  # Exclude shared library initialization/finalization symbols.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8301
  extract_expsyms_cmds=
8302
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
8303
  case $host_os in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8304
  cygwin* | mingw* | pw32* | cegcc*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8305
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8306
    # When not using gcc, we currently assume that we are using
8307
    # Microsoft Visual C++.
8308
    if test "$GCC" != yes; then
8309
      with_gnu_ld=no
8310
    fi
8311
    ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8312
  interix*)
8313
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8314
    with_gnu_ld=yes
8315
    ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8316
  openbsd*)
8317
    with_gnu_ld=no
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
8318
    ;;
8319
  esac
8320
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8321
  ld_shlibs=yes
8322
  if test "$with_gnu_ld" = yes; then
8323
    # If archive_cmds runs LD, not CC, wlarc should be empty
8324
    wlarc='${wl}'
8325
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8326
    # Set some defaults for GNU ld with shared library support. These
8327
    # are reset later if shared libraries are not supported. Putting them
8328
    # here allows them to be overridden if necessary.
8329
    runpath_var=LD_RUN_PATH
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8330
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8331
    export_dynamic_flag_spec='${wl}--export-dynamic'
8332
    # ancient GNU ld didn't support --whole-archive et. al.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8333
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8334
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8335
    else
8336
      whole_archive_flag_spec=
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8337
    fi
8338
    supports_anon_versioning=no
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8339
    case `$LD -v 2>&1` in
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8340
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8341
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8342
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8343
      *\ 2.11.*) ;; # other 2.11 versions
8344
      *) supports_anon_versioning=yes ;;
8345
    esac
8346
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8347
    # See if GNU ld supports shared libraries.
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
8348
    case $host_os in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8349
    aix[3-9]*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8350
      # On AIX/PPC, the GNU linker is very broken
8351
      if test "$host_cpu" != ia64; then
8352
	ld_shlibs=no
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8353
	cat <<_LT_EOF 1>&2
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8354
8355
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8356
*** to be unable to reliably create shared libraries on AIX.
8357
*** Therefore, libtool is disabling shared libraries support.  If you
8358
*** really care for shared libraries, you may want to modify your PATH
8359
*** so that a non-GNU linker is found, and then restart.
8360
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8361
_LT_EOF
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8362
      fi
8363
      ;;
8364
8365
    amigaos*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8366
      case $host_cpu in
8367
      powerpc)
8368
            # see comment about AmigaOS4 .so support
8369
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370
            archive_expsym_cmds=''
8371
        ;;
8372
      m68k)
8373
            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)'
8374
            hardcode_libdir_flag_spec='-L$libdir'
8375
            hardcode_minus_L=yes
8376
        ;;
8377
      esac
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8378
      ;;
8379
8380
    beos*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8381
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8382
	allow_undefined_flag=unsupported
8383
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8384
	# support --undefined.  This deserves some investigation.  FIXME
8385
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8386
      else
8387
	ld_shlibs=no
8388
      fi
8389
      ;;
8390
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8391
    cygwin* | mingw* | pw32* | cegcc*)
8392
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8393
      # as there is no search path for DLLs.
8394
      hardcode_libdir_flag_spec='-L$libdir'
8395
      allow_undefined_flag=unsupported
8396
      always_export_symbols=no
8397
      enable_shared_with_static_runtimes=yes
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8398
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8399
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8400
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8401
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8402
	# If the export-symbols file already is a .def file (1st line
8403
	# is EXPORTS), use it as is; otherwise, prepend...
8404
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8405
	  cp $export_symbols $output_objdir/$soname.def;
8406
	else
8407
	  echo EXPORTS > $output_objdir/$soname.def;
8408
	  cat $export_symbols >> $output_objdir/$soname.def;
8409
	fi~
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8410
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8411
      else
8412
	ld_shlibs=no
8413
      fi
8414
      ;;
8415
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8416
    interix[3-9]*)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8417
      hardcode_direct=no
8418
      hardcode_shlibpath_var=no
8419
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8420
      export_dynamic_flag_spec='${wl}-E'
8421
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8422
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8423
      # default) and relocated if they conflict, which is a slow very memory
8424
      # consuming and fragmenting process.  To avoid this, we pick a random,
8425
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8426
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8427
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8428
      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'
8429
      ;;
8430
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8431
    gnu* | linux* | tpf* | k*bsd*-gnu)
8432
      tmp_diet=no
8433
      if test "$host_os" = linux-dietlibc; then
8434
	case $cc_basename in
8435
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8436
	esac
8437
      fi
8438
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8439
	 && test "$tmp_diet" = no
8440
      then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8441
	tmp_addflag=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8442
	tmp_sharedflag='-shared'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8443
	case $cc_basename,$host_cpu in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8444
        pgcc*)				# Portland Group C compiler
8445
	  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'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8446
	  tmp_addflag=' $pic_flag'
8447
	  ;;
8448
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8449
	  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'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8450
	  tmp_addflag=' $pic_flag -Mnomain' ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8451
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8452
	  tmp_addflag=' -i_dynamic' ;;
8453
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8454
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8455
	ifc* | ifort*)			# Intel Fortran compiler
8456
	  tmp_addflag=' -nofor_main' ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8457
	lf95*)				# Lahey Fortran 8.1
8458
	  whole_archive_flag_spec=
8459
	  tmp_sharedflag='--shared' ;;
8460
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8461
	  tmp_sharedflag='-qmkshrobj'
8462
	  tmp_addflag= ;;
8463
	esac
8464
	case `$CC -V 2>&1 | sed 5q` in
8465
	*Sun\ C*)			# Sun C 5.9
8466
	  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'
8467
	  compiler_needs_object=yes
8468
	  tmp_sharedflag='-G' ;;
8469
	*Sun\ F*)			# Sun Fortran 8.3
8470
	  tmp_sharedflag='-G' ;;
8471
	esac
8472
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8473
8474
        if test "x$supports_anon_versioning" = xyes; then
8475
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8476
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8477
	    echo "local: *; };" >> $output_objdir/$libname.ver~
8478
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8479
        fi
8480
8481
	case $cc_basename in
8482
	xlf*)
8483
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8484
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8485
	  hardcode_libdir_flag_spec=
8486
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8487
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8488
	  if test "x$supports_anon_versioning" = xyes; then
8489
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8490
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8491
	      echo "local: *; };" >> $output_objdir/$libname.ver~
8492
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8493
	  fi
8494
	  ;;
8495
	esac
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8496
      else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8497
        ld_shlibs=no
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8498
      fi
8499
      ;;
8500
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8501
    netbsd*)
8502
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8503
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8504
	wlarc=
8505
      else
8506
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8507
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8508
      fi
8509
      ;;
8510
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8511
    solaris*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8512
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8513
	ld_shlibs=no
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8514
	cat <<_LT_EOF 1>&2
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8515
8516
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8517
*** create shared libraries on Solaris systems.  Therefore, libtool
8518
*** is disabling shared libraries support.  We urge you to upgrade GNU
8519
*** binutils to release 2.9.1 or newer.  Another option is to modify
8520
*** your PATH or compiler configuration so that the native linker is
8521
*** used, and then restart.
8522
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8523
_LT_EOF
8524
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8525
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8526
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8527
      else
8528
	ld_shlibs=no
8529
      fi
8530
      ;;
8531
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8532
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8533
      case `$LD -v 2>&1` in
8534
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8535
	ld_shlibs=no
8536
	cat <<_LT_EOF 1>&2
8537
8538
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8539
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8540
*** is disabling shared libraries support.  We urge you to upgrade GNU
8541
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8542
*** your PATH or compiler configuration so that the native linker is
8543
*** used, and then restart.
8544
8545
_LT_EOF
8546
	;;
8547
	*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8548
	  # For security reasons, it is highly recommended that you always
8549
	  # use absolute paths for naming shared libraries, and exclude the
8550
	  # DT_RUNPATH tag from executables and libraries.  But doing so
8551
	  # requires that you compile everything twice, which is a pain.
8552
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8553
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8554
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8555
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8556
	  else
8557
	    ld_shlibs=no
8558
	  fi
8559
	;;
8560
      esac
8561
      ;;
8562
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8563
    sunos4*)
8564
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8565
      wlarc=
8566
      hardcode_direct=yes
8567
      hardcode_shlibpath_var=no
8568
      ;;
8569
8570
    *)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8571
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8572
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8573
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8574
      else
8575
	ld_shlibs=no
8576
      fi
8577
      ;;
8578
    esac
8579
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8580
    if test "$ld_shlibs" = no; then
8581
      runpath_var=
8582
      hardcode_libdir_flag_spec=
8583
      export_dynamic_flag_spec=
8584
      whole_archive_flag_spec=
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
8585
    fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8586
  else
8587
    # PORTME fill in a description of your system's linker (not GNU ld)
8588
    case $host_os in
8589
    aix3*)
8590
      allow_undefined_flag=unsupported
8591
      always_export_symbols=yes
8592
      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'
8593
      # Note: this linker hardcodes the directories in LIBPATH if there
8594
      # are no directories specified by -L.
8595
      hardcode_minus_L=yes
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8596
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8597
	# Neither direct hardcoding nor static linking is supported with a
8598
	# broken collect2.
8599
	hardcode_direct=unsupported
8600
      fi
8601
      ;;
8602
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8603
    aix[4-9]*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8604
      if test "$host_cpu" = ia64; then
8605
	# On IA64, the linker does run time linking by default, so we don't
8606
	# have to do anything special.
8607
	aix_use_runtimelinking=no
8608
	exp_sym_flag='-Bexport'
8609
	no_entry_flag=""
8610
      else
8611
	# If we're using GNU nm, then we don't want the "-C" option.
8612
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8613
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8614
	  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'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8615
	else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8616
	  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'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8617
	fi
8618
	aix_use_runtimelinking=no
8619
8620
	# Test if we are trying to use run time linking or normal
8621
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8622
	# need to do runtime linking.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8623
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8624
	  for ld_flag in $LDFLAGS; do
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8625
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8626
	    aix_use_runtimelinking=yes
8627
	    break
8628
	  fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8629
	  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8630
	  ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8631
	esac
8632
8633
	exp_sym_flag='-bexport'
8634
	no_entry_flag='-bnoentry'
8635
      fi
8636
8637
      # When large executables or shared objects are built, AIX ld can
8638
      # have problems creating the table of contents.  If linking a library
8639
      # or program results in "error TOC overflow" add -mminimal-toc to
8640
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8641
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8642
8643
      archive_cmds=''
8644
      hardcode_direct=yes
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8645
      hardcode_direct_absolute=yes
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8646
      hardcode_libdir_separator=':'
8647
      link_all_deplibs=yes
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8648
      file_list_spec='${wl}-f,'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8649
8650
      if test "$GCC" = yes; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8651
	case $host_os in aix4.[012]|aix4.[012].*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8652
	# We only want to do this on AIX 4.2 and lower, the check
8653
	# below for broken collect2 doesn't work under 4.3+
8654
	  collect2name=`${CC} -print-prog-name=collect2`
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8655
	  if test -f "$collect2name" &&
8656
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8657
	  then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8658
	  # We have reworked collect2
8659
	  :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8660
	  else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8661
	  # We have old collect2
8662
	  hardcode_direct=unsupported
8663
	  # It fails to find uninstalled libraries when the uninstalled
8664
	  # path is not listed in the libpath.  Setting hardcode_minus_L
8665
	  # to unsupported forces relinking
8666
	  hardcode_minus_L=yes
8667
	  hardcode_libdir_flag_spec='-L$libdir'
8668
	  hardcode_libdir_separator=
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8669
	  fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8670
	  ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8671
	esac
8672
	shared_flag='-shared'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8673
	if test "$aix_use_runtimelinking" = yes; then
8674
	  shared_flag="$shared_flag "'${wl}-G'
8675
	fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8676
      else
8677
	# not using gcc
8678
	if test "$host_cpu" = ia64; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8679
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8680
	# chokes on -Wl,-G. The following line is correct:
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8681
	  shared_flag='-G'
8682
	else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8683
	  if test "$aix_use_runtimelinking" = yes; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8684
	    shared_flag='${wl}-G'
8685
	  else
8686
	    shared_flag='${wl}-bM:SRE'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8687
	  fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8688
	fi
8689
      fi
8690
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8691
      export_dynamic_flag_spec='${wl}-bexpall'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8692
      # It seems that -bexpall does not export symbols beginning with
8693
      # underscore (_), so it is better to generate a list of symbols to export.
8694
      always_export_symbols=yes
8695
      if test "$aix_use_runtimelinking" = yes; then
8696
	# Warning - without using the other runtime loading flags (-brtl),
8697
	# -berok will link without error, but may produce a broken library.
8698
	allow_undefined_flag='-berok'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8699
        # Determine the default libpath from the value encoded in an
8700
        # empty executable.
8701
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8702
/* end confdefs.h.  */
8703
8704
int
8705
main ()
8706
{
8707
8708
  ;
8709
  return 0;
8710
}
8711
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8712
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8713
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8714
lt_aix_libpath_sed='
8715
    /Import File Strings/,/^$/ {
8716
	/^0/ {
8717
	    s/^0  *\(.*\)$/\1/
8718
	    p
8719
	}
8720
    }'
8721
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8722
# Check for a 64-bit object if we didn't find anything.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8723
if test -z "$aix_libpath"; then
8724
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8725
fi
8726
fi
8727
rm -f core conftest.err conftest.$ac_objext \
8728
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8729
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8730
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8731
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8732
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8733
      else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8734
	if test "$host_cpu" = ia64; then
8735
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8736
	  allow_undefined_flag="-z nodefs"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8737
	  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"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8738
	else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8739
	 # Determine the default libpath from the value encoded in an
8740
	 # empty executable.
8741
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8742
/* end confdefs.h.  */
8743
8744
int
8745
main ()
8746
{
8747
8748
  ;
8749
  return 0;
8750
}
8751
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8752
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8753
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8754
lt_aix_libpath_sed='
8755
    /Import File Strings/,/^$/ {
8756
	/^0/ {
8757
	    s/^0  *\(.*\)$/\1/
8758
	    p
8759
	}
8760
    }'
8761
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8762
# Check for a 64-bit object if we didn't find anything.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8763
if test -z "$aix_libpath"; then
8764
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8765
fi
8766
fi
8767
rm -f core conftest.err conftest.$ac_objext \
8768
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8769
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8770
8771
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8772
	  # Warning - without using the other run time loading flags,
8773
	  # -berok will link without error, but may produce a broken library.
8774
	  no_undefined_flag=' ${wl}-bernotok'
8775
	  allow_undefined_flag=' ${wl}-berok'
8776
	  # Exported symbols can be pulled into shared objects from archives
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8777
	  whole_archive_flag_spec='$convenience'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8778
	  archive_cmds_need_lc=yes
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8779
	  # This is similar to how AIX traditionally builds its shared libraries.
8780
	  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'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8781
	fi
8782
      fi
8783
      ;;
8784
8785
    amigaos*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8786
      case $host_cpu in
8787
      powerpc)
8788
            # see comment about AmigaOS4 .so support
8789
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8790
            archive_expsym_cmds=''
8791
        ;;
8792
      m68k)
8793
            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)'
8794
            hardcode_libdir_flag_spec='-L$libdir'
8795
            hardcode_minus_L=yes
8796
        ;;
8797
      esac
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8798
      ;;
8799
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8800
    bsdi[45]*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8801
      export_dynamic_flag_spec=-rdynamic
8802
      ;;
8803
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8804
    cygwin* | mingw* | pw32* | cegcc*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8805
      # When not using gcc, we currently assume that we are using
8806
      # Microsoft Visual C++.
8807
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8808
      # no search path for DLLs.
8809
      hardcode_libdir_flag_spec=' '
8810
      allow_undefined_flag=unsupported
8811
      # Tell ltmain to make .lib files, not .a files.
8812
      libext=lib
8813
      # Tell ltmain to make .dll files, not .so files.
8814
      shrext_cmds=".dll"
8815
      # FIXME: Setting linknames here is a bad hack.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8816
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8817
      # The linker will automatically build a .lib file if we build a DLL.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8818
      old_archive_from_new_cmds='true'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8819
      # FIXME: Should let the user specify the lib program.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8820
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8821
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8822
      enable_shared_with_static_runtimes=yes
8823
      ;;
8824
8825
    darwin* | rhapsody*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8826
8827
8828
  archive_cmds_need_lc=no
8829
  hardcode_direct=no
8830
  hardcode_automatic=yes
8831
  hardcode_shlibpath_var=unsupported
8832
  whole_archive_flag_spec=''
8833
  link_all_deplibs=yes
8834
  allow_undefined_flag="$_lt_dar_allow_undefined"
8835
  case $cc_basename in
8836
     ifort*) _lt_dar_can_shared=yes ;;
8837
     *) _lt_dar_can_shared=$GCC ;;
8838
  esac
8839
  if test "$_lt_dar_can_shared" = "yes"; then
8840
    output_verbose_link_cmd=echo
8841
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8842
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8843
    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}"
8844
    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}"
8845
8846
  else
8847
  ld_shlibs=no
8848
  fi
8849
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8850
      ;;
8851
8852
    dgux*)
8853
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8854
      hardcode_libdir_flag_spec='-L$libdir'
8855
      hardcode_shlibpath_var=no
8856
      ;;
8857
8858
    freebsd1*)
8859
      ld_shlibs=no
8860
      ;;
8861
8862
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8863
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8864
    # does not break anything, and helps significantly (at the cost of a little
8865
    # extra space).
8866
    freebsd2.2*)
8867
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8868
      hardcode_libdir_flag_spec='-R$libdir'
8869
      hardcode_direct=yes
8870
      hardcode_shlibpath_var=no
8871
      ;;
8872
8873
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8874
    freebsd2*)
8875
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8876
      hardcode_direct=yes
8877
      hardcode_minus_L=yes
8878
      hardcode_shlibpath_var=no
8879
      ;;
8880
8881
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8882
    freebsd* | dragonfly*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8883
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8884
      hardcode_libdir_flag_spec='-R$libdir'
8885
      hardcode_direct=yes
8886
      hardcode_shlibpath_var=no
8887
      ;;
8888
8889
    hpux9*)
8890
      if test "$GCC" = yes; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8891
	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'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8892
      else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8893
	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'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8894
      fi
8895
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8896
      hardcode_libdir_separator=:
8897
      hardcode_direct=yes
8898
8899
      # hardcode_minus_L: Not really in the search PATH,
8900
      # but as the default location of the library.
8901
      hardcode_minus_L=yes
8902
      export_dynamic_flag_spec='${wl}-E'
8903
      ;;
8904
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8905
    hpux10*)
8906
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8907
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8908
      else
8909
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8910
      fi
8911
      if test "$with_gnu_ld" = no; then
8912
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8913
	hardcode_libdir_flag_spec_ld='+b $libdir'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8914
	hardcode_libdir_separator=:
8915
	hardcode_direct=yes
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8916
	hardcode_direct_absolute=yes
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8917
	export_dynamic_flag_spec='${wl}-E'
8918
	# hardcode_minus_L: Not really in the search PATH,
8919
	# but as the default location of the library.
8920
	hardcode_minus_L=yes
8921
      fi
8922
      ;;
8923
8924
    hpux11*)
8925
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8926
	case $host_cpu in
8927
	hppa*64*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8928
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8929
	  ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8930
	ia64*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8931
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8932
	  ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8933
	*)
8934
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8935
	  ;;
8936
	esac
8937
      else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8938
	case $host_cpu in
8939
	hppa*64*)
8940
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8941
	  ;;
8942
	ia64*)
8943
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8944
	  ;;
8945
	*)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8946
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8947
	  ;;
8948
	esac
8949
      fi
8950
      if test "$with_gnu_ld" = no; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
8951
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8952
	hardcode_libdir_separator=:
8953
8954
	case $host_cpu in
8955
	hppa*64*|ia64*)
8956
	  hardcode_direct=no
8957
	  hardcode_shlibpath_var=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8958
	  ;;
8959
	*)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
8960
	  hardcode_direct=yes
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8961
	  hardcode_direct_absolute=yes
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8962
	  export_dynamic_flag_spec='${wl}-E'
8963
8964
	  # hardcode_minus_L: Not really in the search PATH,
8965
	  # but as the default location of the library.
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
8966
	  hardcode_minus_L=yes
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8967
	  ;;
8968
	esac
8969
      fi
8970
      ;;
8971
8972
    irix5* | irix6* | nonstopux*)
8973
      if test "$GCC" = yes; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8974
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8975
	# Try to use the -exported_symbol ld option, if it does not
8976
	# work, assume that -exports_file does not work either and
8977
	# implicitly export all symbols.
8978
        save_LDFLAGS="$LDFLAGS"
8979
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8980
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981
/* end confdefs.h.  */
8982
int foo(void) {}
8983
_ACEOF
8984
if ac_fn_c_try_link "$LINENO"; then :
8985
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8986
8987
fi
8988
rm -f core conftest.err conftest.$ac_objext \
8989
    conftest$ac_exeext conftest.$ac_ext
8990
        LDFLAGS="$save_LDFLAGS"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8991
      else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8992
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8993
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8994
      fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8995
      archive_cmds_need_lc='no'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8996
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8997
      hardcode_libdir_separator=:
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
8998
      inherit_rpath=yes
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
8999
      link_all_deplibs=yes
9000
      ;;
9001
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9002
    netbsd*)
9003
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9004
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9005
      else
9006
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9007
      fi
9008
      hardcode_libdir_flag_spec='-R$libdir'
9009
      hardcode_direct=yes
9010
      hardcode_shlibpath_var=no
9011
      ;;
9012
9013
    newsos6)
9014
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9015
      hardcode_direct=yes
9016
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9017
      hardcode_libdir_separator=:
9018
      hardcode_shlibpath_var=no
9019
      ;;
9020
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9021
    *nto* | *qnx*)
9022
      ;;
9023
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9024
    openbsd*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9025
      if test -f /usr/libexec/ld.so; then
9026
	hardcode_direct=yes
9027
	hardcode_shlibpath_var=no
9028
	hardcode_direct_absolute=yes
9029
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9030
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9031
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9032
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9033
	  export_dynamic_flag_spec='${wl}-E'
9034
	else
9035
	  case $host_os in
9036
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9037
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9038
	     hardcode_libdir_flag_spec='-R$libdir'
9039
	     ;;
9040
	   *)
9041
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9042
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9043
	     ;;
9044
	  esac
9045
	fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9046
      else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9047
	ld_shlibs=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9048
      fi
9049
      ;;
9050
9051
    os2*)
9052
      hardcode_libdir_flag_spec='-L$libdir'
9053
      hardcode_minus_L=yes
9054
      allow_undefined_flag=unsupported
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9055
      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'
9056
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9057
      ;;
9058
9059
    osf3*)
9060
      if test "$GCC" = yes; then
9061
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9062
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9063
      else
9064
	allow_undefined_flag=' -expect_unresolved \*'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9065
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9066
      fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9067
      archive_cmds_need_lc='no'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9068
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069
      hardcode_libdir_separator=:
9070
      ;;
9071
9072
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9073
      if test "$GCC" = yes; then
9074
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9075
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9076
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9077
      else
9078
	allow_undefined_flag=' -expect_unresolved \*'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9079
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9080
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9081
	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9082
9083
	# Both c and cxx compiler support -rpath directly
9084
	hardcode_libdir_flag_spec='-rpath $libdir'
9085
      fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9086
      archive_cmds_need_lc='no'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9087
      hardcode_libdir_separator=:
9088
      ;;
9089
9090
    solaris*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9091
      no_undefined_flag=' -z defs'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9092
      if test "$GCC" = yes; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9093
	wlarc='${wl}'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9094
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9095
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9096
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9097
      else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9098
	case `$CC -V 2>&1` in
9099
	*"Compilers 5.0"*)
9100
	  wlarc=''
9101
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9103
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9104
	  ;;
9105
	*)
9106
	  wlarc='${wl}'
9107
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9108
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9109
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9110
	  ;;
9111
	esac
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9112
      fi
9113
      hardcode_libdir_flag_spec='-R$libdir'
9114
      hardcode_shlibpath_var=no
9115
      case $host_os in
9116
      solaris2.[0-5] | solaris2.[0-5].*) ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9117
      *)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9118
	# The compiler driver will combine and reorder linker options,
9119
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9120
	# but is careful enough not to reorder.
9121
	# Supported since Solaris 2.6 (maybe 2.5.1?)
9122
	if test "$GCC" = yes; then
9123
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9124
	else
9125
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9126
	fi
9127
	;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9128
      esac
9129
      link_all_deplibs=yes
9130
      ;;
9131
9132
    sunos4*)
9133
      if test "x$host_vendor" = xsequent; then
9134
	# Use $CC to link under sequent, because it throws in some extra .o
9135
	# files that make .init and .fini sections work.
9136
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9137
      else
9138
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9139
      fi
9140
      hardcode_libdir_flag_spec='-L$libdir'
9141
      hardcode_direct=yes
9142
      hardcode_minus_L=yes
9143
      hardcode_shlibpath_var=no
9144
      ;;
9145
9146
    sysv4)
9147
      case $host_vendor in
9148
	sni)
9149
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9150
	  hardcode_direct=yes # is this really true???
9151
	;;
9152
	siemens)
9153
	  ## LD is ld it makes a PLAMLIB
9154
	  ## CC just makes a GrossModule.
9155
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9156
	  reload_cmds='$CC -r -o $output$reload_objs'
9157
	  hardcode_direct=no
9158
        ;;
9159
	motorola)
9160
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9161
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9162
	;;
9163
      esac
9164
      runpath_var='LD_RUN_PATH'
9165
      hardcode_shlibpath_var=no
9166
      ;;
9167
9168
    sysv4.3*)
9169
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9170
      hardcode_shlibpath_var=no
9171
      export_dynamic_flag_spec='-Bexport'
9172
      ;;
9173
9174
    sysv4*MP*)
9175
      if test -d /usr/nec; then
9176
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9177
	hardcode_shlibpath_var=no
9178
	runpath_var=LD_RUN_PATH
9179
	hardcode_runpath_var=yes
9180
	ld_shlibs=yes
9181
      fi
9182
      ;;
9183
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9184
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9185
      no_undefined_flag='${wl}-z,text'
9186
      archive_cmds_need_lc=no
9187
      hardcode_shlibpath_var=no
9188
      runpath_var='LD_RUN_PATH'
9189
9190
      if test "$GCC" = yes; then
9191
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9192
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9193
      else
9194
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9195
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9196
      fi
9197
      ;;
9198
9199
    sysv5* | sco3.2v5* | sco5v6*)
9200
      # Note: We can NOT use -z defs as we might desire, because we do not
9201
      # link with -lc, and that would cause any symbols used from libc to
9202
      # always be unresolved, which means just about no library would
9203
      # ever link correctly.  If we're not using GNU ld we use -z text
9204
      # though, which does catch some bad symbols but isn't as heavy-handed
9205
      # as -z defs.
9206
      no_undefined_flag='${wl}-z,text'
9207
      allow_undefined_flag='${wl}-z,nodefs'
9208
      archive_cmds_need_lc=no
9209
      hardcode_shlibpath_var=no
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9210
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9211
      hardcode_libdir_separator=':'
9212
      link_all_deplibs=yes
9213
      export_dynamic_flag_spec='${wl}-Bexport'
9214
      runpath_var='LD_RUN_PATH'
9215
9216
      if test "$GCC" = yes; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9217
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9218
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9219
      else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9220
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9221
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9222
      fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9223
      ;;
9224
9225
    uts4*)
9226
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9227
      hardcode_libdir_flag_spec='-L$libdir'
9228
      hardcode_shlibpath_var=no
9229
      ;;
9230
9231
    *)
9232
      ld_shlibs=no
9233
      ;;
9234
    esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9235
9236
    if test x$host_vendor = xsni; then
9237
      case $host in
9238
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9239
	export_dynamic_flag_spec='${wl}-Blargedynsym'
9240
	;;
9241
      esac
9242
    fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9243
  fi
9244
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9246
$as_echo "$ld_shlibs" >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
9247
test "$ld_shlibs" = no && can_build_shared=no
9248
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9249
with_gnu_ld=$with_gnu_ld
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9265
#
9266
# Do we need to explicitly link libc?
9267
#
9268
case "x$archive_cmds_need_lc" in
9269
x|xyes)
9270
  # Assume -lc should be added
9271
  archive_cmds_need_lc=yes
9272
9273
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9274
    case $archive_cmds in
9275
    *'~'*)
9276
      # FIXME: we may have to deal with multi-command sequences.
9277
      ;;
9278
    '$CC '*)
9279
      # Test whether the compiler implicitly links with -lc since on some
9280
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9281
      # to ld, don't add -lc before -lgcc.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9282
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9283
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9284
      $RM conftest*
9285
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9286
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9287
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9288
  (eval $ac_compile) 2>&5
9289
  ac_status=$?
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9290
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9291
  test $ac_status = 0; } 2>conftest.err; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9292
        soname=conftest
9293
        lib=conftest
9294
        libobjs=conftest.$ac_objext
9295
        deplibs=
9296
        wl=$lt_prog_compiler_wl
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9297
	pic_flag=$lt_prog_compiler_pic
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9298
        compiler_flags=-v
9299
        linker_flags=-v
9300
        verstring=
9301
        output_objdir=.
9302
        libname=conftest
9303
        lt_save_allow_undefined_flag=$allow_undefined_flag
9304
        allow_undefined_flag=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9305
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9306
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9307
  ac_status=$?
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9308
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9309
  test $ac_status = 0; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9310
        then
9311
	  archive_cmds_need_lc=no
9312
        else
9313
	  archive_cmds_need_lc=yes
9314
        fi
9315
        allow_undefined_flag=$lt_save_allow_undefined_flag
9316
      else
9317
        cat conftest.err 1>&5
9318
      fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9319
      $RM conftest*
9320
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9321
$as_echo "$archive_cmds_need_lc" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9322
      ;;
9323
    esac
9324
  fi
9325
  ;;
9326
esac
9327
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9485
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9486
9487
if test "$GCC" = yes; then
9488
  case $host_os in
9489
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9490
    *) lt_awk_arg="/^libraries:/" ;;
9491
  esac
9492
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9493
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9494
    # if the path contains ";" then we assume it to be the separator
9495
    # otherwise default to the standard path separator (i.e. ":") - it is
9496
    # assumed that no part of a normal pathname contains ";" but that should
9497
    # okay in the real world where ";" in dirpaths is itself problematic.
9498
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9499
  else
9500
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9501
  fi
9502
  # Ok, now we have the path, separated by spaces, we can step through it
9503
  # and add multilib dir if necessary.
9504
  lt_tmp_lt_search_path_spec=
9505
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9506
  for lt_sys_path in $lt_search_path_spec; do
9507
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9508
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9509
    else
9510
      test -d "$lt_sys_path" && \
9511
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9512
    fi
9513
  done
9514
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9515
BEGIN {RS=" "; FS="/|\n";} {
9516
  lt_foo="";
9517
  lt_count=0;
9518
  for (lt_i = NF; lt_i > 0; lt_i--) {
9519
    if ($lt_i != "" && $lt_i != ".") {
9520
      if ($lt_i == "..") {
9521
        lt_count++;
9522
      } else {
9523
        if (lt_count == 0) {
9524
          lt_foo="/" $lt_i lt_foo;
9525
        } else {
9526
          lt_count--;
9527
        }
9528
      }
9529
    }
9530
  }
9531
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9532
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9533
}'`
9534
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9535
else
9536
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9537
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9538
library_names_spec=
9539
libname_spec='lib$name'
9540
soname_spec=
9541
shrext_cmds=".so"
9542
postinstall_cmds=
9543
postuninstall_cmds=
9544
finish_cmds=
9545
finish_eval=
9546
shlibpath_var=
9547
shlibpath_overrides_runpath=unknown
9548
version_type=none
9549
dynamic_linker="$host_os ld.so"
9550
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9551
need_lib_prefix=unknown
9552
hardcode_into_libs=no
9553
9554
# when you set need_version to no, make sure it does not cause -set_version
9555
# flags to be left without arguments
9556
need_version=unknown
9557
9558
case $host_os in
9559
aix3*)
9560
  version_type=linux
9561
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9562
  shlibpath_var=LIBPATH
9563
9564
  # AIX 3 has no versioning support, so we append a major version to the name.
9565
  soname_spec='${libname}${release}${shared_ext}$major'
9566
  ;;
9567
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9568
aix[4-9]*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9569
  version_type=linux
9570
  need_lib_prefix=no
9571
  need_version=no
9572
  hardcode_into_libs=yes
9573
  if test "$host_cpu" = ia64; then
9574
    # AIX 5 supports IA64
9575
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9576
    shlibpath_var=LD_LIBRARY_PATH
9577
  else
9578
    # With GCC up to 2.95.x, collect2 would create an import file
9579
    # for dependence libraries.  The import file would start with
9580
    # the line `#! .'.  This would cause the generated library to
9581
    # depend on `.', always an invalid library.  This was fixed in
9582
    # development snapshots of GCC prior to 3.0.
9583
    case $host_os in
9584
      aix4 | aix4.[01] | aix4.[01].*)
9585
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9586
	   echo ' yes '
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9587
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9588
	:
9589
      else
9590
	can_build_shared=no
9591
      fi
9592
      ;;
9593
    esac
9594
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9595
    # soname into executable. Probably we can add versioning support to
9596
    # collect2, so additional links can be useful in future.
9597
    if test "$aix_use_runtimelinking" = yes; then
9598
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9599
      # instead of lib<name>.a to let people know that these are not
9600
      # typical AIX shared libraries.
9601
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9602
    else
9603
      # We preserve .a as extension for shared libraries through AIX4.2
9604
      # and later when we are not doing run time linking.
9605
      library_names_spec='${libname}${release}.a $libname.a'
9606
      soname_spec='${libname}${release}${shared_ext}$major'
9607
    fi
9608
    shlibpath_var=LIBPATH
9609
  fi
9610
  ;;
9611
9612
amigaos*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9613
  case $host_cpu in
9614
  powerpc)
9615
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9616
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9617
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618
    ;;
9619
  m68k)
9620
    library_names_spec='$libname.ixlibrary $libname.a'
9621
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9622
    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'
9623
    ;;
9624
  esac
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9625
  ;;
9626
9627
beos*)
9628
  library_names_spec='${libname}${shared_ext}'
9629
  dynamic_linker="$host_os ld.so"
9630
  shlibpath_var=LIBRARY_PATH
9631
  ;;
9632
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9633
bsdi[45]*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9634
  version_type=linux
9635
  need_version=no
9636
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637
  soname_spec='${libname}${release}${shared_ext}$major'
9638
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9639
  shlibpath_var=LD_LIBRARY_PATH
9640
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9641
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9642
  # the default ld.so.conf also contains /usr/contrib/lib and
9643
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9644
  # libtool to hard-code these into programs
9645
  ;;
9646
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9647
cygwin* | mingw* | pw32* | cegcc*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9648
  version_type=windows
9649
  shrext_cmds=".dll"
9650
  need_version=no
9651
  need_lib_prefix=no
9652
9653
  case $GCC,$host_os in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9654
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9655
    library_names_spec='$libname.dll.a'
9656
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9657
    postinstall_cmds='base_file=`basename \${file}`~
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9658
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9659
      dldir=$destdir/`dirname \$dlpath`~
9660
      test -d \$dldir || mkdir -p \$dldir~
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9661
      $install_prog $dir/$dlname \$dldir/$dlname~
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9662
      chmod a+x \$dldir/$dlname~
9663
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9664
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9665
      fi'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9666
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9667
      dlpath=$dir/\$dldll~
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9668
       $RM \$dlpath'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9669
    shlibpath_overrides_runpath=yes
9670
9671
    case $host_os in
9672
    cygwin*)
9673
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9674
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9675
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9676
      ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9677
    mingw* | cegcc*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9678
      # MinGW DLLs use traditional 'lib' prefix
9679
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9680
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9681
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9682
        # It is most probably a Windows format PATH printed by
9683
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9684
        # path with ; separators, and with drive letters. We can handle the
9685
        # drive letters (cygwin fileutils understands them), so leave them,
9686
        # especially as we might pass files found there to a mingw objdump,
9687
        # which wouldn't understand a cygwinified path. Ahh.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9688
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9689
      else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9690
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9691
      fi
9692
      ;;
9693
    pw32*)
9694
      # pw32 DLLs use 'pw' prefix rather than 'lib'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9695
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9696
      ;;
9697
    esac
9698
    ;;
9699
9700
  *)
9701
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9702
    ;;
9703
  esac
9704
  dynamic_linker='Win32 ld.exe'
9705
  # FIXME: first we should search . and the directory the executable is in
9706
  shlibpath_var=PATH
9707
  ;;
9708
9709
darwin* | rhapsody*)
9710
  dynamic_linker="$host_os dyld"
9711
  version_type=darwin
9712
  need_lib_prefix=no
9713
  need_version=no
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9714
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9715
  soname_spec='${libname}${release}${major}$shared_ext'
9716
  shlibpath_overrides_runpath=yes
9717
  shlibpath_var=DYLD_LIBRARY_PATH
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9718
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9719
9720
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9721
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9722
  ;;
9723
9724
dgux*)
9725
  version_type=linux
9726
  need_lib_prefix=no
9727
  need_version=no
9728
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9729
  soname_spec='${libname}${release}${shared_ext}$major'
9730
  shlibpath_var=LD_LIBRARY_PATH
9731
  ;;
9732
9733
freebsd1*)
9734
  dynamic_linker=no
9735
  ;;
9736
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9737
freebsd* | dragonfly*)
9738
  # DragonFly does not have aout.  When/if they implement a new
9739
  # versioning mechanism, adjust this.
9740
  if test -x /usr/bin/objformat; then
9741
    objformat=`/usr/bin/objformat`
9742
  else
9743
    case $host_os in
9744
    freebsd[123]*) objformat=aout ;;
9745
    *) objformat=elf ;;
9746
    esac
9747
  fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9748
  version_type=freebsd-$objformat
9749
  case $version_type in
9750
    freebsd-elf*)
9751
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9752
      need_version=no
9753
      need_lib_prefix=no
9754
      ;;
9755
    freebsd-*)
9756
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9757
      need_version=yes
9758
      ;;
9759
  esac
9760
  shlibpath_var=LD_LIBRARY_PATH
9761
  case $host_os in
9762
  freebsd2*)
9763
    shlibpath_overrides_runpath=yes
9764
    ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9765
  freebsd3.[01]* | freebsdelf3.[01]*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9766
    shlibpath_overrides_runpath=yes
9767
    hardcode_into_libs=yes
9768
    ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9769
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9770
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9771
    shlibpath_overrides_runpath=no
9772
    hardcode_into_libs=yes
9773
    ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9774
  *) # from 4.6 on, and DragonFly
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9775
    shlibpath_overrides_runpath=yes
9776
    hardcode_into_libs=yes
9777
    ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9778
  esac
9779
  ;;
9780
9781
gnu*)
9782
  version_type=linux
9783
  need_lib_prefix=no
9784
  need_version=no
9785
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9786
  soname_spec='${libname}${release}${shared_ext}$major'
9787
  shlibpath_var=LD_LIBRARY_PATH
9788
  hardcode_into_libs=yes
9789
  ;;
9790
9791
hpux9* | hpux10* | hpux11*)
9792
  # Give a soname corresponding to the major version so that dld.sl refuses to
9793
  # link against other versions.
9794
  version_type=sunos
9795
  need_lib_prefix=no
9796
  need_version=no
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9797
  case $host_cpu in
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9798
  ia64*)
9799
    shrext_cmds='.so'
9800
    hardcode_into_libs=yes
9801
    dynamic_linker="$host_os dld.so"
9802
    shlibpath_var=LD_LIBRARY_PATH
9803
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9804
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805
    soname_spec='${libname}${release}${shared_ext}$major'
9806
    if test "X$HPUX_IA64_MODE" = X32; then
9807
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9808
    else
9809
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9810
    fi
9811
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9812
    ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9813
  hppa*64*)
9814
    shrext_cmds='.sl'
9815
    hardcode_into_libs=yes
9816
    dynamic_linker="$host_os dld.sl"
9817
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9818
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9819
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820
    soname_spec='${libname}${release}${shared_ext}$major'
9821
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9822
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9823
    ;;
9824
  *)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9825
    shrext_cmds='.sl'
9826
    dynamic_linker="$host_os dld.sl"
9827
    shlibpath_var=SHLIB_PATH
9828
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9829
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830
    soname_spec='${libname}${release}${shared_ext}$major'
9831
    ;;
9832
  esac
9833
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9834
  postinstall_cmds='chmod 555 $lib'
9835
  ;;
9836
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9837
interix[3-9]*)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9838
  version_type=linux
9839
  need_lib_prefix=no
9840
  need_version=no
9841
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9842
  soname_spec='${libname}${release}${shared_ext}$major'
9843
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9844
  shlibpath_var=LD_LIBRARY_PATH
9845
  shlibpath_overrides_runpath=no
9846
  hardcode_into_libs=yes
9847
  ;;
9848
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9849
irix5* | irix6* | nonstopux*)
9850
  case $host_os in
9851
    nonstopux*) version_type=nonstopux ;;
9852
    *)
9853
	if test "$lt_cv_prog_gnu_ld" = yes; then
9854
		version_type=linux
9855
	else
9856
		version_type=irix
9857
	fi ;;
9858
  esac
9859
  need_lib_prefix=no
9860
  need_version=no
9861
  soname_spec='${libname}${release}${shared_ext}$major'
9862
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9863
  case $host_os in
9864
  irix5* | nonstopux*)
9865
    libsuff= shlibsuff=
9866
    ;;
9867
  *)
9868
    case $LD in # libtool.m4 will add one of these switches to LD
9869
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9870
      libsuff= shlibsuff= libmagic=32-bit;;
9871
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9872
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9873
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9874
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9875
    *) libsuff= shlibsuff= libmagic=never-match;;
9876
    esac
9877
    ;;
9878
  esac
9879
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9880
  shlibpath_overrides_runpath=no
9881
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9882
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9883
  hardcode_into_libs=yes
9884
  ;;
9885
9886
# No shared lib support for Linux oldld, aout, or coff.
9887
linux*oldld* | linux*aout* | linux*coff*)
9888
  dynamic_linker=no
9889
  ;;
9890
9891
# This must be Linux ELF.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9892
linux* | k*bsd*-gnu)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9893
  version_type=linux
9894
  need_lib_prefix=no
9895
  need_version=no
9896
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897
  soname_spec='${libname}${release}${shared_ext}$major'
9898
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9899
  shlibpath_var=LD_LIBRARY_PATH
9900
  shlibpath_overrides_runpath=no
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9901
  # Some binutils ld are patched to set DT_RUNPATH
9902
  save_LDFLAGS=$LDFLAGS
9903
  save_libdir=$libdir
9904
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9905
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9906
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907
/* end confdefs.h.  */
9908
9909
int
9910
main ()
9911
{
9912
9913
  ;
9914
  return 0;
9915
}
9916
_ACEOF
9917
if ac_fn_c_try_link "$LINENO"; then :
9918
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9919
  shlibpath_overrides_runpath=yes
9920
fi
9921
fi
9922
rm -f core conftest.err conftest.$ac_objext \
9923
    conftest$ac_exeext conftest.$ac_ext
9924
  LDFLAGS=$save_LDFLAGS
9925
  libdir=$save_libdir
9926
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9927
  # This implies no fast_install, which is unacceptable.
9928
  # Some rework will be needed to allow for fast_install
9929
  # before this can be enabled.
9930
  hardcode_into_libs=yes
9931
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9932
  # Add ABI-specific directories to the system library path.
9933
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9934
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9935
  # Append ld.so.conf contents to the search path
9936
  if test -f /etc/ld.so.conf; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9937
    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' ' '`
9938
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9939
  fi
9940
9941
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9942
  # powerpc, because MkLinux only supported shared libraries with the
9943
  # GNU dynamic linker.  Since this was broken with cross compilers,
9944
  # most powerpc-linux boxes support dynamic linking these days and
9945
  # people can always --disable-shared, the test was removed, and we
9946
  # assume the GNU/Linux dynamic linker is in use.
9947
  dynamic_linker='GNU/Linux ld.so'
9948
  ;;
9949
9950
netbsd*)
9951
  version_type=sunos
9952
  need_lib_prefix=no
9953
  need_version=no
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9954
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9955
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9956
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9957
    dynamic_linker='NetBSD (a.out) ld.so'
9958
  else
9959
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9960
    soname_spec='${libname}${release}${shared_ext}$major'
9961
    dynamic_linker='NetBSD ld.elf_so'
9962
  fi
9963
  shlibpath_var=LD_LIBRARY_PATH
9964
  shlibpath_overrides_runpath=yes
9965
  hardcode_into_libs=yes
9966
  ;;
9967
9968
newsos6)
9969
  version_type=linux
9970
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971
  shlibpath_var=LD_LIBRARY_PATH
9972
  shlibpath_overrides_runpath=yes
9973
  ;;
9974
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9975
*nto* | *qnx*)
9976
  version_type=qnx
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9977
  need_lib_prefix=no
9978
  need_version=no
9979
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9980
  soname_spec='${libname}${release}${shared_ext}$major'
9981
  shlibpath_var=LD_LIBRARY_PATH
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9982
  shlibpath_overrides_runpath=no
9983
  hardcode_into_libs=yes
9984
  dynamic_linker='ldqnx.so'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9985
  ;;
9986
9987
openbsd*)
9988
  version_type=sunos
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9989
  sys_lib_dlsearch_path_spec="/usr/lib"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9990
  need_lib_prefix=no
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9991
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9992
  case $host_os in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9993
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9994
    *)				need_version=no  ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
9995
  esac
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
9996
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9997
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9998
  shlibpath_var=LD_LIBRARY_PATH
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
9999
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10000
    case $host_os in
10001
      openbsd2.[89] | openbsd2.[89].*)
10002
	shlibpath_overrides_runpath=no
10003
	;;
10004
      *)
10005
	shlibpath_overrides_runpath=yes
10006
	;;
10007
      esac
10008
  else
10009
    shlibpath_overrides_runpath=yes
10010
  fi
10011
  ;;
10012
10013
os2*)
10014
  libname_spec='$name'
10015
  shrext_cmds=".dll"
10016
  need_lib_prefix=no
10017
  library_names_spec='$libname${shared_ext} $libname.a'
10018
  dynamic_linker='OS/2 ld.exe'
10019
  shlibpath_var=LIBPATH
10020
  ;;
10021
10022
osf3* | osf4* | osf5*)
10023
  version_type=osf
10024
  need_lib_prefix=no
10025
  need_version=no
10026
  soname_spec='${libname}${release}${shared_ext}$major'
10027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028
  shlibpath_var=LD_LIBRARY_PATH
10029
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10030
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10031
  ;;
10032
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10033
rdos*)
10034
  dynamic_linker=no
10035
  ;;
10036
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10037
solaris*)
10038
  version_type=linux
10039
  need_lib_prefix=no
10040
  need_version=no
10041
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042
  soname_spec='${libname}${release}${shared_ext}$major'
10043
  shlibpath_var=LD_LIBRARY_PATH
10044
  shlibpath_overrides_runpath=yes
10045
  hardcode_into_libs=yes
10046
  # ldd complains unless libraries are executable
10047
  postinstall_cmds='chmod +x $lib'
10048
  ;;
10049
10050
sunos4*)
10051
  version_type=sunos
10052
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10053
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10054
  shlibpath_var=LD_LIBRARY_PATH
10055
  shlibpath_overrides_runpath=yes
10056
  if test "$with_gnu_ld" = yes; then
10057
    need_lib_prefix=no
10058
  fi
10059
  need_version=yes
10060
  ;;
10061
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10062
sysv4 | sysv4.3*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10063
  version_type=linux
10064
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065
  soname_spec='${libname}${release}${shared_ext}$major'
10066
  shlibpath_var=LD_LIBRARY_PATH
10067
  case $host_vendor in
10068
    sni)
10069
      shlibpath_overrides_runpath=no
10070
      need_lib_prefix=no
10071
      runpath_var=LD_RUN_PATH
10072
      ;;
10073
    siemens)
10074
      need_lib_prefix=no
10075
      ;;
10076
    motorola)
10077
      need_lib_prefix=no
10078
      need_version=no
10079
      shlibpath_overrides_runpath=no
10080
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10081
      ;;
10082
  esac
10083
  ;;
10084
10085
sysv4*MP*)
10086
  if test -d /usr/nec ;then
10087
    version_type=linux
10088
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10089
    soname_spec='$libname${shared_ext}.$major'
10090
    shlibpath_var=LD_LIBRARY_PATH
10091
  fi
10092
  ;;
10093
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10094
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10095
  version_type=freebsd-elf
10096
  need_lib_prefix=no
10097
  need_version=no
10098
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10099
  soname_spec='${libname}${release}${shared_ext}$major'
10100
  shlibpath_var=LD_LIBRARY_PATH
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10101
  shlibpath_overrides_runpath=yes
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10102
  hardcode_into_libs=yes
10103
  if test "$with_gnu_ld" = yes; then
10104
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10105
  else
10106
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10107
    case $host_os in
10108
      sco3.2v5*)
10109
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10110
	;;
10111
    esac
10112
  fi
10113
  sys_lib_dlsearch_path_spec='/usr/lib'
10114
  ;;
10115
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10116
tpf*)
10117
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10118
  version_type=linux
10119
  need_lib_prefix=no
10120
  need_version=no
10121
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122
  shlibpath_var=LD_LIBRARY_PATH
10123
  shlibpath_overrides_runpath=no
10124
  hardcode_into_libs=yes
10125
  ;;
10126
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10127
uts4*)
10128
  version_type=linux
10129
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130
  soname_spec='${libname}${release}${shared_ext}$major'
10131
  shlibpath_var=LD_LIBRARY_PATH
10132
  ;;
10133
10134
*)
10135
  dynamic_linker=no
10136
  ;;
10137
esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10139
$as_echo "$dynamic_linker" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10140
test "$dynamic_linker" = no && can_build_shared=no
10141
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10142
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10143
if test "$GCC" = yes; then
10144
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10145
fi
10146
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10147
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10148
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10149
fi
10150
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10151
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10152
fi
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10241
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10242
hardcode_action=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10243
if test -n "$hardcode_libdir_flag_spec" ||
10244
   test -n "$runpath_var" ||
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10245
   test "X$hardcode_automatic" = "Xyes" ; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10246
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10247
  # We can hardcode non-existent directories.
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10248
  if test "$hardcode_direct" != no &&
10249
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10250
     # have to relink, otherwise we might link with an installed library
10251
     # when we should be linking with a yet-to-be-installed one
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10252
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10253
     test "$hardcode_minus_L" != no; then
10254
    # Linking always hardcodes the temporary library directory.
10255
    hardcode_action=relink
10256
  else
10257
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10258
    hardcode_action=immediate
10259
  fi
10260
else
10261
  # We cannot hardcode anything, or else we can only hardcode existing
10262
  # directories.
10263
  hardcode_action=unsupported
10264
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10266
$as_echo "$hardcode_action" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10267
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10268
if test "$hardcode_action" = relink ||
10269
   test "$inherit_rpath" = yes; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10270
  # Fast installation is not supported
10271
  enable_fast_install=no
10272
elif test "$shlibpath_overrides_runpath" = yes ||
10273
     test "$enable_shared" = no; then
10274
  # Fast installation is not necessary
10275
  enable_fast_install=needless
10276
fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10277
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10278
10279
10280
10281
10282
10283
  if test "x$enable_dlopen" != xyes; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10284
  enable_dlopen=unknown
10285
  enable_dlopen_self=unknown
10286
  enable_dlopen_self_static=unknown
10287
else
10288
  lt_cv_dlopen=no
10289
  lt_cv_dlopen_libs=
10290
10291
  case $host_os in
10292
  beos*)
10293
    lt_cv_dlopen="load_add_on"
10294
    lt_cv_dlopen_libs=
10295
    lt_cv_dlopen_self=yes
10296
    ;;
10297
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10298
  mingw* | pw32* | cegcc*)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10299
    lt_cv_dlopen="LoadLibrary"
10300
    lt_cv_dlopen_libs=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10301
    ;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10302
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10303
  cygwin*)
10304
    lt_cv_dlopen="dlopen"
10305
    lt_cv_dlopen_libs=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10306
    ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10307
10308
  darwin*)
10309
  # if libdl is installed we need to link against it
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10310
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10311
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10312
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10313
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10314
else
10315
  ac_check_lib_save_LIBS=$LIBS
10316
LIBS="-ldl  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10317
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10318
/* end confdefs.h.  */
10319
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10320
/* Override any GCC internal prototype to avoid an error.
10321
   Use char because int might match the return type of a GCC
10322
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10323
#ifdef __cplusplus
10324
extern "C"
10325
#endif
10326
char dlopen ();
10327
int
10328
main ()
10329
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10330
return dlopen ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10331
  ;
10332
  return 0;
10333
}
10334
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10335
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10336
  ac_cv_lib_dl_dlopen=yes
10337
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10338
  ac_cv_lib_dl_dlopen=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10339
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10340
rm -f core conftest.err conftest.$ac_objext \
10341
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10342
LIBS=$ac_check_lib_save_LIBS
10343
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10345
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10346
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10347
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10348
else
10349
10350
    lt_cv_dlopen="dyld"
10351
    lt_cv_dlopen_libs=
10352
    lt_cv_dlopen_self=yes
10353
10354
fi
10355
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10356
    ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10357
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10358
  *)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10359
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10360
if test "x$ac_cv_func_shl_load" = x""yes; then :
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10361
  lt_cv_dlopen="shl_load"
10362
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10363
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10364
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10365
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10366
  $as_echo_n "(cached) " >&6
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10367
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10368
  ac_check_lib_save_LIBS=$LIBS
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10369
LIBS="-ldld  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10370
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10371
/* end confdefs.h.  */
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10372
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10373
/* Override any GCC internal prototype to avoid an error.
10374
   Use char because int might match the return type of a GCC
10375
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10376
#ifdef __cplusplus
10377
extern "C"
10378
#endif
10379
char shl_load ();
10380
int
10381
main ()
10382
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10383
return shl_load ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10384
  ;
10385
  return 0;
10386
}
10387
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10388
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10389
  ac_cv_lib_dld_shl_load=yes
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10390
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10391
  ac_cv_lib_dld_shl_load=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10392
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10393
rm -f core conftest.err conftest.$ac_objext \
10394
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10395
LIBS=$ac_check_lib_save_LIBS
10396
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10397
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10398
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10399
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10400
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10401
else
10402
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10403
if test "x$ac_cv_func_dlopen" = x""yes; then :
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10404
  lt_cv_dlopen="dlopen"
10405
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10406
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10407
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10408
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10409
  $as_echo_n "(cached) " >&6
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10410
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10411
  ac_check_lib_save_LIBS=$LIBS
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10412
LIBS="-ldl  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10413
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10414
/* end confdefs.h.  */
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10415
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10416
/* Override any GCC internal prototype to avoid an error.
10417
   Use char because int might match the return type of a GCC
10418
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10419
#ifdef __cplusplus
10420
extern "C"
10421
#endif
10422
char dlopen ();
10423
int
10424
main ()
10425
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10426
return dlopen ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10427
  ;
10428
  return 0;
10429
}
10430
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10431
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10432
  ac_cv_lib_dl_dlopen=yes
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10433
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10434
  ac_cv_lib_dl_dlopen=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10435
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10436
rm -f core conftest.err conftest.$ac_objext \
10437
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10438
LIBS=$ac_check_lib_save_LIBS
10439
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10441
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10442
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10443
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10444
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10445
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10446
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10447
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10448
  $as_echo_n "(cached) " >&6
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10449
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10450
  ac_check_lib_save_LIBS=$LIBS
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10451
LIBS="-lsvld  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10452
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10453
/* end confdefs.h.  */
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10454
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10455
/* Override any GCC internal prototype to avoid an error.
10456
   Use char because int might match the return type of a GCC
10457
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10458
#ifdef __cplusplus
10459
extern "C"
10460
#endif
10461
char dlopen ();
10462
int
10463
main ()
10464
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10465
return dlopen ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10466
  ;
10467
  return 0;
10468
}
10469
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10470
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10471
  ac_cv_lib_svld_dlopen=yes
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10472
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10473
  ac_cv_lib_svld_dlopen=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10474
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10475
rm -f core conftest.err conftest.$ac_objext \
10476
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10477
LIBS=$ac_check_lib_save_LIBS
10478
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10480
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10481
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10482
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10483
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10484
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10485
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10486
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10487
  $as_echo_n "(cached) " >&6
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10488
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10489
  ac_check_lib_save_LIBS=$LIBS
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10490
LIBS="-ldld  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10492
/* end confdefs.h.  */
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10493
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10494
/* Override any GCC internal prototype to avoid an error.
10495
   Use char because int might match the return type of a GCC
10496
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10497
#ifdef __cplusplus
10498
extern "C"
10499
#endif
10500
char dld_link ();
10501
int
10502
main ()
10503
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10504
return dld_link ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10505
  ;
10506
  return 0;
10507
}
10508
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10509
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10510
  ac_cv_lib_dld_dld_link=yes
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10511
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10512
  ac_cv_lib_dld_dld_link=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10513
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10514
rm -f core conftest.err conftest.$ac_objext \
10515
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10516
LIBS=$ac_check_lib_save_LIBS
10517
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10519
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10520
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10521
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10522
fi
10523
10524
10525
fi
10526
10527
10528
fi
10529
10530
10531
fi
10532
10533
10534
fi
10535
10536
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10537
fi
10538
10539
    ;;
10540
  esac
10541
10542
  if test "x$lt_cv_dlopen" != xno; then
10543
    enable_dlopen=yes
10544
  else
10545
    enable_dlopen=no
10546
  fi
10547
10548
  case $lt_cv_dlopen in
10549
  dlopen)
10550
    save_CPPFLAGS="$CPPFLAGS"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10551
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10552
10553
    save_LDFLAGS="$LDFLAGS"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10554
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10555
10556
    save_LIBS="$LIBS"
10557
    LIBS="$lt_cv_dlopen_libs $LIBS"
10558
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10559
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10560
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10561
if test "${lt_cv_dlopen_self+set}" = set; then :
10562
  $as_echo_n "(cached) " >&6
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10563
else
10564
  	  if test "$cross_compiling" = yes; then :
10565
  lt_cv_dlopen_self=cross
10566
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10567
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10568
  lt_status=$lt_dlunknown
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10569
  cat > conftest.$ac_ext <<_LT_EOF
10570
#line 10560 "configure"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10571
#include "confdefs.h"
10572
10573
#if HAVE_DLFCN_H
10574
#include <dlfcn.h>
10575
#endif
10576
10577
#include <stdio.h>
10578
10579
#ifdef RTLD_GLOBAL
10580
#  define LT_DLGLOBAL		RTLD_GLOBAL
10581
#else
10582
#  ifdef DL_GLOBAL
10583
#    define LT_DLGLOBAL		DL_GLOBAL
10584
#  else
10585
#    define LT_DLGLOBAL		0
10586
#  endif
10587
#endif
10588
10589
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10590
   find out it does not work in some platform. */
10591
#ifndef LT_DLLAZY_OR_NOW
10592
#  ifdef RTLD_LAZY
10593
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10594
#  else
10595
#    ifdef DL_LAZY
10596
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10597
#    else
10598
#      ifdef RTLD_NOW
10599
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10600
#      else
10601
#        ifdef DL_NOW
10602
#          define LT_DLLAZY_OR_NOW	DL_NOW
10603
#        else
10604
#          define LT_DLLAZY_OR_NOW	0
10605
#        endif
10606
#      endif
10607
#    endif
10608
#  endif
10609
#endif
10610
10611
void fnord() { int i=42;}
10612
int main ()
10613
{
10614
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10615
  int status = $lt_dlunknown;
10616
10617
  if (self)
10618
    {
10619
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10620
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10621
      /* dlclose (self); */
10622
    }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10623
  else
10624
    puts (dlerror ());
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10625
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10626
  return status;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10627
}
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10628
_LT_EOF
10629
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10630
  (eval $ac_link) 2>&5
10631
  ac_status=$?
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10632
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10633
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10634
    (./conftest; exit; ) >&5 2>/dev/null
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10635
    lt_status=$?
10636
    case x$lt_status in
10637
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10638
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10639
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10640
    esac
10641
  else :
10642
    # compilation failed
10643
    lt_cv_dlopen_self=no
10644
  fi
10645
fi
10646
rm -fr conftest*
10647
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10648
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10649
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10651
$as_echo "$lt_cv_dlopen_self" >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10652
10653
    if test "x$lt_cv_dlopen_self" = xyes; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10654
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10655
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10656
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10657
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10658
  $as_echo_n "(cached) " >&6
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10659
else
10660
  	  if test "$cross_compiling" = yes; then :
10661
  lt_cv_dlopen_self_static=cross
10662
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10663
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10664
  lt_status=$lt_dlunknown
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10665
  cat > conftest.$ac_ext <<_LT_EOF
10666
#line 10656 "configure"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10667
#include "confdefs.h"
10668
10669
#if HAVE_DLFCN_H
10670
#include <dlfcn.h>
10671
#endif
10672
10673
#include <stdio.h>
10674
10675
#ifdef RTLD_GLOBAL
10676
#  define LT_DLGLOBAL		RTLD_GLOBAL
10677
#else
10678
#  ifdef DL_GLOBAL
10679
#    define LT_DLGLOBAL		DL_GLOBAL
10680
#  else
10681
#    define LT_DLGLOBAL		0
10682
#  endif
10683
#endif
10684
10685
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10686
   find out it does not work in some platform. */
10687
#ifndef LT_DLLAZY_OR_NOW
10688
#  ifdef RTLD_LAZY
10689
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10690
#  else
10691
#    ifdef DL_LAZY
10692
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10693
#    else
10694
#      ifdef RTLD_NOW
10695
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10696
#      else
10697
#        ifdef DL_NOW
10698
#          define LT_DLLAZY_OR_NOW	DL_NOW
10699
#        else
10700
#          define LT_DLLAZY_OR_NOW	0
10701
#        endif
10702
#      endif
10703
#    endif
10704
#  endif
10705
#endif
10706
10707
void fnord() { int i=42;}
10708
int main ()
10709
{
10710
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10711
  int status = $lt_dlunknown;
10712
10713
  if (self)
10714
    {
10715
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10716
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10717
      /* dlclose (self); */
10718
    }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10719
  else
10720
    puts (dlerror ());
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10721
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10722
  return status;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10723
}
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10724
_LT_EOF
10725
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10726
  (eval $ac_link) 2>&5
10727
  ac_status=$?
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10728
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10729
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10730
    (./conftest; exit; ) >&5 2>/dev/null
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10731
    lt_status=$?
10732
    case x$lt_status in
10733
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10734
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
10735
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10736
    esac
10737
  else :
10738
    # compilation failed
10739
    lt_cv_dlopen_self_static=no
10740
  fi
10741
fi
10742
rm -fr conftest*
10743
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
10744
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10745
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10747
$as_echo "$lt_cv_dlopen_self_static" >&6; }
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
10748
    fi
10749
10750
    CPPFLAGS="$save_CPPFLAGS"
10751
    LDFLAGS="$save_LDFLAGS"
10752
    LIBS="$save_LIBS"
10753
    ;;
10754
  esac
10755
10756
  case $lt_cv_dlopen_self in
10757
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10758
  *) enable_dlopen_self=unknown ;;
10759
  esac
10760
10761
  case $lt_cv_dlopen_self_static in
10762
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10763
  *) enable_dlopen_self_static=unknown ;;
10764
  esac
10765
fi
10766
10767
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
striplib=
10784
old_striplib=
10785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10786
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10787
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10788
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10789
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10790
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10791
$as_echo "yes" >&6; }
10792
else
10793
# FIXME - insert some real tests, host_os isn't really good enough
10794
  case $host_os in
10795
  darwin*)
10796
    if test -n "$STRIP" ; then
10797
      striplib="$STRIP -x"
10798
      old_striplib="$STRIP -S"
10799
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10800
$as_echo "yes" >&6; }
10801
    else
10802
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803
$as_echo "no" >&6; }
10804
    fi
10805
    ;;
10806
  *)
10807
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808
$as_echo "no" >&6; }
10809
    ;;
10810
  esac
10811
fi
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
  # Report which library types will actually be built
10825
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10826
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10827
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10828
$as_echo "$can_build_shared" >&6; }
10829
10830
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10831
$as_echo_n "checking whether to build shared libraries... " >&6; }
10832
  test "$can_build_shared" = "no" && enable_shared=no
10833
10834
  # On AIX, shared libraries and static libraries use the same namespace, and
10835
  # are all built from PIC.
10836
  case $host_os in
10837
  aix3*)
10838
    test "$enable_shared" = yes && enable_static=no
10839
    if test -n "$RANLIB"; then
10840
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10841
      postinstall_cmds='$RANLIB $lib'
10842
    fi
10843
    ;;
10844
10845
  aix[4-9]*)
10846
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10847
      test "$enable_shared" = yes && enable_static=no
10848
    fi
10849
    ;;
10850
  esac
10851
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10852
$as_echo "$enable_shared" >&6; }
10853
10854
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10855
$as_echo_n "checking whether to build static libraries... " >&6; }
10856
  # Make sure either enable_shared or enable_static is yes.
10857
  test "$enable_shared" = yes || enable_static=yes
10858
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10859
$as_echo "$enable_static" >&6; }
10860
10861
10862
10863
10864
fi
10865
ac_ext=c
10866
ac_cpp='$CPP $CPPFLAGS'
10867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10870
10871
CC="$lt_save_CC"
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
        ac_config_commands="$ac_config_commands libtool"
10886
10887
10888
10889
10890
# Only expand once:
10891
10892
10893
10894
10895
10896
10897
        # Find any Python interpreter.
10898
    if test -z "$PYTHON"; then
10899
      for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
10900
do
10901
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10902
set dummy $ac_prog; ac_word=$2
10903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10904
$as_echo_n "checking for $ac_word... " >&6; }
10905
if test "${ac_cv_path_PYTHON+set}" = set; then :
10906
  $as_echo_n "(cached) " >&6
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
10907
else
10908
  case $PYTHON in
10909
  [\\/]* | ?:[\\/]*)
10910
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10911
  ;;
10912
  *)
10913
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914
for as_dir in $PATH
10915
do
10916
  IFS=$as_save_IFS
10917
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10918
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
10919
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10920
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10921
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
10922
    break 2
10923
  fi
10924
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10925
  done
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
10926
IFS=$as_save_IFS
10927
10928
  ;;
10929
esac
10930
fi
10931
PYTHON=$ac_cv_path_PYTHON
10932
if test -n "$PYTHON"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10933
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10934
$as_echo "$PYTHON" >&6; }
10935
else
10936
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937
$as_echo "no" >&6; }
10938
fi
10939
10940
10941
  test -n "$PYTHON" && break
10942
done
10943
test -n "$PYTHON" || PYTHON=":"
10944
10945
    fi
10946
    am_display_PYTHON=python
10947
10948
10949
  if test "$PYTHON" = :; then
10950
      as_fn_error "no suitable Python interpreter found" "$LINENO" 5
10951
  else
10952
10953
10954
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
10955
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
10956
if test "${am_cv_python_version+set}" = set; then :
10957
  $as_echo_n "(cached) " >&6
10958
else
10959
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
10960
fi
10961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
10962
$as_echo "$am_cv_python_version" >&6; }
10963
  PYTHON_VERSION=$am_cv_python_version
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
10964
10965
10966
10967
  PYTHON_PREFIX='${prefix}'
10968
10969
  PYTHON_EXEC_PREFIX='${exec_prefix}'
10970
10971
10972
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
10973
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
10974
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
10975
if test "${am_cv_python_platform+set}" = set; then :
10976
  $as_echo_n "(cached) " >&6
10977
else
10978
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
10979
fi
10980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
10981
$as_echo "$am_cv_python_platform" >&6; }
10982
  PYTHON_PLATFORM=$am_cv_python_platform
10983
10984
10985
10986
10987
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
10988
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
10989
if test "${am_cv_python_pythondir+set}" = set; then :
10990
  $as_echo_n "(cached) " >&6
10991
else
10992
  if test "x$prefix" = xNONE
10993
     then
10994
       am_py_prefix=$ac_default_prefix
10995
     else
10996
       am_py_prefix=$prefix
10997
     fi
10998
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
10999
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
11000
     case $am_cv_python_pythondir in
11001
     $am_py_prefix*)
11002
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
11003
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
11004
       ;;
11005
     *)
11006
       case $am_py_prefix in
11007
         /usr|/System*) ;;
11008
         *)
11009
	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
11010
	  ;;
11011
       esac
11012
       ;;
11013
     esac
11014
11015
fi
11016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
11017
$as_echo "$am_cv_python_pythondir" >&6; }
11018
  pythondir=$am_cv_python_pythondir
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
11019
11020
11021
11022
  pkgpythondir=\${pythondir}/$PACKAGE
11023
11024
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11025
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
11026
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
11027
if test "${am_cv_python_pyexecdir+set}" = set; then :
11028
  $as_echo_n "(cached) " >&6
11029
else
11030
  if test "x$exec_prefix" = xNONE
11031
     then
11032
       am_py_exec_prefix=$am_py_prefix
11033
     else
11034
       am_py_exec_prefix=$exec_prefix
11035
     fi
11036
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
11037
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
11038
     case $am_cv_python_pyexecdir in
11039
     $am_py_exec_prefix*)
11040
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
11041
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
11042
       ;;
11043
     *)
11044
       case $am_py_exec_prefix in
11045
         /usr|/System*) ;;
11046
         *)
11047
	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
11048
	   ;;
11049
       esac
11050
       ;;
11051
     esac
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
11052
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11053
fi
11054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
11055
$as_echo "$am_cv_python_pyexecdir" >&6; }
11056
  pyexecdir=$am_cv_python_pyexecdir
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
11057
11058
11059
11060
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
11061
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11062
11063
11064
  fi
11065
11066
11067
 if test "$PYTHON" != ""; then
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
11068
  HAVE_PYTHON_TRUE=
11069
  HAVE_PYTHON_FALSE='#'
11070
else
11071
  HAVE_PYTHON_TRUE='#'
11072
  HAVE_PYTHON_FALSE=
11073
fi
11074
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11075
11076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11077
$as_echo_n "checking for ANSI C header files... " >&6; }
11078
if test "${ac_cv_header_stdc+set}" = set; then :
11079
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11080
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11081
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11082
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11083
#include <stdlib.h>
11084
#include <stdarg.h>
11085
#include <string.h>
11086
#include <float.h>
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11087
11088
int
11089
main ()
11090
{
11091
11092
  ;
11093
  return 0;
11094
}
11095
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11096
if ac_fn_c_try_compile "$LINENO"; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11097
  ac_cv_header_stdc=yes
11098
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11099
  ac_cv_header_stdc=no
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11100
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11102
11103
if test $ac_cv_header_stdc = yes; then
11104
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11105
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11106
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11107
#include <string.h>
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11108
11109
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11110
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11111
  $EGREP "memchr" >/dev/null 2>&1; then :
11112
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11113
else
11114
  ac_cv_header_stdc=no
11115
fi
11116
rm -f conftest*
11117
11118
fi
11119
11120
if test $ac_cv_header_stdc = yes; then
11121
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11122
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11123
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11124
#include <stdlib.h>
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11125
11126
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11127
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11128
  $EGREP "free" >/dev/null 2>&1; then :
11129
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11130
else
11131
  ac_cv_header_stdc=no
11132
fi
11133
rm -f conftest*
11134
11135
fi
11136
11137
if test $ac_cv_header_stdc = yes; then
11138
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11139
  if test "$cross_compiling" = yes; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11140
  :
11141
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11142
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11143
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11144
#include <ctype.h>
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11145
#include <stdlib.h>
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11146
#if ((' ' & 0x0FF) == 0x020)
11147
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11148
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11149
#else
11150
# define ISLOWER(c) \
11151
		   (('a' <= (c) && (c) <= 'i') \
11152
		     || ('j' <= (c) && (c) <= 'r') \
11153
		     || ('s' <= (c) && (c) <= 'z'))
11154
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11155
#endif
11156
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11157
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11158
int
11159
main ()
11160
{
11161
  int i;
11162
  for (i = 0; i < 256; i++)
11163
    if (XOR (islower (i), ISLOWER (i))
11164
	|| toupper (i) != TOUPPER (i))
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11165
      return 2;
11166
  return 0;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11167
}
11168
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11169
if ac_fn_c_try_run "$LINENO"; then :
11170
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11171
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11172
  ac_cv_header_stdc=no
11173
fi
11174
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11175
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11176
fi
11177
11178
fi
11179
fi
11180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11181
$as_echo "$ac_cv_header_stdc" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11182
if test $ac_cv_header_stdc = yes; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11183
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11184
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11185
11186
fi
11187
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11189
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11190
if test "${ac_cv_header_time+set}" = set; then :
11191
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11192
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11193
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11194
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11195
#include <sys/types.h>
11196
#include <sys/time.h>
11197
#include <time.h>
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11198
11199
int
11200
main ()
11201
{
11202
if ((struct tm *) 0)
11203
return 0;
11204
  ;
11205
  return 0;
11206
}
11207
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11208
if ac_fn_c_try_compile "$LINENO"; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11209
  ac_cv_header_time=yes
11210
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11211
  ac_cv_header_time=no
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11212
fi
11213
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11216
$as_echo "$ac_cv_header_time" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11217
if test $ac_cv_header_time = yes; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11218
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11219
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11220
11221
fi
11222
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11223
for ac_header in fcntl.h limits.h sys/ioctl.h sys/time.h syslog.h unistd.h
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11224
do :
11225
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11226
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11227
eval as_val=\$$as_ac_Header
11228
   if test "x$as_val" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11229
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11230
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11231
_ACEOF
11232
11233
fi
11234
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11235
done
11236
11237
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11238
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11239
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11240
if test "${ac_cv_c_const+set}" = set; then :
11241
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11242
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11243
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11244
/* end confdefs.h.  */
11245
11246
int
11247
main ()
11248
{
11249
/* FIXME: Include the comments suggested by Paul. */
11250
#ifndef __cplusplus
11251
  /* Ultrix mips cc rejects this.  */
11252
  typedef int charset[2];
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11253
  const charset cs;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11254
  /* SunOS 4.1.1 cc rejects this.  */
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11255
  char const *const *pcpcc;
11256
  char **ppc;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11257
  /* NEC SVR4.0.2 mips cc rejects this.  */
11258
  struct point {int x, y;};
11259
  static struct point const zero = {0,0};
11260
  /* AIX XL C 1.02.0.0 rejects this.
11261
     It does not let you subtract one const X* pointer from another in
11262
     an arm of an if-expression whose if-part is not a constant
11263
     expression */
11264
  const char *g = "string";
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11265
  pcpcc = &g + (g ? g-g : 0);
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11266
  /* HPUX 7.0 cc rejects these. */
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11267
  ++pcpcc;
11268
  ppc = (char**) pcpcc;
11269
  pcpcc = (char const *const *) ppc;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11270
  { /* SCO 3.2v4 cc rejects this.  */
11271
    char *t;
11272
    char const *s = 0 ? (char *) 0 : (char const *) 0;
11273
11274
    *t++ = 0;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11275
    if (s) return 0;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11276
  }
11277
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11278
    int x[] = {25, 17};
11279
    const int *foo = &x[0];
11280
    ++foo;
11281
  }
11282
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11283
    typedef const int *iptr;
11284
    iptr p = 0;
11285
    ++p;
11286
  }
11287
  { /* AIX XL C 1.02.0.0 rejects this saying
11288
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11289
    struct s { int j; const int *ap[3]; };
11290
    struct s *b; b->j = 5;
11291
  }
11292
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11293
    const int foo = 10;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11294
    if (!foo) return 0;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11295
  }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11296
  return !cs[0] && !zero.x;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11297
#endif
11298
11299
  ;
11300
  return 0;
11301
}
11302
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11303
if ac_fn_c_try_compile "$LINENO"; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11304
  ac_cv_c_const=yes
11305
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11306
  ac_cv_c_const=no
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11307
fi
11308
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11309
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11311
$as_echo "$ac_cv_c_const" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11312
if test $ac_cv_c_const = no; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11313
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11314
$as_echo "#define const /**/" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11315
11316
fi
11317
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11319
$as_echo_n "checking for inline... " >&6; }
11320
if test "${ac_cv_c_inline+set}" = set; then :
11321
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11322
else
11323
  ac_cv_c_inline=no
11324
for ac_kw in inline __inline__ __inline; do
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11325
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11326
/* end confdefs.h.  */
11327
#ifndef __cplusplus
11328
typedef int foo_t;
11329
static $ac_kw foo_t static_foo () {return 0; }
11330
$ac_kw foo_t foo () {return 0; }
11331
#endif
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11332
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11333
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11334
if ac_fn_c_try_compile "$LINENO"; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11335
  ac_cv_c_inline=$ac_kw
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11336
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11337
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11338
  test "$ac_cv_c_inline" != no && break
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11339
done
11340
11341
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11343
$as_echo "$ac_cv_c_inline" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11344
11345
case $ac_cv_c_inline in
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11346
  inline | yes) ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11347
  *)
11348
    case $ac_cv_c_inline in
11349
      no) ac_val=;;
11350
      *) ac_val=$ac_cv_c_inline;;
11351
    esac
11352
    cat >>confdefs.h <<_ACEOF
11353
#ifndef __cplusplus
11354
#define inline $ac_val
11355
#endif
11356
_ACEOF
11357
    ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11358
esac
11359
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11360
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11361
if test "x$ac_cv_type_off_t" = x""yes; then :
11362
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11363
else
11364
11365
cat >>confdefs.h <<_ACEOF
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11366
#define off_t long int
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11367
_ACEOF
11368
11369
fi
11370
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11371
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11372
if test "x$ac_cv_type_pid_t" = x""yes; then :
11373
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11374
else
11375
11376
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11377
#define pid_t int
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11378
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11379
11380
fi
11381
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11382
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11383
if test "x$ac_cv_type_size_t" = x""yes; then :
11384
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11385
else
11386
11387
cat >>confdefs.h <<_ACEOF
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11388
#define size_t unsigned int
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11389
_ACEOF
11390
11391
fi
11392
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11394
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11395
if test "${ac_cv_struct_tm+set}" = set; then :
11396
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11397
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11398
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11399
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11400
#include <sys/types.h>
11401
#include <time.h>
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11402
11403
int
11404
main ()
11405
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11406
struct tm tm;
11407
				     int *p = &tm.tm_sec;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11408
				     return !p;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11409
  ;
11410
  return 0;
11411
}
11412
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11413
if ac_fn_c_try_compile "$LINENO"; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11414
  ac_cv_struct_tm=time.h
11415
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11416
  ac_cv_struct_tm=sys/time.h
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11417
fi
11418
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11421
$as_echo "$ac_cv_struct_tm" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11422
if test $ac_cv_struct_tm = sys/time.h; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11423
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11424
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11425
11426
fi
11427
11428
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11430
$as_echo_n "checking return type of signal handlers... " >&6; }
11431
if test "${ac_cv_type_signal+set}" = set; then :
11432
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11433
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11434
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11435
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11436
#include <sys/types.h>
11437
#include <signal.h>
11438
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11439
int
11440
main ()
11441
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11442
return *(signal (0, 0)) (0) == 1;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11443
  ;
11444
  return 0;
11445
}
11446
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11447
if ac_fn_c_try_compile "$LINENO"; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11448
  ac_cv_type_signal=int
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11449
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11450
  ac_cv_type_signal=void
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11451
fi
11452
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11453
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11455
$as_echo "$ac_cv_type_signal" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11456
11457
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11458
#define RETSIGTYPE $ac_cv_type_signal
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11459
_ACEOF
11460
11461
11462
for ac_func in vprintf
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11463
do :
11464
  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
11465
if test "x$ac_cv_func_vprintf" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11466
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11467
#define HAVE_VPRINTF 1
11468
_ACEOF
11469
11470
ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
11471
if test "x$ac_cv_func__doprnt" = x""yes; then :
11472
11473
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11474
11475
fi
11476
11477
fi
11478
done
11479
11480
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11481
for ac_func in gethostname gettimeofday mkfifo select socket strdup \
11482
	strerror strtoul snprintf strsep vsyslog
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11483
do :
11484
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11485
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11486
eval as_val=\$$as_ac_var
11487
   if test "x$as_val" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11488
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11489
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11490
_ACEOF
11491
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11492
fi
11493
done
11494
11495
11496
forkpty=""
11497
for ac_func in forkpty
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11498
do :
11499
  ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
11500
if test "x$ac_cv_func_forkpty" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11501
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11502
#define HAVE_FORKPTY 1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11503
_ACEOF
11504
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11505
fi
11506
done
11507
11508
if test "$ac_cv_func_forkpty" != yes; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11509
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
11510
$as_echo_n "checking for forkpty in -lutil... " >&6; }
11511
if test "${ac_cv_lib_util_forkpty+set}" = set; then :
11512
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11513
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11514
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11515
LIBS="-lutil  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11516
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11517
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11518
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11519
/* Override any GCC internal prototype to avoid an error.
11520
   Use char because int might match the return type of a GCC
11521
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11522
#ifdef __cplusplus
11523
extern "C"
11524
#endif
11525
char forkpty ();
11526
int
11527
main ()
11528
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11529
return forkpty ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11530
  ;
11531
  return 0;
11532
}
11533
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11534
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11535
  ac_cv_lib_util_forkpty=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11536
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11537
  ac_cv_lib_util_forkpty=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11538
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11539
rm -f core conftest.err conftest.$ac_objext \
11540
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11541
LIBS=$ac_check_lib_save_LIBS
11542
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
11544
$as_echo "$ac_cv_lib_util_forkpty" >&6; }
11545
if test "x$ac_cv_lib_util_forkpty" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11546
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
11547
    forkpty="-lutil"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11548
    $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11549
11550
fi
11551
11552
fi
11553
11554
vga_progs=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11555
ac_fn_c_check_header_mongrel "$LINENO" "vga.h" "ac_cv_header_vga_h" "$ac_includes_default"
11556
if test "x$ac_cv_header_vga_h" = x""yes; then :
11557
  ac_fn_c_check_header_mongrel "$LINENO" "vgagl.h" "ac_cv_header_vgagl_h" "$ac_includes_default"
11558
if test "x$ac_cv_header_vgagl_h" = x""yes; then :
11559
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vga_init in -lvga" >&5
11560
$as_echo_n "checking for vga_init in -lvga... " >&6; }
11561
if test "${ac_cv_lib_vga_vga_init+set}" = set; then :
11562
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11563
else
11564
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11565
LIBS="-lvga  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11566
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11567
/* end confdefs.h.  */
11568
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11569
/* Override any GCC internal prototype to avoid an error.
11570
   Use char because int might match the return type of a GCC
11571
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11572
#ifdef __cplusplus
11573
extern "C"
11574
#endif
11575
char vga_init ();
11576
int
11577
main ()
11578
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11579
return vga_init ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11580
  ;
11581
  return 0;
11582
}
11583
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11584
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11585
  ac_cv_lib_vga_vga_init=yes
11586
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11587
  ac_cv_lib_vga_vga_init=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11588
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11589
rm -f core conftest.err conftest.$ac_objext \
11590
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11591
LIBS=$ac_check_lib_save_LIBS
11592
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vga_vga_init" >&5
11594
$as_echo "$ac_cv_lib_vga_vga_init" >&6; }
11595
if test "x$ac_cv_lib_vga_vga_init" = x""yes; then :
11596
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gl_setcontextvga in -lvgagl" >&5
11597
$as_echo_n "checking for gl_setcontextvga in -lvgagl... " >&6; }
11598
if test "${ac_cv_lib_vgagl_gl_setcontextvga+set}" = set; then :
11599
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11600
else
11601
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11602
LIBS="-lvgagl -lvga
11603
       $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11604
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11605
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11606
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11607
/* Override any GCC internal prototype to avoid an error.
11608
   Use char because int might match the return type of a GCC
11609
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11610
#ifdef __cplusplus
11611
extern "C"
11612
#endif
11613
char gl_setcontextvga ();
11614
int
11615
main ()
11616
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11617
return gl_setcontextvga ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11618
  ;
11619
  return 0;
11620
}
11621
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11622
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11623
  ac_cv_lib_vgagl_gl_setcontextvga=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11624
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11625
  ac_cv_lib_vgagl_gl_setcontextvga=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11626
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11627
rm -f core conftest.err conftest.$ac_objext \
11628
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11629
LIBS=$ac_check_lib_save_LIBS
11630
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vgagl_gl_setcontextvga" >&5
11632
$as_echo "$ac_cv_lib_vgagl_gl_setcontextvga" >&6; }
11633
if test "x$ac_cv_lib_vgagl_gl_setcontextvga" = x""yes; then :
11634
  $as_echo "#define HAVE_LIBVGA 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11635
11636
        vga_progs=smode2
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11637
fi
11638
11639
11640
fi
11641
11642
11643
fi
11644
11645
11646
11647
fi
11648
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11649
11650
x_progs="irxevent xmode2"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11652
$as_echo_n "checking for X... " >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11653
11654
11655
# Check whether --with-x was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11656
if test "${with_x+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11657
  withval=$with_x;
11658
fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11659
11660
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11661
if test "x$with_x" = xno; then
11662
  # The user explicitly disabled X.
11663
  have_x=disabled
11664
else
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11665
  case $x_includes,$x_libraries in #(
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11666
    *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
11667
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
11668
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11669
else
11670
  # One or both of the vars are not set, and there is no cached value.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11671
ac_x_includes=no ac_x_libraries=no
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11672
rm -f -r conftest.dir
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11673
if mkdir conftest.dir; then
11674
  cd conftest.dir
11675
  cat >Imakefile <<'_ACEOF'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11676
incroot:
11677
	@echo incroot='${INCROOT}'
11678
usrlibdir:
11679
	@echo usrlibdir='${USRLIBDIR}'
11680
libdir:
11681
	@echo libdir='${LIBDIR}'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11682
_ACEOF
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11683
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11684
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11685
    for ac_var in incroot usrlibdir libdir; do
11686
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11687
    done
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11688
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11689
    for ac_extension in a so sl dylib la dll; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11690
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11691
	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11692
	ac_im_usrlibdir=$ac_im_libdir; break
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11693
      fi
11694
    done
11695
    # Screen out bogus values from the imake configuration.  They are
11696
    # bogus both because they are the default anyway, and because
11697
    # using them would break gcc on systems where it needs fixed includes.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11698
    case $ac_im_incroot in
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11699
	/usr/include) ac_x_includes= ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11700
	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11701
    esac
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11702
    case $ac_im_usrlibdir in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11703
	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11704
	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11705
    esac
11706
  fi
11707
  cd ..
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11708
  rm -f -r conftest.dir
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11709
fi
11710
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11711
# Standard set of common directories for X headers.
11712
# Check X11 before X11Rn because it is often a symlink to the current release.
11713
ac_x_header_dirs='
11714
/usr/X11/include
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11715
/usr/X11R7/include
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11716
/usr/X11R6/include
11717
/usr/X11R5/include
11718
/usr/X11R4/include
11719
11720
/usr/include/X11
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11721
/usr/include/X11R7
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11722
/usr/include/X11R6
11723
/usr/include/X11R5
11724
/usr/include/X11R4
11725
11726
/usr/local/X11/include
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11727
/usr/local/X11R7/include
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11728
/usr/local/X11R6/include
11729
/usr/local/X11R5/include
11730
/usr/local/X11R4/include
11731
11732
/usr/local/include/X11
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11733
/usr/local/include/X11R7
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11734
/usr/local/include/X11R6
11735
/usr/local/include/X11R5
11736
/usr/local/include/X11R4
11737
11738
/usr/X386/include
11739
/usr/x386/include
11740
/usr/XFree86/include/X11
11741
11742
/usr/include
11743
/usr/local/include
11744
/usr/unsupported/include
11745
/usr/athena/include
11746
/usr/local/x11r5/include
11747
/usr/lpp/Xamples/include
11748
11749
/usr/openwin/include
11750
/usr/openwin/share/include'
11751
11752
if test "$ac_x_includes" = no; then
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11753
  # Guess where to find include files, by looking for Xlib.h.
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11754
  # First, try using that file with no special directory specified.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11755
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11756
/* end confdefs.h.  */
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11757
#include <X11/Xlib.h>
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11758
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11759
if ac_fn_c_try_cpp "$LINENO"; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11760
  # We can compile using X headers with no special include directory.
11761
ac_x_includes=
11762
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11763
  for ac_dir in $ac_x_header_dirs; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11764
  if test -r "$ac_dir/X11/Xlib.h"; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11765
    ac_x_includes=$ac_dir
11766
    break
11767
  fi
11768
done
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11769
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11770
rm -f conftest.err conftest.$ac_ext
11771
fi # $ac_x_includes = no
11772
11773
if test "$ac_x_libraries" = no; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11774
  # Check for the libraries.
11775
  # See if we find them without any special options.
11776
  # Don't add to $LIBS permanently.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11777
  ac_save_LIBS=$LIBS
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11778
  LIBS="-lX11 $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11779
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11780
/* end confdefs.h.  */
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11781
#include <X11/Xlib.h>
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11782
int
11783
main ()
11784
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11785
XrmInitialize ()
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11786
  ;
11787
  return 0;
11788
}
11789
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11790
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11791
  LIBS=$ac_save_LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11792
# We can link X programs with no special library path.
11793
ac_x_libraries=
11794
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11795
  LIBS=$ac_save_LIBS
11796
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11797
do
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11798
  # Don't even attempt the hair of trying to link an X program!
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11799
  for ac_extension in a so sl dylib la dll; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11800
    if test -r "$ac_dir/libX11.$ac_extension"; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11801
      ac_x_libraries=$ac_dir
11802
      break 2
11803
    fi
11804
  done
11805
done
11806
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11807
rm -f core conftest.err conftest.$ac_objext \
11808
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11809
fi # $ac_x_libraries = no
11810
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11811
case $ac_x_includes,$ac_x_libraries in #(
11812
  no,* | *,no | *\'*)
11813
    # Didn't find X, or a directory has "'" in its name.
11814
    ac_cv_have_x="have_x=no";; #(
11815
  *)
11816
    # Record where we found X for the cache.
11817
    ac_cv_have_x="have_x=yes\
11818
	ac_x_includes='$ac_x_includes'\
11819
	ac_x_libraries='$ac_x_libraries'"
11820
esac
11821
fi
11822
;; #(
11823
    *) have_x=yes;;
11824
  esac
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11825
  eval "$ac_cv_have_x"
11826
fi # $with_x != no
11827
11828
if test "$have_x" != yes; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11829
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11830
$as_echo "$have_x" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11831
  no_x=yes
11832
else
11833
  # If each of the values was on the command line, it overrides each guess.
11834
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11835
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11836
  # Update the cache value to reflect the command line values.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11837
  ac_cv_have_x="have_x=yes\
11838
	ac_x_includes='$x_includes'\
11839
	ac_x_libraries='$x_libraries'"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11840
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11841
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11842
fi
11843
11844
if test "$no_x" = yes; then
11845
  # Not all programs may use this symbol, but it does not hurt to define it.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11846
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11847
$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11848
11849
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11850
else
11851
  if test -n "$x_includes"; then
11852
    X_CFLAGS="$X_CFLAGS -I$x_includes"
11853
  fi
11854
11855
  # It would also be nice to do this for all -L options, not just this one.
11856
  if test -n "$x_libraries"; then
11857
    X_LIBS="$X_LIBS -L$x_libraries"
11858
    # For Solaris; some versions of Sun CC require a space after -R and
11859
    # others require no space.  Words are not sufficient . . . .
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11860
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
11861
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11862
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11863
    ac_xsave_c_werror_flag=$ac_c_werror_flag
11864
    ac_c_werror_flag=yes
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11865
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11866
/* end confdefs.h.  */
11867
11868
int
11869
main ()
11870
{
11871
11872
  ;
11873
  return 0;
11874
}
11875
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11876
if ac_fn_c_try_link "$LINENO"; then :
11877
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878
$as_echo "no" >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11879
       X_LIBS="$X_LIBS -R$x_libraries"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11880
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11881
  LIBS="$ac_xsave_LIBS -R $x_libraries"
11882
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11883
/* end confdefs.h.  */
11884
11885
int
11886
main ()
11887
{
11888
11889
  ;
11890
  return 0;
11891
}
11892
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11893
if ac_fn_c_try_link "$LINENO"; then :
11894
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11895
$as_echo "yes" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11896
	  X_LIBS="$X_LIBS -R $x_libraries"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11897
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11898
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
11899
$as_echo "neither works" >&6; }
11900
fi
11901
rm -f core conftest.err conftest.$ac_objext \
11902
    conftest$ac_exeext conftest.$ac_ext
11903
fi
11904
rm -f core conftest.err conftest.$ac_objext \
11905
    conftest$ac_exeext conftest.$ac_ext
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11906
    ac_c_werror_flag=$ac_xsave_c_werror_flag
11907
    LIBS=$ac_xsave_LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11908
  fi
11909
11910
  # Check for system-dependent libraries X programs must link with.
11911
  # Do this before checking for the system-independent R6 libraries
11912
  # (-lICE), since we may need -lsocket or whatever for X linking.
11913
11914
  if test "$ISC" = yes; then
11915
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11916
  else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11917
    # Martyn Johnson says this is needed for Ultrix, if the X
11918
    # libraries were built with DECnet support.  And Karl Berry says
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11919
    # the Alpha needs dnet_stub (dnet does not exist).
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11920
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11921
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11922
/* end confdefs.h.  */
11923
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11924
/* Override any GCC internal prototype to avoid an error.
11925
   Use char because int might match the return type of a GCC
11926
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11927
#ifdef __cplusplus
11928
extern "C"
11929
#endif
11930
char XOpenDisplay ();
11931
int
11932
main ()
11933
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11934
return XOpenDisplay ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11935
  ;
11936
  return 0;
11937
}
11938
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11939
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11940
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11941
else
11942
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
11943
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11944
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
11945
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11946
else
11947
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11948
LIBS="-ldnet  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11949
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11950
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11951
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11952
/* Override any GCC internal prototype to avoid an error.
11953
   Use char because int might match the return type of a GCC
11954
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11955
#ifdef __cplusplus
11956
extern "C"
11957
#endif
11958
char dnet_ntoa ();
11959
int
11960
main ()
11961
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11962
return dnet_ntoa ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11963
  ;
11964
  return 0;
11965
}
11966
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11967
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11968
  ac_cv_lib_dnet_dnet_ntoa=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11969
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11970
  ac_cv_lib_dnet_dnet_ntoa=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11971
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11972
rm -f core conftest.err conftest.$ac_objext \
11973
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11974
LIBS=$ac_check_lib_save_LIBS
11975
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11977
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11978
if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11979
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11980
fi
11981
11982
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11983
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
11984
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
11985
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
11986
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11987
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11988
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11989
LIBS="-ldnet_stub  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
11990
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11991
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
11992
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
11993
/* Override any GCC internal prototype to avoid an error.
11994
   Use char because int might match the return type of a GCC
11995
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
11996
#ifdef __cplusplus
11997
extern "C"
11998
#endif
11999
char dnet_ntoa ();
12000
int
12001
main ()
12002
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12003
return dnet_ntoa ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12004
  ;
12005
  return 0;
12006
}
12007
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12008
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12009
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12010
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12011
  ac_cv_lib_dnet_stub_dnet_ntoa=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12012
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12013
rm -f core conftest.err conftest.$ac_objext \
12014
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12015
LIBS=$ac_check_lib_save_LIBS
12016
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12017
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12018
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12019
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12020
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12021
fi
12022
12023
    fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12024
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12025
rm -f core conftest.err conftest.$ac_objext \
12026
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12027
    LIBS="$ac_xsave_LIBS"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12028
12029
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12030
    # to get the SysV transport functions.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12031
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12032
    # needs -lnsl.
12033
    # The nsl library prevents programs from opening the X display
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12034
    # on Irix 5.2, according to T.E. Dickey.
12035
    # The functions gethostbyname, getservbyname, and inet_addr are
12036
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12037
    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12038
if test "x$ac_cv_func_gethostbyname" = x""yes; then :
12039
12040
fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12041
12042
    if test $ac_cv_func_gethostbyname = no; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12043
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12044
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12045
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
12046
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12047
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12048
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12049
LIBS="-lnsl  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12050
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12051
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12052
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12053
/* Override any GCC internal prototype to avoid an error.
12054
   Use char because int might match the return type of a GCC
12055
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12056
#ifdef __cplusplus
12057
extern "C"
12058
#endif
12059
char gethostbyname ();
12060
int
12061
main ()
12062
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12063
return gethostbyname ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12064
  ;
12065
  return 0;
12066
}
12067
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12068
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12069
  ac_cv_lib_nsl_gethostbyname=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12070
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12071
  ac_cv_lib_nsl_gethostbyname=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12072
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12073
rm -f core conftest.err conftest.$ac_objext \
12074
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12075
LIBS=$ac_check_lib_save_LIBS
12076
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12078
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12079
if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12080
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12081
fi
12082
12083
      if test $ac_cv_lib_nsl_gethostbyname = no; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12084
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
12085
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12086
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
12087
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12088
else
12089
  ac_check_lib_save_LIBS=$LIBS
12090
LIBS="-lbsd  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12091
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12092
/* end confdefs.h.  */
12093
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12094
/* Override any GCC internal prototype to avoid an error.
12095
   Use char because int might match the return type of a GCC
12096
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12097
#ifdef __cplusplus
12098
extern "C"
12099
#endif
12100
char gethostbyname ();
12101
int
12102
main ()
12103
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12104
return gethostbyname ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12105
  ;
12106
  return 0;
12107
}
12108
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12109
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12110
  ac_cv_lib_bsd_gethostbyname=yes
12111
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12112
  ac_cv_lib_bsd_gethostbyname=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12113
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12114
rm -f core conftest.err conftest.$ac_objext \
12115
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12116
LIBS=$ac_check_lib_save_LIBS
12117
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
12119
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12120
if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12121
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12122
fi
12123
12124
      fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12125
    fi
12126
12127
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
12128
    # socket/setsockopt and other routines are undefined under SCO ODT
12129
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12130
    # on later versions), says Simon Leinen: it contains gethostby*
12131
    # variants that don't use the name server (or something).  -lsocket
12132
    # must be given before -lnsl if both are needed.  We assume that
12133
    # if connect needs -lnsl, so does gethostbyname.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12134
    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
12135
if test "x$ac_cv_func_connect" = x""yes; then :
12136
12137
fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12138
12139
    if test $ac_cv_func_connect = no; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12140
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12141
$as_echo_n "checking for connect in -lsocket... " >&6; }
12142
if test "${ac_cv_lib_socket_connect+set}" = set; then :
12143
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12144
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12145
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12146
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12147
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12148
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12149
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12150
/* Override any GCC internal prototype to avoid an error.
12151
   Use char because int might match the return type of a GCC
12152
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12153
#ifdef __cplusplus
12154
extern "C"
12155
#endif
12156
char connect ();
12157
int
12158
main ()
12159
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12160
return connect ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12161
  ;
12162
  return 0;
12163
}
12164
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12165
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12166
  ac_cv_lib_socket_connect=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12167
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12168
  ac_cv_lib_socket_connect=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12169
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12170
rm -f core conftest.err conftest.$ac_objext \
12171
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12172
LIBS=$ac_check_lib_save_LIBS
12173
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12175
$as_echo "$ac_cv_lib_socket_connect" >&6; }
12176
if test "x$ac_cv_lib_socket_connect" = x""yes; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12177
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12178
fi
12179
12180
    fi
12181
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12182
    # Guillermo Gomez says -lposix is necessary on A/UX.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12183
    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
12184
if test "x$ac_cv_func_remove" = x""yes; then :
12185
12186
fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12187
12188
    if test $ac_cv_func_remove = no; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12189
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
12190
$as_echo_n "checking for remove in -lposix... " >&6; }
12191
if test "${ac_cv_lib_posix_remove+set}" = set; then :
12192
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12193
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12194
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12195
LIBS="-lposix  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12196
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12197
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12198
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12199
/* Override any GCC internal prototype to avoid an error.
12200
   Use char because int might match the return type of a GCC
12201
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12202
#ifdef __cplusplus
12203
extern "C"
12204
#endif
12205
char remove ();
12206
int
12207
main ()
12208
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12209
return remove ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12210
  ;
12211
  return 0;
12212
}
12213
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12214
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12215
  ac_cv_lib_posix_remove=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12216
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12217
  ac_cv_lib_posix_remove=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12218
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12219
rm -f core conftest.err conftest.$ac_objext \
12220
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12221
LIBS=$ac_check_lib_save_LIBS
12222
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
12224
$as_echo "$ac_cv_lib_posix_remove" >&6; }
12225
if test "x$ac_cv_lib_posix_remove" = x""yes; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12226
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12227
fi
12228
12229
    fi
12230
12231
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12232
    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
12233
if test "x$ac_cv_func_shmat" = x""yes; then :
12234
12235
fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12236
12237
    if test $ac_cv_func_shmat = no; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12238
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
12239
$as_echo_n "checking for shmat in -lipc... " >&6; }
12240
if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
12241
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12242
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12243
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12244
LIBS="-lipc  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12245
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12246
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12247
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12248
/* Override any GCC internal prototype to avoid an error.
12249
   Use char because int might match the return type of a GCC
12250
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12251
#ifdef __cplusplus
12252
extern "C"
12253
#endif
12254
char shmat ();
12255
int
12256
main ()
12257
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12258
return shmat ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12259
  ;
12260
  return 0;
12261
}
12262
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12263
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12264
  ac_cv_lib_ipc_shmat=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12265
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12266
  ac_cv_lib_ipc_shmat=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12267
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12268
rm -f core conftest.err conftest.$ac_objext \
12269
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12270
LIBS=$ac_check_lib_save_LIBS
12271
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
12273
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
12274
if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12275
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12276
fi
12277
12278
    fi
12279
  fi
12280
12281
  # Check for libraries that X11R6 Xt/Xaw programs need.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12282
  ac_save_LDFLAGS=$LDFLAGS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12283
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12284
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12285
  # check for ICE first), but we must link in the order -lSM -lICE or
12286
  # we get undefined symbols.  So assume we have SM if we have ICE.
12287
  # These have to be linked with before -lX11, unlike the other
12288
  # libraries we check for below, so use a different variable.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12289
  # John Interrante, Karl Berry
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12290
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
12291
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
12292
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
12293
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12294
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12295
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12296
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12297
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12298
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12299
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12300
/* Override any GCC internal prototype to avoid an error.
12301
   Use char because int might match the return type of a GCC
12302
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12303
#ifdef __cplusplus
12304
extern "C"
12305
#endif
12306
char IceConnectionNumber ();
12307
int
12308
main ()
12309
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12310
return IceConnectionNumber ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12311
  ;
12312
  return 0;
12313
}
12314
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12315
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12316
  ac_cv_lib_ICE_IceConnectionNumber=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12317
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12318
  ac_cv_lib_ICE_IceConnectionNumber=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12319
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12320
rm -f core conftest.err conftest.$ac_objext \
12321
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12322
LIBS=$ac_check_lib_save_LIBS
12323
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12325
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12326
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12327
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12328
fi
12329
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12330
  LDFLAGS=$ac_save_LDFLAGS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12331
12332
fi
12333
12334
if test "$no_x" = "yes"; then
12335
  x_progs=
12336
fi
12337
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12338
for ac_func in getopt_long
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12339
do :
12340
  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12341
if test "x$ac_cv_func_getopt_long" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12342
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12343
#define HAVE_GETOPT_LONG 1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12344
_ACEOF
12345
12346
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12347
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5
12348
$as_echo_n "checking for getopt_long in -lgnugetopt... " >&6; }
12349
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then :
12350
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12351
else
12352
  ac_check_lib_save_LIBS=$LIBS
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12353
LIBS="-lgnugetopt  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12354
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12355
/* end confdefs.h.  */
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12356
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12357
/* Override any GCC internal prototype to avoid an error.
12358
   Use char because int might match the return type of a GCC
12359
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12360
#ifdef __cplusplus
12361
extern "C"
12362
#endif
12363
char getopt_long ();
12364
int
12365
main ()
12366
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12367
return getopt_long ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12368
  ;
12369
  return 0;
12370
}
12371
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12372
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12373
  ac_cv_lib_gnugetopt_getopt_long=yes
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12374
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12375
  ac_cv_lib_gnugetopt_getopt_long=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12376
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12377
rm -f core conftest.err conftest.$ac_objext \
12378
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12379
LIBS=$ac_check_lib_save_LIBS
12380
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
12382
$as_echo "$ac_cv_lib_gnugetopt_getopt_long" >&6; }
12383
if test "x$ac_cv_lib_gnugetopt_getopt_long" = x""yes; then :
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12384
  LDFLAGS="${LDFLAGS} -lgnugetopt"
12385
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12386
  as_fn_error "*** your libc doesn't provide the getopt_long function.
12387
Therfore you need to have \"libgnugetopt\" installed to compile LIRC.
12388
You can get a version from:
12389
  http://www.inf.ethz.ch/~mringwal/downloads/libgnugetopt-1.2.tar.gz
12390
Extract the package and do a \"./configure  && make && sudo make install\"
12391
in its directory.
12392
" "$LINENO" 5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12393
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12394
fi
12395
12396
12397
fi
12398
done
12399
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12400
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12401
12402
case "${host_os}" in
12403
  darwin*)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12404
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12405
        portaudio_lib_other="-framework CoreAudio -framework AudioToolbox"
12406
12407
        devdir_default="/usr/lirc/dev/"
12408
    use_fifos="yes"
12409
    ;;
12410
  *)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12411
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12412
        portaudio_lib_other="-lm -lpthread ${forkpty}"
12413
12414
        devdir_default="/dev"
12415
    use_fifos="no"
12416
    ;;
12417
esac
12418
12419
# use fifo instead of devnode (required on mac os x)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12420
 if test "$use_fifos" = "yes"; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12421
  USE_FIFOS_TRUE=
12422
  USE_FIFOS_FALSE='#'
12423
else
12424
  USE_FIFOS_TRUE='#'
12425
  USE_FIFOS_FALSE=
12426
fi
12427
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12428
12429
12430
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12431
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12432
  # Extract the first word of "mktemp", so it can be a program name with args.
12433
set dummy mktemp; ac_word=$2
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435
$as_echo_n "checking for $ac_word... " >&6; }
12436
if test "${ac_cv_prog_ac_pkss_mktemp+set}" = set; then :
12437
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12438
else
12439
  if test -n "$ac_pkss_mktemp"; then
12440
  ac_cv_prog_ac_pkss_mktemp="$ac_pkss_mktemp" # Let the user override the test.
12441
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443
for as_dir in $PATH
12444
do
12445
  IFS=$as_save_IFS
12446
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12447
    for ac_exec_ext in '' $ac_executable_extensions; do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12448
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12449
    ac_cv_prog_ac_pkss_mktemp="yes"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12450
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12451
    break 2
12452
  fi
12453
done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12454
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12455
IFS=$as_save_IFS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12456
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12457
  test -z "$ac_cv_prog_ac_pkss_mktemp" && ac_cv_prog_ac_pkss_mktemp="no"
12458
fi
12459
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12460
ac_pkss_mktemp=$ac_cv_prog_ac_pkss_mktemp
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12461
if test -n "$ac_pkss_mktemp"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12462
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pkss_mktemp" >&5
12463
$as_echo "$ac_pkss_mktemp" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12464
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12465
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466
$as_echo "no" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12467
fi
12468
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12469
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12470
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12471
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kernel sources" >&5
12472
$as_echo_n "checking for Linux kernel sources... " >&6; }
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12473
12474
12475
# Check whether --with-kerneldir was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12476
if test "${with_kerneldir+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12477
  withval=$with_kerneldir; ac_kerneldir=${withval}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12478
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12479
  kerneldir=missing
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12480
  kernelext=ko
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12481
  no_kernel=yes
12482
12483
  if test `uname` != "Linux"; then
12484
    kerneldir="not running Linux"
12485
  else
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
12486
    for dir in /usr/src/kernel-source-`uname -r` /usr/src/linux-`uname -r` /usr/src/linux /lib/modules/`uname -r`/source /lib/modules/`uname -r`/build ${ac_kerneldir}; do
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12487
      if test -d $dir; then
12488
        kerneldir=`dirname $dir/Makefile`/
12489
        no_kernel=no
12490
      fi;
12491
    done
12492
  fi
12493
12494
  if test x${no_kernel} != xyes; then
12495
    if test -f ${kerneldir}/Makefile; then
12496
      if test "${ac_pkss_mktemp}" = "yes"; then
12497
        ac_pkss_makefile=`mktemp /tmp/LIRCMF.XXXXXX`
12498
      else
12499
        ac_pkss_makefile=/tmp/LIRCMF.XXXXXX
12500
      fi
12501
      cat ${kerneldir}/Makefile >${ac_pkss_makefile}
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12502
12503
      echo "lirc_tell_me_what_version_is:" >>${ac_pkss_makefile}
12504
      echo "	echo \$(VERSION)" >>${ac_pkss_makefile}
12505
      echo "lirc_tell_me_what_patchlevel_is:" >>${ac_pkss_makefile}
12506
      echo "	echo \$(PATCHLEVEL)" >>${ac_pkss_makefile}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12507
      version=$(make -s -C ${kerneldir} -f ${ac_pkss_makefile} lirc_tell_me_what_version_is M=$(pwd))
12508
      patchlevel=$(make -s -C ${kerneldir} -f ${ac_pkss_makefile} lirc_tell_me_what_patchlevel_is M=$(pwd))
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12509
      if test ${version} -eq 2; then
12510
        if test ${patchlevel} -lt 5; then
12511
          kernelext=o
12512
        fi
12513
      fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12514
      rm -f ${ac_pkss_makefile}
12515
    else
12516
      kerneldir="no Makefile found"
12517
      no_kernel=yes
12518
    fi
12519
  fi
12520
  ac_cv_have_kernel="no_kernel=${no_kernel} \
12521
		kerneldir=\"${kerneldir}\" \
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
12522
		kernelext=\"${kernelext}\""
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12523
12524
12525
else
12526
  ac_kerneldir=""
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12527
    if test "${ac_cv_have_kernel+set}" = set; then :
12528
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12529
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12530
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12531
  kerneldir=missing
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12532
  kernelext=ko
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12533
  no_kernel=yes
12534
12535
  if test `uname` != "Linux"; then
12536
    kerneldir="not running Linux"
12537
  else
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
12538
    for dir in /usr/src/kernel-source-`uname -r` /usr/src/linux-`uname -r` /usr/src/linux /lib/modules/`uname -r`/source /lib/modules/`uname -r`/build ${ac_kerneldir}; do
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12539
      if test -d $dir; then
12540
        kerneldir=`dirname $dir/Makefile`/
12541
        no_kernel=no
12542
      fi;
12543
    done
12544
  fi
12545
12546
  if test x${no_kernel} != xyes; then
12547
    if test -f ${kerneldir}/Makefile; then
12548
      if test "${ac_pkss_mktemp}" = "yes"; then
12549
        ac_pkss_makefile=`mktemp /tmp/LIRCMF.XXXXXX`
12550
      else
12551
        ac_pkss_makefile=/tmp/LIRCMF.XXXXXX
12552
      fi
12553
      cat ${kerneldir}/Makefile >${ac_pkss_makefile}
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12554
12555
      echo "lirc_tell_me_what_version_is:" >>${ac_pkss_makefile}
12556
      echo "	echo \$(VERSION)" >>${ac_pkss_makefile}
12557
      echo "lirc_tell_me_what_patchlevel_is:" >>${ac_pkss_makefile}
12558
      echo "	echo \$(PATCHLEVEL)" >>${ac_pkss_makefile}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12559
      version=$(make -s -C ${kerneldir} -f ${ac_pkss_makefile} lirc_tell_me_what_version_is M=$(pwd))
12560
      patchlevel=$(make -s -C ${kerneldir} -f ${ac_pkss_makefile} lirc_tell_me_what_patchlevel_is M=$(pwd))
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12561
      if test ${version} -eq 2; then
12562
        if test ${patchlevel} -lt 5; then
12563
          kernelext=o
12564
        fi
12565
      fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12566
      rm -f ${ac_pkss_makefile}
12567
    else
12568
      kerneldir="no Makefile found"
12569
      no_kernel=yes
12570
    fi
12571
  fi
12572
  ac_cv_have_kernel="no_kernel=${no_kernel} \
12573
		kerneldir=\"${kerneldir}\" \
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
12574
		kernelext=\"${kernelext}\""
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12575
12576
12577
fi
12578
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12579
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12580
fi
12581
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12582
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12583
  eval "$ac_cv_have_kernel"
12584
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12585
12586
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12587
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${kerneldir}" >&5
12588
$as_echo "${kerneldir}" >&6; }
12589
12590
12591
12592
12593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for which drivers can be installed on this system" >&5
12594
$as_echo_n "checking for which drivers can be installed on this system... " >&6; }
12595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12596
$as_echo "" >&6; }
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12597
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
12598
# this list must only contain userspace drivers without external
12599
# (header/library) dependencies!
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
12600
possible_drivers="(none) \
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12601
	(userspace) \
12602
	(accent) \
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12603
	(atwf83) \
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
12604
	(bte) \
12605
	(creative) \
12606
	(ea65) \
12607
	(exaudio) \
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
12608
	(irlink) \
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
12609
	(irreal) \
12610
	(livedrive_midi) \
12611
	(livedrive_seq) \
12612
	(logitech) \
12613
	(mediafocusI) \
12614
	(mouseremote) \
12615
	(mouseremote_ps2) \
12616
	(mp3anywhere) \
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
12617
	(mplay) \
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
12618
	(pcmak) \
12619
	(pcmak_usb) \
12620
	(pctv) \
12621
	(remotemaster) \
12622
	(silitek) \
12623
	(slinke) \
12624
	(tira) \
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12625
	(tira_raw) \
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
12626
	(uirt2) \
12627
	(uirt2_raw) \
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12628
	(usb_uirt_raw) \
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
12629
	(usbx) \
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
12630
	(udp)"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12631
12632
if test x${no_kernel} != xyes; then
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
12633
  possible_drivers="${possible_drivers} \
12634
	(all) \
12635
	(lirc_dev) \
12636
	(lirc_dev lirc_atiusb) \
12637
	(lirc_dev lirc_bt829) \
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
12638
	(lirc_dev lirc_ene0100) \
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
12639
	(lirc_dev lirc_gpio) \
12640
	(lirc_dev lirc_i2c) \
12641
	(lirc_dev lirc_igorplugusb) \
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
12642
	(lirc_dev lirc_ttusbir) \
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
12643
	(lirc_dev lirc_imon) \
12644
	(lirc_dev lirc_it87) \
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
12645
	(lirc_dev lirc_ite8709) \
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
12646
	(lirc_dev lirc_mceusb) \
12647
	(lirc_dev lirc_parallel) \
12648
	(lirc_dev lirc_sasem) \
12649
	(lirc_dev lirc_serial) \
12650
	(lirc_dev lirc_sir) \
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
12651
	(lirc_dev lirc_streamzap) \
12652
	(lirc_dev lirc_wpc8769l)"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12653
fi
12654
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12751
if test -n "${LIBUSB_CONFIG}"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12752
  $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12753
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12754
  possible_drivers="${possible_drivers} (atilibusb) (awlibusb) (dfclibusb) (commandir) (srm7500libusb)"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12755
fi
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
12756
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for caraca_init in -lcaraca_client" >&5
12758
$as_echo_n "checking for caraca_init in -lcaraca_client... " >&6; }
12759
if test "${ac_cv_lib_caraca_client_caraca_init+set}" = set; then :
12760
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12761
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12762
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12763
LIBS="-lcaraca_client  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12764
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12765
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12766
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12767
/* Override any GCC internal prototype to avoid an error.
12768
   Use char because int might match the return type of a GCC
12769
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12770
#ifdef __cplusplus
12771
extern "C"
12772
#endif
12773
char caraca_init ();
12774
int
12775
main ()
12776
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12777
return caraca_init ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12778
  ;
12779
  return 0;
12780
}
12781
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12782
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12783
  ac_cv_lib_caraca_client_caraca_init=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12784
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12785
  ac_cv_lib_caraca_client_caraca_init=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12786
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12787
rm -f core conftest.err conftest.$ac_objext \
12788
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12789
LIBS=$ac_check_lib_save_LIBS
12790
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_caraca_client_caraca_init" >&5
12792
$as_echo "$ac_cv_lib_caraca_client_caraca_init" >&6; }
12793
if test "x$ac_cv_lib_caraca_client_caraca_init" = x""yes; then :
12794
  $as_echo "#define HAVE_LIBCARACA 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12795
12796
  possible_drivers="${possible_drivers} (caraca)"
12797
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12798
fi
12799
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12800
ac_fn_c_check_header_mongrel "$LINENO" "ftdi.h" "ac_cv_header_ftdi_h" "$ac_includes_default"
12801
if test "x$ac_cv_header_ftdi_h" = x""yes; then :
12802
  $as_echo "#define HAVE_FTDI 1" >>confdefs.h
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
12803
12804
  possible_drivers="${possible_drivers} (ftdi)"
12805
12806
fi
12807
12808
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12809
ac_fn_c_check_header_mongrel "$LINENO" "iguanaIR.h" "ac_cv_header_iguanaIR_h" "$ac_includes_default"
12810
if test "x$ac_cv_header_iguanaIR_h" = x""yes; then :
12811
  $as_echo "#define HAVE_IGUANAIR 1" >>confdefs.h
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12812
12813
  possible_drivers="${possible_drivers} (iguanaIR)"
12814
12815
fi
12816
12817
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ir_strerror in -lirman" >&5
12819
$as_echo_n "checking for ir_strerror in -lirman... " >&6; }
12820
if test "${ac_cv_lib_irman_ir_strerror+set}" = set; then :
12821
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12822
else
12823
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12824
LIBS="-lirman  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12825
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12826
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12827
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12828
/* Override any GCC internal prototype to avoid an error.
12829
   Use char because int might match the return type of a GCC
12830
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12831
#ifdef __cplusplus
12832
extern "C"
12833
#endif
12834
char ir_strerror ();
12835
int
12836
main ()
12837
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12838
return ir_strerror ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12839
  ;
12840
  return 0;
12841
}
12842
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12843
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12844
  ac_cv_lib_irman_ir_strerror=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12845
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12846
  ac_cv_lib_irman_ir_strerror=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12847
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12848
rm -f core conftest.err conftest.$ac_objext \
12849
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12850
LIBS=$ac_check_lib_save_LIBS
12851
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_irman_ir_strerror" >&5
12853
$as_echo "$ac_cv_lib_irman_ir_strerror" >&6; }
12854
if test "x$ac_cv_lib_irman_ir_strerror" = x""yes; then :
12855
  $as_echo "#define HAVE_LIBIRMAN 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12856
12857
  possible_drivers="${possible_drivers} (irman)"
12858
12859
fi
12860
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ir_strerror in -lirman_sw" >&5
12862
$as_echo_n "checking for ir_strerror in -lirman_sw... " >&6; }
12863
if test "${ac_cv_lib_irman_sw_ir_strerror+set}" = set; then :
12864
  $as_echo_n "(cached) " >&6
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12865
else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12866
  ac_check_lib_save_LIBS=$LIBS
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12867
LIBS="-lirman_sw  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12869
/* end confdefs.h.  */
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12870
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12871
/* Override any GCC internal prototype to avoid an error.
12872
   Use char because int might match the return type of a GCC
12873
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12874
#ifdef __cplusplus
12875
extern "C"
12876
#endif
12877
char ir_strerror ();
12878
int
12879
main ()
12880
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12881
return ir_strerror ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12882
  ;
12883
  return 0;
12884
}
12885
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12886
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12887
  ac_cv_lib_irman_sw_ir_strerror=yes
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12888
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12889
  ac_cv_lib_irman_sw_ir_strerror=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12890
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12891
rm -f core conftest.err conftest.$ac_objext \
12892
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12893
LIBS=$ac_check_lib_save_LIBS
12894
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_irman_sw_ir_strerror" >&5
12896
$as_echo "$ac_cv_lib_irman_sw_ir_strerror" >&6; }
12897
if test "x$ac_cv_lib_irman_sw_ir_strerror" = x""yes; then :
12898
  $as_echo "#define HAVE_LIBIRMAN_SW 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
12899
12900
  possible_drivers="${possible_drivers} (irman_sw)"
12901
12902
fi
12903
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12904
for ac_header in portaudio.h
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12905
do :
12906
  ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
12907
if test "x$ac_cv_header_portaudio_h" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12908
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12909
#define HAVE_PORTAUDIO_H 1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12910
_ACEOF
12911
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12912
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Pa_Initialize in -lportaudio" >&5
12913
$as_echo_n "checking for Pa_Initialize in -lportaudio... " >&6; }
12914
if test "${ac_cv_lib_portaudio_Pa_Initialize+set}" = set; then :
12915
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12916
else
12917
  ac_check_lib_save_LIBS=$LIBS
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12918
LIBS="-lportaudio ${portaudio_lib_other}
12919
   $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12920
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12921
/* end confdefs.h.  */
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12922
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12923
/* Override any GCC internal prototype to avoid an error.
12924
   Use char because int might match the return type of a GCC
12925
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12926
#ifdef __cplusplus
12927
extern "C"
12928
#endif
12929
char Pa_Initialize ();
12930
int
12931
main ()
12932
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12933
return Pa_Initialize ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12934
  ;
12935
  return 0;
12936
}
12937
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12938
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12939
  ac_cv_lib_portaudio_Pa_Initialize=yes
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12940
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12941
  ac_cv_lib_portaudio_Pa_Initialize=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12942
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12943
rm -f core conftest.err conftest.$ac_objext \
12944
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12945
LIBS=$ac_check_lib_save_LIBS
12946
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
12948
$as_echo "$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
12949
if test "x$ac_cv_lib_portaudio_Pa_Initialize" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12950
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12951
    $as_echo "#define HAVE_LIBPORTAUDIO 1" >>confdefs.h
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12952
12953
    possible_drivers="${possible_drivers} (audio)"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12954
12955
fi
12956
12957
12958
fi
12959
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12960
done
12961
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
12962
have_alsa=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12963
for ac_header in alsa/asoundlib.h
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12964
do :
12965
  ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
12966
if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12967
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12968
#define HAVE_ALSA_ASOUNDLIB_H 1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12969
_ACEOF
12970
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12971
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5
12972
$as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
12973
if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then :
12974
  $as_echo_n "(cached) " >&6
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12975
else
12976
  ac_check_lib_save_LIBS=$LIBS
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12977
LIBS="-lasound  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12979
/* end confdefs.h.  */
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12980
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12981
/* Override any GCC internal prototype to avoid an error.
12982
   Use char because int might match the return type of a GCC
12983
   builtin and then its argument prototype would still apply.  */
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12984
#ifdef __cplusplus
12985
extern "C"
12986
#endif
12987
char snd_pcm_open ();
12988
int
12989
main ()
12990
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
12991
return snd_pcm_open ();
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12992
  ;
12993
  return 0;
12994
}
12995
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12996
if ac_fn_c_try_link "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
12997
  ac_cv_lib_asound_snd_pcm_open=yes
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
12998
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
12999
  ac_cv_lib_asound_snd_pcm_open=no
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13000
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13001
rm -f core conftest.err conftest.$ac_objext \
13002
    conftest$ac_exeext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13003
LIBS=$ac_check_lib_save_LIBS
13004
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5
13006
$as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
13007
if test "x$ac_cv_lib_asound_snd_pcm_open" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13008
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13009
    $as_echo "#define HAVE_LIBALSA 1" >>confdefs.h
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13010
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13011
    have_alsa=yes
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13012
    possible_drivers="${possible_drivers} (audio_alsa)"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13013
13014
fi
13015
13016
13017
fi
13018
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13019
done
13020
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13021
if test "$have_alsa" = "yes"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13022
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA SB RC hwdep support" >&5
13023
$as_echo_n "checking for ALSA SB RC hwdep support... " >&6; }
13024
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13025
/* end confdefs.h.  */
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13026
13027
#include <alsa/asoundlib.h>
13028
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13029
int
13030
main ()
13031
{
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13032
13033
  if (snd_hwdep_info_get_iface(NULL) == SND_HWDEP_IFACE_SB_RC) {}
13034
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13035
  ;
13036
  return 0;
13037
}
13038
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13039
if ac_fn_c_try_compile "$LINENO"; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13040
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13041
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13042
$as_echo "yes" >&6; }
13043
    $as_echo "#define HAVE_ALSA_SB_RC 1" >>confdefs.h
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13044
13045
    possible_drivers="${possible_drivers} (alsa_usb)"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13046
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13047
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13048
13049
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13050
$as_echo "no" >&6; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13051
13052
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
13053
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13054
fi
13055
for ac_header in scsi/sg.h
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13056
do :
13057
  ac_fn_c_check_header_mongrel "$LINENO" "scsi/sg.h" "ac_cv_header_scsi_sg_h" "$ac_includes_default"
13058
if test "x$ac_cv_header_scsi_sg_h" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13059
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13060
#define HAVE_SCSI_SG_H 1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13061
_ACEOF
13062
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13063
  $as_echo "#define HAVE_SCSI 1" >>confdefs.h
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13064
13065
  possible_drivers="${possible_drivers} (creative_infracd)"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13066
13067
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13068
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13069
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13070
done
13071
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13072
for ac_header in linux/input.h
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13073
do :
13074
  ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
13075
if test "x$ac_cv_header_linux_input_h" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13076
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13077
#define HAVE_LINUX_INPUT_H 1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13078
_ACEOF
13079
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13080
  $as_echo "#define HAVE_LINUX_DEVINPUT 1" >>confdefs.h
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13081
13082
  possible_drivers="${possible_drivers} (devinput)"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13083
13084
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13085
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13086
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13087
done
13088
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13089
for ac_header in linux/types.h
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13090
do :
13091
  ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
13092
if test "x$ac_cv_header_linux_types_h" = x""yes; then :
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13093
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13094
#define HAVE_LINUX_TYPES_H 1
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13095
_ACEOF
13096
13097
fi
13098
13099
done
13100
13101
for ac_header in linux/hiddev.h
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13102
do :
13103
  ac_fn_c_check_header_compile "$LINENO" "linux/hiddev.h" "ac_cv_header_linux_hiddev_h" "#ifdef HAVE_LINUX_TYPES_H
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13104
#include <linux/types.h>
13105
#endif
13106
13107
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13108
"
13109
if test "x$ac_cv_header_linux_hiddev_h" = x""yes; then :
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13110
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13111
#define HAVE_LINUX_HIDDEV_H 1
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13112
_ACEOF
13113
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13114
  possible_drivers="${possible_drivers} (asusdh) (bw6130) (dvico) (macmini)"
13115
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HIDDEV_FLAG_UREF support" >&5
13116
$as_echo_n "checking for HIDDEV_FLAG_UREF support... " >&6; }
13117
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13118
/* end confdefs.h.  */
13119
13120
#include <linux/types.h>
13121
#include <linux/hiddev.h>
13122
13123
int
13124
main ()
13125
{
13126
13127
      int flag = HIDDEV_FLAG_UREF;
13128
13129
  ;
13130
  return 0;
13131
}
13132
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13133
if ac_fn_c_try_compile "$LINENO"; then :
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13134
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13135
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13136
$as_echo "yes" >&6; }
13137
    $as_echo "#define HAVE_LINUX_HIDDEV_FLAG_UREF 1" >>confdefs.h
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13138
13139
    possible_drivers="${possible_drivers} (samsung) (sb0540)"
13140
13141
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13142
13143
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144
$as_echo "no" >&6; }
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13145
13146
fi
13147
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13148
13149
fi
13150
13151
done
13152
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13153
for ac_header in sys/soundcard.h
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13154
do :
13155
  ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
13156
if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13157
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13158
#define HAVE_SYS_SOUNDCARD_H 1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13159
_ACEOF
13160
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13161
  $as_echo "#define HAVE_SOUNDCARD 1" >>confdefs.h
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13162
13163
  possible_drivers="${possible_drivers} (dsp)"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13164
13165
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13166
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13167
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13168
done
13169
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
13170
for ac_header in linux/i2c-dev.h
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13171
do :
13172
  ac_fn_c_check_header_mongrel "$LINENO" "linux/i2c-dev.h" "ac_cv_header_linux_i2c_dev_h" "$ac_includes_default"
13173
if test "x$ac_cv_header_linux_i2c_dev_h" = x""yes; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
13174
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13175
#define HAVE_LINUX_I2C_DEV_H 1
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
13176
_ACEOF
13177
13178
  possible_drivers="${possible_drivers} (i2cuser)"
13179
13180
13181
fi
13182
13183
done
13184
13185
13186
13187
13188
# Check whether --with-driver was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13189
if test "${with_driver+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
13190
  withval=$with_driver; driver=${withval}
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13191
else
13192
  driver="unset"
13193
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
13194
fi
13195
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13196
13197
#START HARDWARE HEURISTIC
13198
lirc_driver="$driver"
13199
lircd_conf=""
13200
lircmd_conf=""
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13201
iguanaIR_lib=""
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13202
irman_lib=""
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
13203
ftdi_lib=""
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13204
caraca_lib=""
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
13205
commandir_lib=""
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13206
portaudio_lib=""
13207
alsa_lib=""
13208
atilibusb_lib=""
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13209
atwf83_lib=""
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
13210
awlibusb_lib=""
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13211
dfclibusb_lib=""
13212
srm7500libusb_lib=""
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13213
hw_module="hw_default.o receive.o transmit.o"
13214
HW_DEFAULT="hw_default"
13215
kernel_module=""
13216
13217
if test "$driver" = "none"; then
13218
  lirc_driver=none
13219
  hw_module=""
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13220
  HW_DEFAULT="hw_null"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13221
fi
13222
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13223
if test "$driver" = "userspace" -o "$driver" = "all"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13224
  $as_echo "#define LIRC_DRIVER_ANY 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13225
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13226
  lirc_driver=$driver
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13227
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13228
  any_possible_drivers=`echo ${possible_drivers} | sed -e's/ /-/g' \
13229
			  -e's/)-(/ /g'  -e's/(//g' -e's/)//g' \
13230
			  -e's/-$//g'`
13231
  for any_driver in ${any_possible_drivers}; do
13232
  case ${any_driver} in
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13233
	accent)
13234
		hw_module="${hw_module} hw_accent.o serial.o"
13235
		;;
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13236
	alsa_usb)
13237
		hw_module="${hw_module} hw_alsa_usb.o"
13238
		alsa_lib=-lasound
13239
		;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13240
	asusdh)
13241
		hw_module="${hw_module} hw_hiddev.o"
13242
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13243
	atilibusb)
13244
		hw_module="${hw_module} hw_atilibusb.o receive.o"
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13245
		atilibusb_lib=`${LIBUSB_CONFIG} --libs`
13246
		CFLAGS="$CFLAGS `${LIBUSB_CONFIG} --cflags`"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13247
		;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13248
	atwf83)
13249
		hw_module="${hw_module} hw_atwf83.o"
13250
		atwf83_lib=-lpthread
13251
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13252
	audio)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13253
		hw_module="${hw_module} hw_audio.o transmit.o receive.o"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13254
		portaudio_lib="-lportaudio ${portaudio_lib_other}"
13255
		;;
13256
	audio_alsa)
13257
		hw_module="${hw_module} hw_audio_alsa.o receive.o"
13258
		alsa_lib=-lasound
13259
		;;
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
13260
	awlibusb)
13261
		hw_module="${hw_module} hw_awlibusb.o receive.o"
13262
		awlibusb_lib=`${LIBUSB_CONFIG} --libs`
13263
		CFLAGS="$CFLAGS `${LIBUSB_CONFIG} --cflags`"
13264
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13265
	bte)
13266
		hw_module="${hw_module} hw_bte.o serial.o"
13267
		;;
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13268
	bw6130)
13269
		hw_module="${hw_module} hw_hiddev.o"
13270
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13271
	caraca)
13272
		hw_module="${hw_module} hw_caraca.o"
13273
		caraca_lib=-lcaraca_client
13274
		;;
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13275
	creative)
13276
		hw_module="${hw_module} hw_creative.o serial.o"
13277
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13278
	creative_infracd)
13279
		hw_module="${hw_module} hw_creative_infracd.o"
13280
		;;
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
13281
	commandir)
13282
		hw_module="${hw_module} hw_commandir.o receive.o"
13283
		commandir_lib=`${LIBUSB_CONFIG} --libs`
13284
		CFLAGS="$CFLAGS `${LIBUSB_CONFIG} --cflags`"
13285
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13286
	devinput)
13287
		hw_module="${hw_module} hw_devinput.o"
13288
		;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13289
	dfclibusb)
13290
		hw_module="${hw_module} hw_dfclibusb.o receive.o"
13291
		dfclibusb_lib=`${LIBUSB_CONFIG} --libs`
13292
		CFLAGS="$CFLAGS `${LIBUSB_CONFIG} --cflags`"
13293
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13294
	dsp)
13295
		hw_module="${hw_module} hw_dsp.o receive.o"
13296
		;;
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13297
	dvico)
13298
		hw_module="${hw_module} hw_hiddev.o"
13299
		;;
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13300
	ea65)
13301
		hw_module="${hw_module} hw_ea65.o serial.o"
13302
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13303
	exaudio)
13304
		;;
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
13305
	ftdi)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13306
		hw_module="${hw_module} hw_ftdi.o receive.o transmit.o"
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
13307
		ftdi_lib="-lftdi"
13308
		;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
13309
	i2cuser)
13310
		hw_module="${hw_module} hw_i2cuser.o receive.o"
13311
		;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13312
	iguanaIR)
13313
		hw_module="${hw_module} hw_iguanaIR.o transmit.o receive.o"
13314
		iguanaIR_lib=-liguanaIR
13315
		;;
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13316
	irlink)
13317
		hw_module="${hw_module} hw_irlink.o serial.o receive.o"
13318
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13319
	irman)
13320
		hw_module="${hw_module} hw_irman.o serial.o"
13321
		irman_lib=-lirman
13322
		;;
13323
	# There is not much sense in using 'irman_sw' with driver
13324
	# 'any' and that would conflict with 'irman' which will
13325
	# probably also be available.
13326
	#
13327
	#irman_sw)
13328
		#hw_module="${hw_module} hw_irman.o serial.o"
13329
		#irman_lib=-lirman_sw
13330
		#;;
13331
	irreal)
13332
		#hw_module="${hw_module} hw_irreal.o serial.o receive.o transmit.o"
13333
		;;
13334
	lirc_dev-lirc_atiusb)
13335
		;;
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
13336
	lirc_dev-lirc_ene0100)
13337
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13338
	lirc_dev-lirc_gpio)
13339
		#lirc_driver="${lirc_driver} lirc_dev lirc_gpio"
13340
		;;
13341
	lirc_dev-lirc_i2c)
13342
		#lirc_driver="${lirc_driver} lirc_dev lirc_i2c"
13343
		;;
13344
	lirc_dev-lirc_igorplugusb)
13345
		;;
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
13346
	lirc_dev-lirc_ttusbir)
13347
		;;
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13348
	lirc_dev-lirc_imon)
13349
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13350
	lirc_dev-lirc_it87)
13351
		;;
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
13352
	lirc_dev-lirc_ite8709)
13353
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13354
	lirc_dev-lirc_mceusb)
13355
		;;
13356
	lirc_dev-lirc_parallel)
13357
		;;
13358
	lirc_dev-lirc_sasem)
13359
		;;
13360
	lirc_dev-lirc_serial)
13361
		;;
13362
	lirc_dev-lirc_sir)
13363
		;;
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13364
	lirc_dev-lirc_streamzap)
13365
		;;
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
13366
	lirc_dev-lirc_wpc8769l)
13367
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13368
	lirc_flyvideo)
13369
		;;
13370
	livedrive_midi)
13371
		hw_module="${hw_module} hw_livedrive_common.o hw_livedrive_midi.o"
13372
		;;
13373
	livedrive_seq)
13374
		hw_module="${hw_module} hw_livedrive_common.o hw_livedrive_seq.o"
13375
		;;
13376
	logitech)
13377
		hw_module="${hw_module} hw_logitech.o serial.o"
13378
		;;
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
13379
	macmini)
13380
		hw_module="${hw_module} hw_hiddev.o"
13381
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13382
	mediafocusI)
13383
		;;
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13384
	mouseremote)
13385
		hw_module="${hw_module} hw_mouseremote.o serial.o"
13386
		;;
13387
	mouseremote_ps2)
13388
		hw_module="${hw_module} hw_mouseremote.o serial.o"
13389
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13390
	mp3anywhere)
13391
		hw_module="${hw_module} hw_mp3anywhere.o serial.o"
13392
		;;
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13393
	mplay)
13394
		hw_module="${hw_module} hw_mplay.o serial.o"
13395
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13396
	pcmak*)
13397
		hw_module="${hw_module} hw_pcmak.o serial.o"
13398
		;;
13399
	pctv)
13400
		hw_module="${hw_module} hw_pinsys.o serial.o"
13401
		;;
13402
	remotemaster)
13403
		hw_module="${hw_module} hw_pixelview.o serial.o"
13404
		;;
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13405
	samsung)
13406
		hw_module="${hw_module} hw_hiddev.o"
13407
		;;
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
13408
	sb0540)
13409
		hw_module="${hw_module} hw_hiddev.o"
13410
		;;
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13411
	silitek)
13412
		hw_module="${hw_module} hw_silitek.o serial.o"
13413
		;;
13414
	#slinke)
13415
		#hw_module="${hw_module} hw_slinke.o serial.o receive.o"
13416
		#;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13417
	srm7500libusb)
13418
		hw_module="${hw_module} hw_srm7500libusb.o receive.o"
13419
		srm7500libusb_lib=`${LIBUSB_CONFIG} --libs`
13420
		CFLAGS="$CFLAGS `${LIBUSB_CONFIG} --cflags`"
13421
		;;
13422
	tira|tira_raw)
13423
		hw_module="${hw_module} hw_tira.o receive.o transmit.o"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13424
		;;
13425
	udp)
13426
		hw_module="${hw_module} hw_udp.o receive.o"
13427
		;;
13428
	uirt2)
13429
		hw_module="${hw_module} hw_uirt2.o serial.o"
13430
		;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13431
	uirt2_raw|usb_uirt_raw)
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13432
		hw_module="${hw_module} hw_uirt2_raw.o hw_uirt2_common.o serial.o receive.o transmit.o"
13433
		;;
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
13434
	usbx)
13435
		hw_module="${hw_module} hw_usbx.o serial.o"
13436
		;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13437
  esac
13438
  done
13439
  #remove duplicates
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13440
13441
  #sed segfaults when $hw_module is too long :(
13442
  #hw_module=`echo ${hw_module}| sed \
13443
  #			-e':again' \
13444
  #			-e's/\(.*\)\(\<.*\) \(.*\) \2\(.*\)$/\1\2 \3\4/' \
13445
  #			-e'tagain'`
13446
13447
  space_to_newline()
13448
  { for token in $*; do echo $token; done; }
13449
  newline_to_space()
13450
  { echo $*; }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13451
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13452
  hw_module=$(newline_to_space $(space_to_newline ${hw_module}| sort -u))
13453
13454
fi
13455
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13456
if test "$driver" = "accent"; then
13457
  lirc_driver="none"
13458
  hw_module="hw_accent.o serial.o"
13459
  HW_DEFAULT="hw_accent"
13460
  lircd_conf="kanam_accent/lircd.conf.IR-100"
13461
fi
13462
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13463
if test "$driver" = "act200l"; then
13464
  lirc_driver="lirc_dev lirc_sir"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13465
  $as_echo "#define LIRC_SIR_ACTISYS_ACT200L 1" >>confdefs.h
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13466
13467
fi
13468
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13469
if test "$driver" = "act220l"; then
13470
  lirc_driver="lirc_dev lirc_sir"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13471
  $as_echo "#define LIRC_SIR_ACTISYS_ACT220L 1" >>confdefs.h
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13472
13473
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13474
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13475
if test "$driver" = "adaptec"; then
13476
  lirc_driver="lirc_dev lirc_i2c"
13477
  lircd_conf="adaptec/lircd.conf.AVC-2410"
13478
#  lircmd_conf="adaptec/lircmd.conf.AVC-2410"
13479
fi
13480
13481
if test "$driver" = "alsa_usb"; then
13482
  lirc_driver="alsa_usb"
13483
  hw_module="hw_alsa_usb.o"
13484
  HW_DEFAULT="hw_alsa_usb"
13485
  alsa_lib=-lasound
13486
  lircd_conf="creative/lircd.conf.alsa_usb"
13487
fi
13488
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13489
if test "$driver" = "animax"; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13490
  lirc_driver="lirc_dev lirc_serial"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13491
  lircd_conf="animax/lircd.conf.animax"
13492
  lircmd_conf="animax/lircmd.conf.animax"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13493
  $as_echo "#define LIRC_SERIAL_ANIMAX 1" >>confdefs.h
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13494
13495
fi
13496
13497
if test "$driver" = "asusdh"; then
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13498
  lirc_driver="$driver"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13499
  hw_module="hw_hiddev.o"
13500
  HW_DEFAULT="hw_asusdh"
13501
  lircd_conf="asus/lircd.conf.asusdh"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13502
fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13503
13504
if test "$driver" = "atiusb"; then
13505
  lirc_driver="lirc_dev lirc_atiusb"
13506
  lircd_conf="atiusb/lircd.conf.atiusb"
13507
fi
13508
13509
if test "$driver" = "atilibusb"; then
13510
  lirc_driver="$driver"
13511
  hw_module="hw_atilibusb.o receive.o"
13512
  HW_DEFAULT="hw_atilibusb"
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
13513
  lircd_conf="atiusb/lircd.conf.atilibusb"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13514
  if test -n "${LIBUSB_CONFIG}"; then
13515
    atilibusb_lib=`${LIBUSB_CONFIG} --libs`
13516
    CFLAGS="$CFLAGS `${LIBUSB_CONFIG} --cflags`"
13517
  fi
13518
fi
13519
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13520
if test "$driver" = "atwf83"; then
13521
  lirc_driver="$driver"
13522
  hw_module="hw_atwf83.o"
13523
  HW_DEFAULT="hw_atwf83"
13524
  lircd_conf="aureal/lircd.conf.atwf83"
13525
  atwf83_lib=-lpthread
13526
fi
13527
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
13528
if test "$driver" = "awlibusb"; then
13529
  lirc_driver="$driver"
13530
  hw_module="hw_awlibusb.o receive.o"
13531
  HW_DEFAULT="hw_awlibusb"
13532
  lircd_conf="awlibusb/lircd.conf.awlibusb"
13533
  if test -n "${LIBUSB_CONFIG}"; then
13534
    awlibusb_lib=`${LIBUSB_CONFIG} --libs`
13535
    CFLAGS="$CFLAGS `${LIBUSB_CONFIG} --cflags`"
13536
  fi
13537
fi
13538
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13539
if test "$driver" = "audio"; then
13540
  lirc_driver="audio"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13541
  hw_module="hw_audio.o transmit.o receive.o"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13542
  HW_DEFAULT="hw_audio"
13543
  portaudio_lib="-lportaudio ${portaudio_lib_other}"
13544
fi
13545
13546
if test "$driver" = "audio_alsa"; then
13547
  lirc_driver="audio_alsa"
13548
  hw_module="hw_audio_alsa.o receive.o"
13549
  HW_DEFAULT="hw_audio_alsa"
13550
  alsa_lib=-lasound
13551
fi
13552
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13553
if test "$driver" = "avermedia"; then
13554
  lirc_driver="lirc_dev lirc_gpio"
13555
  lircd_conf="avermedia/lircd.conf.avermedia"
13556
  lircmd_conf="avermedia/lircmd.conf.avermedia"
13557
fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13558
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13559
if test "$driver" = "avermedia98"; then
13560
  lirc_driver="lirc_dev lirc_gpio"
13561
  lircd_conf="avermedia/lircd.conf.avermedia98"
13562
  lircmd_conf="avermedia/lircmd.conf.avermedia98"
13563
fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13564
13565
if test "$driver" = "avermedia_vdomate"; then
13566
  lirc_driver="lirc_dev lirc_gpio"
13567
  lircd_conf="avermedia/lircd.conf.vdomate"
13568
#  lircmd_conf="avermedia/lircmd.conf.vdomate"
13569
fi
13570
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13571
if test "$driver" = "bestbuy"; then
13572
  lirc_driver="lirc_dev lirc_gpio"
13573
  lircd_conf="bestbuy/lircd.conf.bestbuy"
13574
  lircmd_conf="bestbuy/lircmd.conf.bestbuy"
13575
fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13576
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13577
if test "$driver" = "bestbuy2"; then
13578
  lirc_driver="lirc_dev lirc_gpio"
13579
  lircd_conf="bestbuy/lircd.conf.bestbuy2"
13580
  lircmd_conf="bestbuy/lircmd.conf.bestbuy2"
13581
fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13582
13583
if test "$driver" = "breakoutbox"; then
13584
  lirc_driver="lirc_dev lirc_i2c"
13585
  lircd_conf="creative/lircd.conf.breakoutbox"
13586
fi
13587
13588
if test "$driver" = "bte"; then
13589
  lirc_driver="none"
13590
  hw_module="hw_bte.o  serial.o"
13591
  HW_DEFAULT="hw_bte"
13592
  lircd_conf="ericsson/lircd.conf.bte"
13593
#  lircmd_conf="ericsson/lircmd.conf.bte"
13594
fi
13595
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13596
if test "$driver" = "bw6130"; then
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13597
  lirc_driver="$driver"
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13598
  hw_module="hw_hiddev.o"
13599
  HW_DEFAULT="hw_bw6130"
13600
  lircd_conf="remotec/lircd.conf.BW6130"
13601
  lircmd_conf="remotec/lircmd.conf.BW6130"
13602
fi
13603
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13604
if test "$driver" = "caraca"; then
13605
  lirc_driver="caraca"
13606
  hw_module="hw_caraca.o"
13607
  HW_DEFAULT="hw_caraca"
13608
  caraca_lib=-lcaraca_client
13609
  lircd_conf="caraca/lircd.conf.caraca"
13610
#  lircmd_conf="caraca/lircmd.conf.caraca"
13611
fi
13612
13613
if test "$driver" = "chronos"; then
13614
  lirc_driver="lirc_dev lirc_gpio"
13615
  lircd_conf="chronos/lircd.conf.chronos"
13616
#  lircmd_conf="chronos/lircmd.conf.chronos"
13617
fi
13618
13619
if test "$driver" = "com1"; then
13620
  lirc_driver="lirc_dev lirc_serial"
13621
  port=0x3f8
13622
  irq=4
13623
fi
13624
13625
if test "$driver" = "com2"; then
13626
  lirc_driver="lirc_dev lirc_serial"
13627
  port=0x2f8
13628
  irq=3
13629
fi
13630
13631
if test "$driver" = "com3"; then
13632
  lirc_driver="lirc_dev lirc_serial"
13633
  port=0x3e8
13634
  irq=4
13635
fi
13636
13637
if test "$driver" = "com4"; then
13638
  lirc_driver="lirc_dev lirc_serial"
13639
  port=0x2e8
13640
  irq=3
13641
fi
13642
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
13643
if test "$driver" = "commandir"; then
13644
  lirc_driver="$driver"
13645
  hw_module="hw_commandir.o receive.o transmit.o"
13646
  HW_DEFAULT="hw_commandir"
13647
  lircd_conf="hauppauge/lircd.conf.hauppauge"
13648
  lircmd_conf="hauppauge/lircmd.conf.hauppauge"
13649
  if test -n "${LIBUSB_CONFIG}"; then
13650
    commandir_lib=`${LIBUSB_CONFIG} --libs`
13651
    CFLAGS="$CFLAGS `${LIBUSB_CONFIG} --cflags`"
13652
  fi
13653
fi
13654
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13655
if test "$driver" = "cph03x" -o "$driver" = "cph06x"; then
13656
  lirc_driver="lirc_dev lirc_gpio"
13657
  lircd_conf="cph03x/lircd.conf.cph03x"
13658
#  lircmd_conf="cph03x/lircmd.conf.cph03x"
13659
fi
13660
13661
if test "$driver" = "creative"; then
13662
  lirc_driver="none"
13663
  hw_module="hw_creative.o serial.o"
13664
  HW_DEFAULT="hw_creative"
13665
  lircd_conf="creative/lircd.conf.creative"
13666
#  lircmd_conf="creative/lircmd.conf.creative"
13667
fi
13668
13669
if test "$driver" = "creative_infracd"; then
13670
  lirc_driver="none"
13671
  hw_module="hw_creative_infracd.o"
13672
  HW_DEFAULT="hw_creative_infracd"
13673
  lircd_conf="creative/lircd.conf.infracd"
13674
fi
13675
13676
if test "$driver" = "devinput"; then
13677
  lirc_driver="none"
13678
  hw_module="hw_devinput.o"
13679
  HW_DEFAULT="hw_devinput"
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
13680
  lircd_conf="devinput/lircd.conf.devinput"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13681
fi
13682
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13683
if test "$driver" = "dfclibusb"; then
13684
  lirc_driver="$driver"
13685
  hw_module="hw_dfclibusb.o receive.o"
13686
  HW_DEFAULT="hw_dfclibusb"
13687
  if test -n "${LIBUSB_CONFIG}"; then
13688
    dfclibusb_lib=`${LIBUSB_CONFIG} --libs`
13689
    CFLAGS="$CFLAGS `${LIBUSB_CONFIG} --cflags`"
13690
  fi
13691
fi
13692
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13693
if test "$driver" = "digimatrix"; then
13694
  lirc_driver="lirc_dev lirc_it87"
13695
  lircd_conf="asus/lircd.conf.digimatrix"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13696
  $as_echo "#define LIRC_IT87_DIGIMATRIX 1" >>confdefs.h
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13697
13698
fi
13699
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13700
if test "$driver" = "dsp"; then
13701
  lirc_driver="none"
13702
  hw_module="hw_dsp.o receive.o"
13703
  HW_DEFAULT="hw_dsp"
13704
fi
13705
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13706
if test "$driver" = "dvico"; then
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13707
  lirc_driver="$driver"
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13708
  hw_module="hw_hiddev.o"
13709
  HW_DEFAULT="hw_dvico"
13710
  lircd_conf="dvico/lircd.conf.fusionHDTV"
13711
fi
13712
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13713
if test "$driver" = "ea65"; then
13714
  lirc_driver="none"
13715
  hw_module="hw_ea65.o  serial.o"
13716
  HW_DEFAULT="hw_ea65"
13717
  lircd_conf="ea65/lircd.conf.ea65"
13718
fi
13719
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
13720
if test "$driver" = "ene0100"; then
13721
  lirc_driver="lirc_dev lirc_ene0100"
13722
fi
13723
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13724
if test "$driver" = "exaudio"; then
13725
  lirc_driver="none"
13726
#  lircd_conf="creative/lircd.conf.exaudio"
13727
#  lircmd_conf="creative/lircmd.conf.exaudio"
13728
fi
13729
13730
if test "$driver" = "flyvideo"; then
13731
  lirc_driver="lirc_dev lirc_gpio"
13732
  lircd_conf="life-view/lircd.conf.flyvideo"
13733
  lircmd_conf="life-view/lircmd.conf.flyvideo"
13734
fi
13735
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
13736
if test "$driver" = "ftdi"; then
13737
  lirc_driver="none"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13738
  hw_module="hw_ftdi.o receive.o transmit.o"
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
13739
  HW_DEFAULT="hw_ftdi"
13740
  ftdi_lib="-lftdi"
13741
fi
13742
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13743
if test "$driver" = "gvbctv5pci"; then
13744
  lirc_driver="lirc_dev lirc_gpio"
13745
  lircd_conf="iodata/lircd.conf.gvbctv5pci"
13746
#  lircmd_conf="iodata/lircmd.conf.gvbctv5pci"
13747
fi
13748
13749
if test "$driver" = "hauppauge"; then
13750
  lirc_driver="lirc_dev lirc_i2c"
13751
  lircd_conf="hauppauge/lircd.conf.hauppauge"
13752
  lircmd_conf="hauppauge/lircmd.conf.hauppauge"
13753
fi
13754
13755
if test "$driver" = "hauppauge_dvb"; then
13756
  lirc_driver="lirc_dev"
13757
  lircd_conf="hauppauge/lircd.conf.hauppauge"
13758
  lircmd_conf="hauppauge/lircmd.conf.hauppauge"
13759
fi
13760
13761
if test "$driver" = "hercules_smarttv_stereo"; then
13762
  lirc_driver="lirc_dev lirc_i2c"
13763
  lircd_conf="hercules/lircd.conf.smarttv_stereo"
13764
fi
13765
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
13766
if test "$driver" = "i2cuser"; then
13767
  lirc_driver="none"
13768
  hw_module="hw_i2cuser.o receive.o"
13769
  HW_DEFAULT="hw_i2cuser"
13770
fi
13771
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13772
if test "$driver" = "igorplugusb"; then
13773
  lirc_driver="lirc_dev lirc_igorplugusb"
13774
fi
13775
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13776
if test "$driver" = "iguanaIR"; then
13777
  lirc_driver="iguanaIR"
13778
  hw_module="hw_iguanaIR.o transmit.o receive.o"
13779
  HW_DEFAULT="hw_iguanaIR"
13780
  iguanaIR_lib=-liguanaIR
13781
fi
13782
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13783
if test "$driver" = "imon"; then
13784
  lirc_driver="lirc_dev lirc_imon"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13785
  lircd_conf="imon/lircd.conf.imon"
13786
fi
13787
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13788
if test "$driver" = "imon_24g"; then
13789
  lirc_driver="lirc_dev lirc_imon"
13790
  lircd_conf="imon/lircd.conf.imon-2.4g"
13791
fi
13792
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13793
if test "$driver" = "imon_knob"; then
13794
  lirc_driver="lirc_dev lirc_imon"
13795
  lircd_conf="imon/lircd.conf.imon-knob"
13796
fi
13797
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13798
if test "$driver" = "imon_lcd"; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13799
  lirc_driver="lirc_dev lirc_imon"
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13800
  lircd_conf="imon/lircd.conf.imon"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13801
  $as_echo "#define LIRC_IMON_LCD 1" >>confdefs.h
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13802
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13803
fi
13804
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13805
if test "$driver" = "imon_pad"; then
13806
  lirc_driver="lirc_dev lirc_imon"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13807
  lircd_conf="imon/lircd.conf.imon-pad"
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13808
fi
13809
13810
if test "$driver" = "imon_rsc"; then
13811
  lirc_driver="lirc_dev lirc_imon"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
13812
  lircd_conf="imon/lircd.conf.imon-rsc"
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13813
fi
13814
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13815
if test "$driver" = "irdeo"; then
13816
  lirc_driver="lirc_dev lirc_serial"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13817
  $as_echo "#define LIRC_SERIAL_IRDEO 1" >>confdefs.h
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13818
13819
fi
13820
13821
if test "$driver" = "irdeo_remote"; then
13822
  lirc_driver="lirc_dev lirc_serial"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13823
  $as_echo "#define LIRC_SERIAL_IRDEO_REMOTE 1" >>confdefs.h
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13824
13825
fi
13826
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13827
if test "$driver" = "irlink"; then
13828
  lirc_driver="none"
13829
  hw_module="hw_irlink.o serial.o receive.o"
13830
  HW_DEFAULT="hw_irlink"
13831
fi
13832
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13833
if test "$driver" = "irman"; then
13834
  lirc_driver="irman"
13835
  hw_module="hw_irman.o serial.o"
13836
  HW_DEFAULT="hw_irman"
13837
  irman_lib=-lirman
13838
fi
13839
13840
if test "$driver" = "irman_sw"; then
13841
  lirc_driver="irman_sw"
13842
  hw_module="hw_irman.o serial.o"
13843
  HW_DEFAULT="hw_irman"
13844
  irman_lib=-lirman_sw
13845
fi
13846
13847
if test "$driver" = "irreal"; then
13848
  lirc_driver="none"
13849
  hw_module="hw_irreal.o serial.o receive.o transmit.o"
13850
  HW_DEFAULT="hw_irreal"
13851
fi
13852
13853
if test "$driver" = "it87"; then
13854
  lirc_driver="lirc_dev lirc_it87"
13855
fi
13856
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
13857
if test "$driver" = "ite8709"; then
13858
  lirc_driver="lirc_dev lirc_ite8709"
13859
fi
13860
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13861
if test "$driver" = "knc_one"; then
13862
  lirc_driver="lirc_dev lirc_i2c"
13863
  lircd_conf="knc_one/lircd.conf.knc_one"
13864
#  lircmd_conf="knc_one/lircmd.conf.knc_one"
13865
fi
13866
13867
if test "$driver" = "kworld"; then
13868
  lirc_driver="lirc_dev lirc_gpio"
13869
  lircd_conf="kworld/lircd.conf.kworld"
13870
#  lircmd_conf="kworld/lircmd.conf.kworld"
13871
fi
13872
13873
if test "$driver" = "leadtek_0007"; then
13874
  lirc_driver="lirc_dev lirc_gpio"
13875
  lircd_conf="leadtek/lircd.conf.RM-0007"
13876
  lircmd_conf="leadtek/lircmd.conf.RM-0007"
13877
fi
13878
13879
if test "$driver" = "leadtek_0010"; then
13880
  lirc_driver="lirc_dev lirc_gpio"
13881
  lircd_conf="leadtek/lircd.conf.RM-0010"
13882
  lircmd_conf="leadtek/lircmd.conf.RM-0010"
13883
fi
13884
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13885
if test "$driver" = "leadtek_pvr2000"; then
13886
  lirc_driver="lirc_dev lirc_i2c"
13887
  lircd_conf="leadtek/lircd.conf.PVR2000"
13888
#  lircmd_conf="leadtek/lircmd.conf.PVR2000"
13889
fi
13890
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13891
if test "$driver" = "livedrive_midi"; then
13892
  lirc_driver="none"
13893
  hw_module="hw_livedrive_common.o hw_livedrive_midi.o"
13894
  HW_DEFAULT="hw_livedrive_midi"
13895
  lircd_conf="creative/lircd.conf.livedrive"
13896
#  lircmd_conf="creative/lircmd.conf.livedrive"
13897
fi
13898
13899
if test "$driver" = "livedrive_seq"; then
13900
  lirc_driver="none"
13901
  hw_module="hw_livedrive_common.o hw_livedrive_seq.o"
13902
  HW_DEFAULT="hw_livedrive_seq"
13903
  lircd_conf="creative/lircd.conf.livedrive"
13904
#  lircmd_conf="creative/lircmd.conf.livedrive"
13905
fi
13906
13907
if test "$driver" = "logitech"; then
13908
  lirc_driver="none"
13909
  hw_module="hw_logitech.o serial.o"
13910
  HW_DEFAULT="hw_logitech"
13911
  lircd_conf="logitech/lircd.conf.logitech"
13912
  lircmd_conf="logitech/lircmd.conf.logitech"
13913
fi
13914
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13915
if test "$driver" = "lpt1"; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13916
  lirc_driver="lirc_dev lirc_parallel"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13917
  port=0x378
13918
  irq=7
13919
fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13920
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13921
if test "$driver" = "lpt2"; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13922
  lirc_driver="lirc_dev lirc_parallel"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13923
  port=0x278
13924
  irq=5
13925
fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13926
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
13927
if test "$driver" = "macmini"; then
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13928
  lirc_driver="$driver"
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
13929
  hw_module="hw_hiddev.o"
13930
  HW_DEFAULT="hw_macmini"
13931
  lircd_conf="apple/lircd.conf.macmini"
13932
fi
13933
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13934
if test "$driver" = "mceusb"; then
13935
  lirc_driver="lirc_dev lirc_mceusb"
13936
  lircd_conf="mceusb/lircd.conf.mceusb"
13937
fi
13938
13939
if test "$driver" = "mediafocusI"; then
13940
  lirc_driver="none"
13941
  lircd_conf="technisat/lircd.conf.mediafocusI"
13942
#  lircmd_conf="technisat/lircmd.conf.mediafocusI"
13943
fi
13944
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
13945
if test "$driver" = "mouseremote"; then
13946
  lirc_driver="none"
13947
  hw_module="hw_mouseremote.o serial.o"
13948
  HW_DEFAULT="hw_mouseremote"
13949
  lircd_conf="x10/lircd.conf.mouseremote"
13950
  lircmd_conf="x10/lircmd.conf.mouseremote"
13951
fi
13952
13953
if test "$driver" = "mouseremote_ps2"; then
13954
  lirc_driver="none"
13955
  hw_module="hw_mouseremote.o serial.o"
13956
  HW_DEFAULT="hw_mouseremote_ps2"
13957
  lircd_conf="x10/lircd.conf.mouseremote"
13958
  lircmd_conf="x10/lircmd.conf.mouseremote"
13959
fi
13960
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13961
if test "$driver" = "mp3anywhere"; then
13962
  lirc_driver="none"
13963
  hw_module="hw_mp3anywhere.o serial.o"
13964
  HW_DEFAULT="hw_mp3anywhere"
13965
  lircd_conf="x10/lircd.conf.mp3anywhere"
13966
fi
13967
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
13968
if test "$driver" = "mplay"; then
13969
  lirc_driver="none"
13970
  hw_module="hw_mplay.o serial.o"
13971
  HW_DEFAULT="hw_mplay"
13972
  lircd_conf="vlsystem/lircd.conf.mplay"
13973
fi
13974
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13975
if test "$driver" = "nslu2"; then
13976
  lirc_driver="lirc_dev lirc_serial"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
13977
  $as_echo "#define LIRC_SERIAL_NSLU2 1" >>confdefs.h
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
13978
13979
fi
13980
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
13981
if test "$driver" = "packard_bell"; then
13982
  lirc_driver="lirc_dev lirc_serial"
13983
  lircd_conf="packard_bell/lircd.conf.packard_bell"
13984
fi
13985
13986
if test "$driver" = "parallel"; then
13987
  lirc_driver="lirc_dev lirc_parallel"
13988
fi
13989
13990
if test "$driver" = "pcmak" -o "$driver" = "pcmak_usb"; then
13991
  lirc_driver="none"
13992
  hw_module="hw_pcmak.o serial.o"
13993
  HW_DEFAULT="hw_pcmak"
13994
  lircd_conf="pcmak/lircd.conf.pcmak"
13995
  lircmd_conf="pcmak/lircmd.conf.pcmak"
13996
fi
13997
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
13998
if test "$driver" = "pctv"; then
13999
  lirc_driver="none"
14000
  hw_module="hw_pinsys.o serial.o"
14001
  HW_DEFAULT="hw_pinsys"
14002
  lircd_conf="pinnacle_systems/lircd.conf.pctv"
14003
#  lircmd_conf="pinnacle_systems/lircmd.conf.pctv"
14004
fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14005
14006
if test "$driver" = "pixelview_bt878"; then
14007
  lirc_driver="lirc_dev lirc_i2c"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14008
  lircd_conf="pixelview/lircd.conf.playtv_bt878"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14009
#  lircmd_conf="pixelview/lircmd.conf.pixelview_bt878"
14010
fi
14011
14012
if test "$driver" = "pixelview_pak"; then
14013
  lirc_driver="lirc_dev lirc_gpio"
14014
# the config files are the same as for the PlayTV pro
14015
  lircd_conf="pixelview/lircd.conf.playtv_pro"
14016
  lircmd_conf="pixelview/lircmd.conf.playtv_pro"
14017
fi
14018
14019
if test "$driver" = "pixelview_pro"; then
14020
  lirc_driver="lirc_dev lirc_gpio"
14021
  lircd_conf="pixelview/lircd.conf.playtv_pro"
14022
  lircmd_conf="pixelview/lircmd.conf.playtv_pro"
14023
fi
14024
14025
if test "$driver" = "provideo"; then
14026
  lirc_driver="lirc_dev lirc_i2c"
14027
  lircd_conf="provideo/lircd.conf.pv951"
14028
#  lircmd_conf="provideo/lircmd.conf.pv951"
14029
fi
14030
14031
if test "$driver" = "realmagic"; then
14032
  lirc_driver="none"
14033
  hw_module="hw_pixelview.o serial.o"
14034
  HW_DEFAULT="hw_pixelview"
14035
  lircd_conf="sigma_designs/lircd.conf.realmagic"
14036
#  lircmd_conf="sigma_designs/lircmd.conf.realmagic"
14037
fi
14038
14039
if test "$driver" = "remotemaster"; then
14040
  lirc_driver="none"
14041
  hw_module="hw_pixelview.o serial.o"
14042
  HW_DEFAULT="hw_pixelview"
14043
  lircd_conf="pixelview/lircd.conf.remotemaster"
14044
  lircmd_conf="pixelview/lircmd.conf.remotemaster"
14045
fi
14046
14047
if test "$driver" = "sa1100"; then
14048
  lirc_driver="lirc_dev lirc_sir"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14049
  $as_echo "#define LIRC_ON_SA1100 1" >>confdefs.h
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14050
14051
fi
14052
14053
if test "$driver" = "sasem"; then
14054
  lirc_driver="lirc_dev lirc_sasem"
14055
  lircd_conf="sasem/lircd.conf.sasem"
14056
fi
14057
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14058
if test "$driver" = "samsung"; then
14059
  lirc_driver="$driver"
14060
  hw_module="hw_hiddev.o"
14061
  HW_DEFAULT="hw_samsung"
14062
  lircd_conf="samsung/lircd.conf.samsung"
14063
fi
14064
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
14065
if test "$driver" = "sb0540"; then
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14066
  lirc_driver="$driver"
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
14067
  hw_module="hw_hiddev.o"
14068
  HW_DEFAULT="hw_sb0540"
14069
# original RM-1500 is included here
14070
  lircd_conf="creative/lircd.conf.alsa_usb"
14071
fi
14072
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14073
if test "$driver" = "serial"; then
14074
  lirc_driver="lirc_dev lirc_serial"
14075
fi
14076
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14077
if test "$driver" = "silitek"; then
14078
  lirc_driver="none"
14079
  hw_module="hw_silitek.o serial.o"
14080
  HW_DEFAULT="hw_silitek"
14081
  lircd_conf="silitek/lircd.conf.silitek"
14082
  lircmd_conf="silitek/lircmd.conf.silitek"
14083
fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14084
14085
if test "$driver" = "sir"; then
14086
  lirc_driver="lirc_dev lirc_sir"
14087
fi
14088
14089
if test "$driver" = "sir_com3"; then
14090
  lirc_driver="lirc_dev lirc_sir"
14091
  port=0x3e8
14092
  irq=4
14093
fi
14094
14095
if test "$driver" = "slinke"; then
14096
  echo
14097
  echo "Please use lirc-0.6.5. The Slink-e is no longer supported."
14098
  echo
14099
  exit 1
14100
  lirc_driver="none"
14101
  hw_module="hw_slinke.o serial.o receive.o"
14102
  HW_DEFAULT="hw_slinke"
14103
fi
14104
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14105
if test "$driver" = "srm7500libusb"; then
14106
  lirc_driver="$driver"
14107
  hw_module="hw_srm7500libusb.o receive.o"
14108
  HW_DEFAULT="hw_srm7500libusb"
14109
  lircd_conf="philips/lircd.conf.srm7500libusb"
14110
  if test -n "${LIBUSB_CONFIG}"; then
14111
    srm7500libusb_lib=`${LIBUSB_CONFIG} --libs`
14112
    CFLAGS="$CFLAGS `${LIBUSB_CONFIG} --cflags`"
14113
  fi
14114
fi
14115
1.2.1 by Amaya Rodrigo Sastre
Import upstream version 0.7.1pre2
14116
if test "$driver" = "streamzap"; then
14117
  lirc_driver="lirc_dev lirc_streamzap"
14118
  lircd_conf="streamzap/lircd.conf.streamzap"
14119
fi
14120
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14121
if test "$driver" = "tekram"; then
14122
  lirc_driver="lirc_dev lirc_sir"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14123
  $as_echo "#define LIRC_SIR_TEKRAM 1" >>confdefs.h
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14124
14125
fi
14126
14127
if test "$driver" = "tekram_bt829"; then
14128
  lirc_driver="lirc_dev lirc_bt829"
14129
  lircd_conf="tekram/lircd.conf.m230"
14130
  lircmd_conf="tekram/lircmd.conf.m230"
14131
fi
14132
14133
if test "$driver" = "tira"; then
14134
  lirc_driver="none"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14135
  hw_module="hw_tira.o serial.o receive.o transmit.o"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14136
  HW_DEFAULT="hw_tira"
14137
fi
14138
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14139
if test "$driver" = "tira_raw"; then
14140
  lirc_driver="none"
14141
  hw_module="hw_tira.o serial.o receive.o transmit.o"
14142
  HW_DEFAULT="hw_tira_raw"
14143
fi
14144
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14145
if test "$driver" = "ttusbir"; then
14146
  lirc_driver="lirc_dev lirc_ttusbir"
14147
fi
14148
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
14149
if test "$driver" = "tuxbox"; then
14150
  lirc_driver="none"
14151
  hw_module="hw_default.o receive.o transmit.o"
14152
  HW_DEFAULT="hw_default"
14153
fi
14154
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14155
if test "$driver" = "tvbox"; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14156
  lirc_driver="lirc_dev lirc_i2c"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14157
  lircd_conf="asus/lircd.conf.asus"
14158
fi
14159
14160
if test "$driver" = "udp"; then
14161
  lirc_driver="none"
14162
  hw_module="hw_udp.o receive.o"
14163
  HW_DEFAULT="hw_udp"
14164
fi
14165
14166
if test "$driver" = "uirt2"; then
14167
  lirc_driver="none"
14168
  hw_module="hw_uirt2.o serial.o"
14169
  HW_DEFAULT="hw_uirt2"
14170
fi
14171
if test "$driver" = "uirt2_raw"; then
14172
  lirc_driver="none"
14173
  hw_module="hw_uirt2_raw.o hw_uirt2_common.o serial.o receive.o transmit.o"
14174
  HW_DEFAULT="hw_uirt2_raw"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14175
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14176
if test "$driver" = "usb_uirt_raw"; then
14177
  lirc_driver="none"
14178
  hw_module="hw_uirt2_raw.o hw_uirt2_common.o serial.o receive.o transmit.o"
14179
  HW_DEFAULT="hw_usb_uirt_raw"
14180
fi
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
14181
if test "$driver" = "usbx"; then
14182
  lirc_driver="none"
14183
  hw_module="hw_usbx.o serial.o"
14184
  HW_DEFAULT="hw_usbx"
14185
  lircd_conf="adstech/lircd.conf.usbx-707"
14186
fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14187
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
14188
if test "$driver" = "wpc8769l"; then
14189
  lirc_driver="lirc_dev lirc_wpc8769l"
14190
  lircd_conf="acer/lircd.conf.Aspire_6530G"
14191
fi
14192
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
14193
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14194
#END HARDWARE HEURISTIC
14195
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14196
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14197
#define HW_DEFAULT ${HW_DEFAULT}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14198
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14199
14200
14201
14202
if test "$lirc_driver" = "unset"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14203
  as_fn_error "no driver specified, try ./configure --help" "$LINENO" 5
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14204
fi
14205
14206
if echo ${possible_drivers} | grep "($lirc_driver)" >/dev/null 2>&1; then
14207
  dummy=
14208
else
14209
  case $lirc_driver in
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
14210
  ftdi*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14211
    as_fn_error "*** you need to first install the libftdi package
14212
	before you can use this driver" "$LINENO" 5
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
14213
    ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14214
  irman*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14215
    as_fn_error "*** you need to first install the libirman package
14216
	(libirman-0.4.2 or better) before you can use this driver" "$LINENO" 5
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14217
    ;;
14218
  caraca*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14219
    as_fn_error "*** you need to first install the caraca package
14220
	before you can use this driver" "$LINENO" 5
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14221
    ;;
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
14222
  all|lirc_*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14223
    as_fn_error "*** you need to have the Linux kernel source installed
14224
	for this driver" "$LINENO" 5
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14225
    ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14226
  atilibusb|awlibusb|commandir|dfclibusb|srm7500libusb)
14227
    as_fn_error "*** you need to have libusb installed for this driver.
14228
14229
Get it at:
14230
14231
  http://libusb.sourceforge.net/
14232
14233
Or install these packages from your distro:
14234
14235
   libusb
14236
   libusb-dev
14237
14238
" "$LINENO" 5
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14239
    ;;
14240
  audio)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14241
    as_fn_error "*** you need to have the PortAudio library V19 installed
14242
to use the audio driver. You can get it at:
14243
  http://www.portaudio.com/
14244
" "$LINENO" 5
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14245
    ;;
14246
  audio_alsa)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14247
    as_fn_error "*** you need to have the ALSA headers and libraries
14248
	for this driver" "$LINENO" 5
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14249
    ;;
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
14250
  alsa_usb)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14251
    as_fn_error "*** you need to have the ALSA libraries and drivers
14252
	from at least version 1.0.9 for this driver" "$LINENO" 5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14253
    ;;
14254
  iguanaIR)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14255
    as_fn_error "*** you need to have the iguanaIR headers and
14256
        libraries for this driver" "$LINENO" 5
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
14257
    ;;
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14258
  *)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14259
    as_fn_error "*** it is not possible to install the specified driver
14260
	on this system" "$LINENO" 5
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14261
    ;;
14262
  esac
14263
fi
14264
14265
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14266
if test "$lirc_driver" = "none" || \
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
14267
	test "$lirc_driver" = "alsa_usb" || \
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14268
	test "$lirc_driver" = "asusdh" || \
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14269
	test "$lirc_driver" = "atilibusb" || \
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14270
	test "$lirc_driver" = "atwf83" || \
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14271
	test "$lirc_driver" = "audio" || \
14272
	test "$lirc_driver" = "audio_alsa" || \
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
14273
	test "$lirc_driver" = "awlibusb" || \
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14274
	test "$lirc_driver" = "bw6130" || \
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14275
	test "$lirc_driver" = "caraca" || \
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
14276
	test "$lirc_driver" = "commandir" || \
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14277
	test "$lirc_driver" = "dfclibusb" || \
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14278
	test "$lirc_driver" = "dvico" || \
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14279
	test "$lirc_driver" = "iguanaIR" || \
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14280
	test "$lirc_driver" = "irman" || \
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14281
	test "$lirc_driver" = "irman_sw" || \
14282
	test "$lirc_driver" = "macmini" || \
14283
	test "$lirc_driver" = "samsung" || \
14284
	test "$lirc_driver" = "sb0540" || \
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14285
	test "$lirc_driver" = "srm7500libusb" || \
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14286
	test "$lirc_driver" = "userspace"; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14287
  lirc_driver=
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
14288
elif test "$lirc_driver" = "all"; then
14289
  lirc_driver="lirc_dev \
14290
	lirc_atiusb \
14291
	lirc_bt829 \
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
14292
	lirc_ene0100 \
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
14293
	lirc_i2c \
14294
	lirc_igorplugusb \
14295
	lirc_imon \
14296
	lirc_it87 \
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
14297
	lirc_ite8709 \
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
14298
	lirc_mceusb \
14299
	lirc_parallel \
14300
	lirc_sasem \
14301
	lirc_serial \
14302
	lirc_sir \
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14303
	lirc_streamzap \
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
14304
	lirc_ttusbir \
14305
	lirc_wpc8769l"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14306
fi
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14307
if kernel_module=$(expr "$lirc_driver" : 'lirc_dev \(.*\)'); then
14308
  :
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14309
elif test "$lirc_driver" != ""; then
14310
  kernel_module=$lirc_driver
14311
fi
14312
14313
14314
14315
maintmode_daemons_extra=
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14316
# Check whether --enable-maintainer-mode was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14317
if test "${enable_maintainer_mode+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14318
  enableval=$enable_maintainer_mode;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14319
if test x${enableval} = xyes; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14320
$as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14321
14322
maintmode_daemons_extra="lircd.simrec lircd.simsend slinke"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14323
fi
14324
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14325
fi
14326
14327
14328
14329
# Check whether --enable-sandboxed was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14330
if test "${enable_sandboxed+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14331
  enableval=$enable_sandboxed;  enable_sandboxed="${enableval}"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14332
else
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14333
   enable_sandboxed="no"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14334
fi
14335
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14336
 if test x$enable_sandboxed = xyes; then
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14337
  SANDBOXED_TRUE=
14338
  SANDBOXED_FALSE='#'
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14339
else
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14340
  SANDBOXED_TRUE='#'
14341
  SANDBOXED_FALSE=
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14342
fi
14343
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14344
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14345
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14346
# Check whether --with-devdir was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14347
if test "${with_devdir+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14348
  withval=$with_devdir; devdir=${withval}
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14349
else
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14350
  devdir=${devdir_default}
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14351
fi
14352
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14353
14354
default_moduledir=/lib/modules/`uname -r`/misc
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14355
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14356
# Check whether --with-moduledir was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14357
if test "${with_moduledir+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14358
  withval=$with_moduledir; moduledir=${withval}
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14359
else
14360
  moduledir=${default_moduledir}
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14361
fi
14362
14363
14364
# Check whether --enable-long-codes was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14365
if test "${enable_long_codes+set}" = set; then :
14366
  enableval=$enable_long_codes; test x${enableval} = xyes && $as_echo "#define LONG_IR_CODE 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14367
14368
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14369
  $as_echo "#define LONG_IR_CODE 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14370
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14371
fi
14372
14373
14374
# Check whether --enable-dyncodes was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14375
if test "${enable_dyncodes+set}" = set; then :
14376
  enableval=$enable_dyncodes; test x${enableval} = xyes && $as_echo "#define DYNCODES 1" >>confdefs.h
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14377
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14378
fi
14379
14380
14381
14382
# Check whether --with-major was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14383
if test "${with_major+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14384
  withval=$with_major; lirc_major=${withval}
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14385
else
14386
  lirc_major=61
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14387
fi
14388
14389
14390
14391
# Check whether --with-port was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14392
if test "${with_port+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14393
  withval=$with_port; port=${withval}
14394
14395
fi
14396
14397
14398
14399
# Check whether --with-irq was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14400
if test "${with_irq+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14401
  withval=$with_irq; irq=${withval}
14402
14403
fi
14404
14405
14406
14407
# Check whether --with-timer was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14408
if test "${with_timer+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14409
  withval=$with_timer; timer=${withval}
14410
fi
14411
14412
14413
14414
# Check whether --with-tty was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14415
if test "${with_tty+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14416
  withval=$with_tty; irtty=${withval}
14417
fi
14418
14419
14420
14421
# Check whether --with-soft-carrier was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14422
if test "${with_soft_carrier+set}" = set; then :
14423
  withval=$with_soft_carrier; test x${withval} = xyes && $as_echo "#define LIRC_SERIAL_SOFTCARRIER 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14424
14425
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14426
  $as_echo "#define LIRC_SERIAL_SOFTCARRIER 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14427
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14428
fi
14429
14430
14431
14432
# Check whether --with-transmitter was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14433
if test "${with_transmitter+set}" = set; then :
14434
  withval=$with_transmitter; test x${withval} = xyes && $as_echo "#define LIRC_SERIAL_TRANSMITTER 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14435
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14436
fi
14437
14438
14439
14440
# Check whether --with-igor was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14441
if test "${with_igor+set}" = set; then :
14442
  withval=$with_igor; test x${withval} = xyes && $as_echo "#define LIRC_SERIAL_IGOR 1" >>confdefs.h
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
14443
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14444
fi
14445
14446
14447
# Check whether --enable-debug was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14448
if test "${enable_debug+set}" = set; then :
14449
  enableval=$enable_debug; test x${enableval} = xyes && $as_echo "#define DEBUG 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14450
14451
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14452
fi
14453
14454
14455
# Check whether --enable-daemonize was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14456
if test "${enable_daemonize+set}" = set; then :
14457
  enableval=$enable_daemonize; test x${enableval} = xyes && $as_echo "#define DAEMONIZE 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14458
14459
else
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14460
14461
for ac_func in daemon
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14462
do :
14463
  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
14464
if test "x$ac_cv_func_daemon" = x""yes; then :
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14465
  cat >>confdefs.h <<_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14466
#define HAVE_DAEMON 1
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14467
_ACEOF
14468
14469
fi
14470
done
14471
14472
if test "$ac_cv_func_daemon" != yes; then
14473
  daemon=""
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14474
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daemon in -lbsd" >&5
14475
$as_echo_n "checking for daemon in -lbsd... " >&6; }
14476
if test "${ac_cv_lib_bsd_daemon+set}" = set; then :
14477
  $as_echo_n "(cached) " >&6
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14478
else
14479
  ac_check_lib_save_LIBS=$LIBS
14480
LIBS="-lbsd  $LIBS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14481
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14482
/* end confdefs.h.  */
14483
14484
/* Override any GCC internal prototype to avoid an error.
14485
   Use char because int might match the return type of a GCC
14486
   builtin and then its argument prototype would still apply.  */
14487
#ifdef __cplusplus
14488
extern "C"
14489
#endif
14490
char daemon ();
14491
int
14492
main ()
14493
{
14494
return daemon ();
14495
  ;
14496
  return 0;
14497
}
14498
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14499
if ac_fn_c_try_link "$LINENO"; then :
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14500
  ac_cv_lib_bsd_daemon=yes
14501
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14502
  ac_cv_lib_bsd_daemon=no
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14503
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14504
rm -f core conftest.err conftest.$ac_objext \
14505
    conftest$ac_exeext conftest.$ac_ext
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14506
LIBS=$ac_check_lib_save_LIBS
14507
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_daemon" >&5
14509
$as_echo "$ac_cv_lib_bsd_daemon" >&6; }
14510
if test "x$ac_cv_lib_bsd_daemon" = x""yes; then :
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14511
  daemon="-lbsd"
14512
fi
14513
14514
  if test "$daemon" = ""; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14515
    as_fn_error "*** daemon() function not available on this system and --disable-daemonize not specified" "$LINENO" 5
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14516
  fi
14517
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14518
$as_echo "#define DAEMONIZE 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14519
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14520
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14521
fi
14522
14523
14524
14525
# Check whether --with-syslog was given.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14526
if test "${with_syslog+set}" = set; then :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14527
  withval=$with_syslog; if test -n "${withval}"; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14528
  facility="${withval}"
14529
  if test "${withval}" = yes; then
14530
    facility=LOG_DAEMON;
14531
  elif test "${withval}" = LOG_AUTH; then
14532
    true;
14533
  elif test "${withval}" = LOG_AUTHPRIV; then
14534
    true;
14535
  elif test "${withval}" = LOG_DAEMON; then
14536
    true;
14537
  elif test "${withval}" = LOG_LOCAL0; then
14538
    true;
14539
  elif test "${withval}" = LOG_LOCAL1; then
14540
    true;
14541
  elif test "${withval}" = LOG_LOCAL2; then
14542
    true;
14543
  elif test "${withval}" = LOG_LOCAL3; then
14544
    true;
14545
  elif test "${withval}" = LOG_LOCAL4; then
14546
    true;
14547
  elif test "${withval}" = LOG_LOCAL5; then
14548
    true;
14549
  elif test "${withval}" = LOG_LOCAL6; then
14550
    true;
14551
  elif test "${withval}" = LOG_LOCAL7; then
14552
    true;
14553
  elif test "${withval}" = LOG_USER; then
14554
    true;
14555
  else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14556
    as_fn_error "*** invalid facility (see syslog(3) for possible facilities) " "$LINENO" 5
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14557
  fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14558
  $as_echo "#define USE_SYSLOG 1" >>confdefs.h
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14559
14560
fi
14561
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14562
fi
14563
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14564
14565
cur_prefix=$prefix
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14566
test "x${prefix}" = "xNONE" && prefix=$ac_default_prefix
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14567
test "${sysconfdir}" = "\${prefix}/etc" && sysconfdir=/etc
14568
test "${localstatedir}" = "\${prefix}/var" && localstatedir=/var
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
14569
varrundir="${localstatedir}/run"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14570
sysconfdir_exp=`eval "echo ${sysconfdir}"`
14571
localstatedir_exp=`eval "echo ${localstatedir}"`
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
14572
varrundir_exp=`eval "echo ${varrundir}"`
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14573
prefix=$cur_prefix
14574
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
14575
receive=""
14576
if ! echo ${hw_module}|grep " receive.o" >/dev/null; then
14577
	receive="receive.o"
14578
fi
14579
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14580
hw_module_libs="${alsa_lib} ${atilibusb_lib} ${awlibusb_lib} ${caraca_lib} ${commandir_lib} ${dfclibusb_lib} ${ftdi_lib} ${iguanaIR_lib} ${irman_lib} ${portaudio_lib} ${srm7500libusb_lib} ${atwf83_lib}"
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
1.2.6 by Mario Limonciello
Import upstream version 0.8.3
14598
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
14599
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14600
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14601
#define DEVDIR "$devdir"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14602
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14603
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14604
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14605
#define SYSCONFDIR "$sysconfdir_exp"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14606
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14607
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14608
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14609
#define LOCALSTATEDIR "$localstatedir_exp"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14610
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14611
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
14612
14613
cat >>confdefs.h <<_ACEOF
14614
#define VARRUNDIR "$varrundir_exp"
14615
_ACEOF
14616
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14617
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14618
#define PACKAGE "$PACKAGE"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14619
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14620
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14621
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14622
#define VERSION "$VERSION"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14623
_ACEOF
14624
14625
14626
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14627
#define LIRC_DRIVER "$driver"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14628
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14629
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14630
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14631
#define LIRC_MAJOR $lirc_major
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14632
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14633
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
14634
if test "$port" != ""; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14635
  cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14636
#define LIRC_PORT $port
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14637
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14638
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
14639
fi
14640
if test "$irq" != ""; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14641
  cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14642
#define LIRC_IRQ $irq
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14643
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14644
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
14645
fi
14646
if test "$timer" != ""; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14647
  cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14648
#define LIRC_TIMER $timer
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14649
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14650
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
14651
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14652
if test "$irtty" != ""; then
14653
  cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14654
#define LIRC_IRTTY "$irtty"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14655
_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14656
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14657
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14658
cat >>confdefs.h <<_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14659
#define LIRC_SYSLOG $facility
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14660
_ACEOF
14661
14662
14663
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14664
14665
14666
14667
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
14668
ac_config_files="$ac_config_files Makefile drivers/Makefile drivers/lirc_atiusb/Makefile drivers/lirc_bt829/Makefile drivers/lirc_ene0100/Makefile drivers/lirc_dev/Makefile drivers/lirc_gpio/Makefile drivers/lirc_i2c/Makefile drivers/lirc_igorplugusb/Makefile drivers/lirc_ttusbir/Makefile drivers/lirc_imon/Makefile drivers/lirc_it87/Makefile drivers/lirc_ite8709/Makefile drivers/lirc_mceusb/Makefile drivers/lirc_parallel/Makefile drivers/lirc_sasem/Makefile drivers/lirc_serial/Makefile drivers/lirc_sir/Makefile drivers/lirc_streamzap/Makefile drivers/lirc_wpc8769l/Makefile daemons/Makefile tools/Makefile doc/Makefile doc/man/Makefile"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14669
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14670
cat >confcache <<\_ACEOF
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14671
# This file is a shell script that caches the results of configure
14672
# tests run on this system so they can be shared between configure
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14673
# scripts and configure runs, see configure's option --config-cache.
14674
# It is not useful on other systems.  If it contains results you don't
14675
# want to keep, you may remove or edit it.
14676
#
14677
# config.status only pays attention to the cache file if you give it
14678
# the --recheck option to rerun configure.
14679
#
14680
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14681
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14682
# following values.
14683
14684
_ACEOF
14685
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14686
# The following way of writing the cache mishandles newlines in values,
14687
# but we know of no workaround that is simple, portable, and efficient.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14688
# So, we kill variables containing newlines.
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14689
# Ultrix sh set writes to stderr and can't be redirected directly,
14690
# and sets the high bit in the cache file unless we assign to the vars.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14691
(
14692
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14693
    eval ac_val=\$$ac_var
14694
    case $ac_val in #(
14695
    *${as_nl}*)
14696
      case $ac_var in #(
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14697
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14698
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14699
      esac
14700
      case $ac_var in #(
14701
      _ | IFS | as_nl) ;; #(
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14702
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14703
      *) { eval $ac_var=; unset $ac_var;} ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14704
      esac ;;
14705
    esac
14706
  done
14707
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14708
  (set) 2>&1 |
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14709
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14710
    *${as_nl}ac_space=\ *)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14711
      # `set' does not quote correctly, so add quotes: double-quote
14712
      # substitution turns \\\\ into \\, and sed turns \\ into \.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14713
      sed -n \
14714
	"s/'/'\\\\''/g;
14715
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14716
      ;; #(
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14717
    *)
14718
      # `set' quotes correctly as required by POSIX, so do not add quotes.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14719
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14720
      ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14721
    esac |
14722
    sort
14723
) |
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14724
  sed '
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14725
     /^ac_cv_env_/b end
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14726
     t clear
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14727
     :clear
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14728
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14729
     t end
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14730
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14731
     :end' >>confcache
14732
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14733
  if test -w "$cache_file"; then
14734
    test "x$cache_file" != "x/dev/null" &&
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14735
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14736
$as_echo "$as_me: updating cache $cache_file" >&6;}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14737
    cat confcache >$cache_file
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14738
  else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14739
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14740
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14741
  fi
14742
fi
14743
rm -f confcache
14744
14745
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14746
# Let make expand exec_prefix.
14747
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14748
14749
DEFS=-DHAVE_CONFIG_H
14750
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14751
ac_libobjs=
14752
ac_ltlibobjs=
14753
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14754
  # 1. Remove the extension, and $U if already installed.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14755
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14756
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14757
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14758
  #    will be set to the directory where LIBOBJS objects are built.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14759
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14760
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14761
done
14762
LIBOBJS=$ac_libobjs
14763
14764
LTLIBOBJS=$ac_ltlibobjs
14765
14766
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14767
 if test -n "$EXEEXT"; then
14768
  am__EXEEXT_TRUE=
14769
  am__EXEEXT_FALSE='#'
14770
else
14771
  am__EXEEXT_TRUE='#'
14772
  am__EXEEXT_FALSE=
14773
fi
14774
14775
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14776
  as_fn_error "conditional \"AMDEP\" was never defined.
14777
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14778
fi
14779
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14780
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14781
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14782
fi
14783
if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
14784
  as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
14785
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14786
fi
14787
if test -z "${USE_FIFOS_TRUE}" && test -z "${USE_FIFOS_FALSE}"; then
14788
  as_fn_error "conditional \"USE_FIFOS\" was never defined.
14789
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14790
fi
14791
if test -z "${SANDBOXED_TRUE}" && test -z "${SANDBOXED_FALSE}"; then
14792
  as_fn_error "conditional \"SANDBOXED\" was never defined.
14793
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14794
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14795
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14796
: ${CONFIG_STATUS=./config.status}
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14797
ac_write_fail=0
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14798
ac_clean_files_save=$ac_clean_files
14799
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14800
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14801
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14802
as_write_fail=0
14803
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14804
#! $SHELL
14805
# Generated by $as_me.
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
14806
# Run this file to recreate the current configuration.
14807
# Compiler output produced by configure, useful for debugging
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14808
# configure, is in config.log if it exists.
14809
14810
debug=false
14811
ac_cs_recheck=false
14812
ac_cs_silent=false
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14813
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14814
SHELL=\${CONFIG_SHELL-$SHELL}
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14815
export SHELL
14816
_ASEOF
14817
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14818
## -------------------- ##
14819
## M4sh Initialization. ##
14820
## -------------------- ##
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14821
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14822
# Be more Bourne compatible
14823
DUALCASE=1; export DUALCASE # for MKS sh
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14824
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14825
  emulate sh
14826
  NULLCMD=:
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14827
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14828
  # is contrary to our usage.  Disable this feature.
14829
  alias -g '${1+"$@"}'='"$@"'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14830
  setopt NO_GLOB_SUBST
14831
else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14832
  case `(set -o) 2>/dev/null` in #(
14833
  *posix*) :
14834
    set -o posix ;; #(
14835
  *) :
14836
     ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14837
esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14838
fi
14839
14840
14841
as_nl='
14842
'
14843
export as_nl
14844
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14845
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14846
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14847
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14848
# Prefer a ksh shell builtin over an external printf program on Solaris,
14849
# but without wasting forks for bash or zsh.
14850
if test -z "$BASH_VERSION$ZSH_VERSION" \
14851
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14852
  as_echo='print -r --'
14853
  as_echo_n='print -rn --'
14854
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14855
  as_echo='printf %s\n'
14856
  as_echo_n='printf %s'
14857
else
14858
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14859
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14860
    as_echo_n='/usr/ucb/echo -n'
14861
  else
14862
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14863
    as_echo_n_body='eval
14864
      arg=$1;
14865
      case $arg in #(
14866
      *"$as_nl"*)
14867
	expr "X$arg" : "X\\(.*\\)$as_nl";
14868
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14869
      esac;
14870
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14871
    '
14872
    export as_echo_n_body
14873
    as_echo_n='sh -c $as_echo_n_body as_echo'
14874
  fi
14875
  export as_echo_body
14876
  as_echo='sh -c $as_echo_body as_echo'
14877
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14878
14879
# The user is always right.
14880
if test "${PATH_SEPARATOR+set}" != set; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14881
  PATH_SEPARATOR=:
14882
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14883
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14884
      PATH_SEPARATOR=';'
14885
  }
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14886
fi
14887
14888
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14889
# IFS
14890
# We need space, tab and new line, in precisely that order.  Quoting is
14891
# there to prevent editors from complaining about space-tab.
14892
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14893
# splitting by setting IFS to empty value.)
14894
IFS=" ""	$as_nl"
14895
14896
# Find who we are.  Look in the path if we contain no directory separator.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14897
case $0 in #((
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14898
  *[\\/]* ) as_myself=$0 ;;
14899
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14900
for as_dir in $PATH
14901
do
14902
  IFS=$as_save_IFS
14903
  test -z "$as_dir" && as_dir=.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14904
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14905
  done
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14906
IFS=$as_save_IFS
14907
14908
     ;;
14909
esac
14910
# We did not find ourselves, most probably we were run as `sh COMMAND'
14911
# in which case we are not to be found in the path.
14912
if test "x$as_myself" = x; then
14913
  as_myself=$0
14914
fi
14915
if test ! -f "$as_myself"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14916
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14917
  exit 1
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14918
fi
14919
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14920
# Unset variables that we do not need and which cause bugs (e.g. in
14921
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14922
# suppresses any "Segmentation fault" message there.  '((' could
14923
# trigger a bug in pdksh 5.2.14.
14924
for as_var in BASH_ENV ENV MAIL MAILPATH
14925
do eval test x\${$as_var+set} = xset \
14926
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
14927
done
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14928
PS1='$ '
14929
PS2='> '
14930
PS4='+ '
14931
14932
# NLS nuisances.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14933
LC_ALL=C
14934
export LC_ALL
14935
LANGUAGE=C
14936
export LANGUAGE
14937
14938
# CDPATH.
14939
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14940
14941
14942
# as_fn_error ERROR [LINENO LOG_FD]
14943
# ---------------------------------
14944
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14945
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14946
# script with status $?, using 1 if that was 0.
14947
as_fn_error ()
14948
{
14949
  as_status=$?; test $as_status -eq 0 && as_status=1
14950
  if test "$3"; then
14951
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14952
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
14953
  fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
14954
  $as_echo "$as_me: error: $1" >&2
14955
  as_fn_exit $as_status
14956
} # as_fn_error
14957
14958
14959
# as_fn_set_status STATUS
14960
# -----------------------
14961
# Set $? to STATUS, without forking.
14962
as_fn_set_status ()
14963
{
14964
  return $1
14965
} # as_fn_set_status
14966
14967
# as_fn_exit STATUS
14968
# -----------------
14969
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14970
as_fn_exit ()
14971
{
14972
  set +e
14973
  as_fn_set_status $1
14974
  exit $1
14975
} # as_fn_exit
14976
14977
# as_fn_unset VAR
14978
# ---------------
14979
# Portably unset VAR.
14980
as_fn_unset ()
14981
{
14982
  { eval $1=; unset $1;}
14983
}
14984
as_unset=as_fn_unset
14985
# as_fn_append VAR VALUE
14986
# ----------------------
14987
# Append the text in VALUE to the end of the definition contained in VAR. Take
14988
# advantage of any shell optimizations that allow amortized linear growth over
14989
# repeated appends, instead of the typical quadratic growth present in naive
14990
# implementations.
14991
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14992
  eval 'as_fn_append ()
14993
  {
14994
    eval $1+=\$2
14995
  }'
14996
else
14997
  as_fn_append ()
14998
  {
14999
    eval $1=\$$1\$2
15000
  }
15001
fi # as_fn_append
15002
15003
# as_fn_arith ARG...
15004
# ------------------
15005
# Perform arithmetic evaluation on the ARGs, and store the result in the
15006
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15007
# must be portable across $(()) and expr.
15008
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15009
  eval 'as_fn_arith ()
15010
  {
15011
    as_val=$(( $* ))
15012
  }'
15013
else
15014
  as_fn_arith ()
15015
  {
15016
    as_val=`expr "$@" || test $? -eq 1`
15017
  }
15018
fi # as_fn_arith
15019
15020
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15021
if expr a : '\(a\)' >/dev/null 2>&1 &&
15022
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15023
  as_expr=expr
15024
else
15025
  as_expr=false
15026
fi
15027
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15028
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15029
  as_basename=basename
15030
else
15031
  as_basename=false
15032
fi
15033
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15034
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15035
  as_dirname=dirname
15036
else
15037
  as_dirname=false
15038
fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15039
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15040
as_me=`$as_basename -- "$0" ||
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15041
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15042
	 X"$0" : 'X\(//\)$' \| \
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15043
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15044
$as_echo X/"$0" |
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15045
    sed '/^.*\/\([^/][^/]*\)\/*$/{
15046
	    s//\1/
15047
	    q
15048
	  }
15049
	  /^X\/\(\/\/\)$/{
15050
	    s//\1/
15051
	    q
15052
	  }
15053
	  /^X\/\(\/\).*/{
15054
	    s//\1/
15055
	    q
15056
	  }
15057
	  s/.*/./; q'`
15058
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15059
# Avoid depending upon Character Ranges.
15060
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15061
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15062
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15063
as_cr_digits='0123456789'
15064
as_cr_alnum=$as_cr_Letters$as_cr_digits
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15065
15066
ECHO_C= ECHO_N= ECHO_T=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15067
case `echo -n x` in #(((((
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15068
-n*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15069
  case `echo 'xy\c'` in
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15070
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15071
  xy)  ECHO_C='\c';;
15072
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15073
       ECHO_T='	';;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15074
  esac;;
15075
*)
15076
  ECHO_N='-n';;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15077
esac
15078
15079
rm -f conf$$ conf$$.exe conf$$.file
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15080
if test -d conf$$.dir; then
15081
  rm -f conf$$.dir/conf$$.file
15082
else
15083
  rm -f conf$$.dir
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15084
  mkdir conf$$.dir 2>/dev/null
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15085
fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15086
if (echo >conf$$.file) 2>/dev/null; then
15087
  if ln -s conf$$.file conf$$ 2>/dev/null; then
15088
    as_ln_s='ln -s'
15089
    # ... but there are two gotchas:
15090
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15091
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15092
    # In both cases, we have to default to `cp -p'.
15093
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15094
      as_ln_s='cp -p'
15095
  elif ln conf$$.file conf$$ 2>/dev/null; then
15096
    as_ln_s=ln
15097
  else
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15098
    as_ln_s='cp -p'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15099
  fi
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15100
else
15101
  as_ln_s='cp -p'
15102
fi
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15103
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15104
rmdir conf$$.dir 2>/dev/null
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15105
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15106
15107
# as_fn_mkdir_p
15108
# -------------
15109
# Create "$as_dir" as a directory, including parents if necessary.
15110
as_fn_mkdir_p ()
15111
{
15112
15113
  case $as_dir in #(
15114
  -*) as_dir=./$as_dir;;
15115
  esac
15116
  test -d "$as_dir" || eval $as_mkdir_p || {
15117
    as_dirs=
15118
    while :; do
15119
      case $as_dir in #(
15120
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15121
      *) as_qdir=$as_dir;;
15122
      esac
15123
      as_dirs="'$as_qdir' $as_dirs"
15124
      as_dir=`$as_dirname -- "$as_dir" ||
15125
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15126
	 X"$as_dir" : 'X\(//\)[^/]' \| \
15127
	 X"$as_dir" : 'X\(//\)$' \| \
15128
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15129
$as_echo X"$as_dir" |
15130
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15131
	    s//\1/
15132
	    q
15133
	  }
15134
	  /^X\(\/\/\)[^/].*/{
15135
	    s//\1/
15136
	    q
15137
	  }
15138
	  /^X\(\/\/\)$/{
15139
	    s//\1/
15140
	    q
15141
	  }
15142
	  /^X\(\/\).*/{
15143
	    s//\1/
15144
	    q
15145
	  }
15146
	  s/.*/./; q'`
15147
      test -d "$as_dir" && break
15148
    done
15149
    test -z "$as_dirs" || eval "mkdir $as_dirs"
15150
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15151
15152
15153
} # as_fn_mkdir_p
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15154
if mkdir -p . 2>/dev/null; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15155
  as_mkdir_p='mkdir -p "$as_dir"'
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15156
else
15157
  test -d ./-p && rmdir ./-p
15158
  as_mkdir_p=false
15159
fi
15160
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15161
if test -x / >/dev/null 2>&1; then
15162
  as_test_x='test -x'
15163
else
15164
  if ls -dL / >/dev/null 2>&1; then
15165
    as_ls_L_option=L
15166
  else
15167
    as_ls_L_option=
15168
  fi
15169
  as_test_x='
15170
    eval sh -c '\''
15171
      if test -d "$1"; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15172
	test -d "$1/.";
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15173
      else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15174
	case $1 in #(
15175
	-*)set "./$1";;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15176
	esac;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15177
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15178
	???[sx]*):;;*)false;;esac;fi
15179
    '\'' sh
15180
  '
15181
fi
15182
as_executable_p=$as_test_x
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15183
15184
# Sed expression to map a string onto a valid CPP name.
15185
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15186
15187
# Sed expression to map a string onto a valid variable name.
15188
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15189
15190
15191
exec 6>&1
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15192
## ----------------------------------- ##
15193
## Main body of $CONFIG_STATUS script. ##
15194
## ----------------------------------- ##
15195
_ASEOF
15196
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15197
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15198
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15199
# Save the log message, to keep $0 and so on meaningful, and to
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15200
# report actual input values of CONFIG_FILES etc. instead of their
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15201
# values after options handling.
15202
ac_log="
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15203
This file was extended by $as_me, which was
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15204
generated by GNU Autoconf 2.65.  Invocation command line was
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15205
15206
  CONFIG_FILES    = $CONFIG_FILES
15207
  CONFIG_HEADERS  = $CONFIG_HEADERS
15208
  CONFIG_LINKS    = $CONFIG_LINKS
15209
  CONFIG_COMMANDS = $CONFIG_COMMANDS
15210
  $ $0 $@
15211
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15212
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15213
"
15214
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15215
_ACEOF
15216
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15217
case $ac_config_files in *"
15218
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15219
esac
15220
15221
case $ac_config_headers in *"
15222
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15223
esac
15224
15225
15226
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15227
# Files that config.status was made for.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15228
config_files="$ac_config_files"
15229
config_headers="$ac_config_headers"
15230
config_commands="$ac_config_commands"
15231
15232
_ACEOF
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15233
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15234
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15235
ac_cs_usage="\
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15236
\`$as_me' instantiates files and other configuration actions
15237
from templates according to the current configuration.  Unless the files
15238
and actions are specified as TAGs, all are instantiated by default.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15239
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15240
Usage: $0 [OPTION]... [TAG]...
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15241
15242
  -h, --help       print this help, then exit
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15243
  -V, --version    print version number and configuration settings, then exit
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15244
      --config     print configuration, then exit
15245
  -q, --quiet, --silent
15246
                   do not print progress messages
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15247
  -d, --debug      don't remove temporary files
15248
      --recheck    update $as_me by reconfiguring in the same conditions
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15249
      --file=FILE[:TEMPLATE]
15250
                   instantiate the configuration file FILE
15251
      --header=FILE[:TEMPLATE]
15252
                   instantiate the configuration header FILE
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15253
15254
Configuration files:
15255
$config_files
15256
15257
Configuration headers:
15258
$config_headers
15259
15260
Configuration commands:
15261
$config_commands
15262
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15263
Report bugs to the package provider."
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15264
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
15265
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15266
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15267
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15268
ac_cs_version="\\
15269
config.status
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15270
configured by $0, generated by GNU Autoconf 2.65,
15271
  with options \\"\$ac_cs_config\\"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15272
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15273
Copyright (C) 2009 Free Software Foundation, Inc.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15274
This config.status script is free software; the Free Software Foundation
15275
gives unlimited permission to copy, distribute and modify it."
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15276
15277
ac_pwd='$ac_pwd'
15278
srcdir='$srcdir'
15279
INSTALL='$INSTALL'
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15280
MKDIR_P='$MKDIR_P'
15281
AWK='$AWK'
15282
test -n "\$AWK" || AWK=awk
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15283
_ACEOF
15284
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15285
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15286
# The default lists apply if the user does not specify any file.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15287
ac_need_defaults=:
15288
while test $# != 0
15289
do
15290
  case $1 in
15291
  --*=*)
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15292
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15293
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15294
    ac_shift=:
15295
    ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15296
  *)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15297
    ac_option=$1
15298
    ac_optarg=$2
15299
    ac_shift=shift
15300
    ;;
15301
  esac
15302
15303
  case $ac_option in
15304
  # Handling of the options.
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
15305
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15306
    ac_cs_recheck=: ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15307
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15308
    $as_echo "$ac_cs_version"; exit ;;
15309
  --config | --confi | --conf | --con | --co | --c )
15310
    $as_echo "$ac_cs_config"; exit ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15311
  --debug | --debu | --deb | --de | --d | -d )
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15312
    debug=: ;;
15313
  --file | --fil | --fi | --f )
15314
    $ac_shift
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15315
    case $ac_optarg in
15316
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15317
    esac
15318
    as_fn_append CONFIG_FILES " '$ac_optarg'"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15319
    ac_need_defaults=false;;
15320
  --header | --heade | --head | --hea )
15321
    $ac_shift
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15322
    case $ac_optarg in
15323
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15324
    esac
15325
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15326
    ac_need_defaults=false;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15327
  --he | --h)
15328
    # Conflict between --help and --header
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15329
    as_fn_error "ambiguous option: \`$1'
15330
Try \`$0 --help' for more information.";;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15331
  --help | --hel | -h )
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15332
    $as_echo "$ac_cs_usage"; exit ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15333
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15334
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15335
    ac_cs_silent=: ;;
15336
15337
  # This is an error.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15338
  -*) as_fn_error "unrecognized option: \`$1'
15339
Try \`$0 --help' for more information." ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15340
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15341
  *) as_fn_append ac_config_targets " $1"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15342
     ac_need_defaults=false ;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15343
15344
  esac
15345
  shift
15346
done
15347
15348
ac_configure_extra_args=
15349
15350
if $ac_cs_silent; then
15351
  exec 6>/dev/null
15352
  ac_configure_extra_args="$ac_configure_extra_args --silent"
15353
fi
15354
15355
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15356
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15357
if \$ac_cs_recheck; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15358
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15359
  shift
15360
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15361
  CONFIG_SHELL='$SHELL'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15362
  export CONFIG_SHELL
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15363
  exec "\$@"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15364
fi
15365
15366
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15367
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15368
exec 5>>config.log
15369
{
15370
  echo
15371
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15372
## Running $as_me. ##
15373
_ASBOX
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15374
  $as_echo "$ac_log"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15375
} >&5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15376
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15377
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15378
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15379
#
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15380
# INIT-COMMANDS
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15381
#
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15382
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15383
15384
15385
# The HP-UX ksh and POSIX shell print the target directory to stdout
15386
# if CDPATH is set.
15387
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15388
15389
sed_quote_subst='$sed_quote_subst'
15390
double_quote_subst='$double_quote_subst'
15391
delay_variable_subst='$delay_variable_subst'
15392
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15393
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15394
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15395
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15396
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15397
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15398
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15399
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15400
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15401
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15402
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15403
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15404
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15405
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15406
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15407
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15408
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15409
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15410
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15411
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15412
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15413
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15414
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15415
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15416
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15417
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15418
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15419
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15420
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15421
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15422
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15423
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15424
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15425
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15426
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15427
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15428
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15429
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15430
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15431
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15432
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15433
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15434
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15435
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15436
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15437
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15438
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15439
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15440
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15441
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15442
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15443
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15444
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15445
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15446
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15447
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15448
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15449
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15450
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15451
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15452
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15453
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15454
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15455
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15456
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15457
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15458
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15459
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15460
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15461
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15462
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15463
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15464
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15465
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15466
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15467
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15468
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15469
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15470
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15471
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15472
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15473
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15474
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15475
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15476
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15477
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15478
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15479
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15480
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15481
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15482
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15483
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15484
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15485
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15486
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15487
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15488
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15489
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15490
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15491
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15492
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15493
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15494
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15495
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15496
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15497
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15498
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15499
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15500
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15501
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15502
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15503
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15504
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15505
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15506
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15507
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15508
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15509
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15510
15511
LTCC='$LTCC'
15512
LTCFLAGS='$LTCFLAGS'
15513
compiler='$compiler_DEFAULT'
15514
15515
# Quote evaled strings.
15516
for var in SED \
15517
GREP \
15518
EGREP \
15519
FGREP \
15520
LD \
15521
NM \
15522
LN_S \
15523
lt_SP2NL \
15524
lt_NL2SP \
15525
reload_flag \
15526
OBJDUMP \
15527
deplibs_check_method \
15528
file_magic_cmd \
15529
AR \
15530
AR_FLAGS \
15531
STRIP \
15532
RANLIB \
15533
CC \
15534
CFLAGS \
15535
compiler \
15536
lt_cv_sys_global_symbol_pipe \
15537
lt_cv_sys_global_symbol_to_cdecl \
15538
lt_cv_sys_global_symbol_to_c_name_address \
15539
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15540
SHELL \
15541
ECHO \
15542
lt_prog_compiler_no_builtin_flag \
15543
lt_prog_compiler_wl \
15544
lt_prog_compiler_pic \
15545
lt_prog_compiler_static \
15546
lt_cv_prog_compiler_c_o \
15547
need_locks \
15548
DSYMUTIL \
15549
NMEDIT \
15550
LIPO \
15551
OTOOL \
15552
OTOOL64 \
15553
shrext_cmds \
15554
export_dynamic_flag_spec \
15555
whole_archive_flag_spec \
15556
compiler_needs_object \
15557
with_gnu_ld \
15558
allow_undefined_flag \
15559
no_undefined_flag \
15560
hardcode_libdir_flag_spec \
15561
hardcode_libdir_flag_spec_ld \
15562
hardcode_libdir_separator \
15563
fix_srcfile_path \
15564
exclude_expsyms \
15565
include_expsyms \
15566
file_list_spec \
15567
variables_saved_for_relink \
15568
libname_spec \
15569
library_names_spec \
15570
soname_spec \
15571
finish_eval \
15572
old_striplib \
15573
striplib; do
15574
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15575
    *[\\\\\\\`\\"\\\$]*)
15576
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15577
      ;;
15578
    *)
15579
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15580
      ;;
15581
    esac
15582
done
15583
15584
# Double-quote double-evaled strings.
15585
for var in reload_cmds \
15586
old_postinstall_cmds \
15587
old_postuninstall_cmds \
15588
old_archive_cmds \
15589
extract_expsyms_cmds \
15590
old_archive_from_new_cmds \
15591
old_archive_from_expsyms_cmds \
15592
archive_cmds \
15593
archive_expsym_cmds \
15594
module_cmds \
15595
module_expsym_cmds \
15596
export_symbols_cmds \
15597
prelink_cmds \
15598
postinstall_cmds \
15599
postuninstall_cmds \
15600
finish_cmds \
15601
sys_lib_search_path_spec \
15602
sys_lib_dlsearch_path_spec; do
15603
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15604
    *[\\\\\\\`\\"\\\$]*)
15605
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15606
      ;;
15607
    *)
15608
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15609
      ;;
15610
    esac
15611
done
15612
15613
# Fix-up fallback echo if it was mangled by the above quoting rules.
15614
case \$lt_ECHO in
15615
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15616
  ;;
15617
esac
15618
15619
ac_aux_dir='$ac_aux_dir'
15620
xsi_shell='$xsi_shell'
15621
lt_shell_append='$lt_shell_append'
15622
15623
# See if we are running on zsh, and set the options which allow our
15624
# commands through without removal of \ escapes INIT.
15625
if test -n "\${ZSH_VERSION+set}" ; then
15626
   setopt NO_GLOB_SUBST
15627
fi
15628
15629
15630
    PACKAGE='$PACKAGE'
15631
    VERSION='$VERSION'
15632
    TIMESTAMP='$TIMESTAMP'
15633
    RM='$RM'
15634
    ofile='$ofile'
15635
15636
15637
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15638
15639
_ACEOF
15640
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15641
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15642
15643
# Handling of arguments.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15644
for ac_config_target in $ac_config_targets
15645
do
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15646
  case $ac_config_target in
15647
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15648
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15649
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15650
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15651
    "drivers/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/Makefile" ;;
15652
    "drivers/lirc_atiusb/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_atiusb/Makefile" ;;
15653
    "drivers/lirc_bt829/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_bt829/Makefile" ;;
1.2.9 by Mario Limonciello
Import upstream version 0.8.6
15654
    "drivers/lirc_ene0100/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_ene0100/Makefile" ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15655
    "drivers/lirc_dev/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_dev/Makefile" ;;
15656
    "drivers/lirc_gpio/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_gpio/Makefile" ;;
15657
    "drivers/lirc_i2c/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_i2c/Makefile" ;;
15658
    "drivers/lirc_igorplugusb/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_igorplugusb/Makefile" ;;
15659
    "drivers/lirc_ttusbir/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_ttusbir/Makefile" ;;
15660
    "drivers/lirc_imon/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_imon/Makefile" ;;
15661
    "drivers/lirc_it87/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_it87/Makefile" ;;
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
15662
    "drivers/lirc_ite8709/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_ite8709/Makefile" ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15663
    "drivers/lirc_mceusb/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_mceusb/Makefile" ;;
15664
    "drivers/lirc_parallel/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_parallel/Makefile" ;;
15665
    "drivers/lirc_sasem/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_sasem/Makefile" ;;
15666
    "drivers/lirc_serial/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_serial/Makefile" ;;
15667
    "drivers/lirc_sir/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_sir/Makefile" ;;
15668
    "drivers/lirc_streamzap/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_streamzap/Makefile" ;;
1.2.8 by Mario Limonciello
Import upstream version 0.8.5
15669
    "drivers/lirc_wpc8769l/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/lirc_wpc8769l/Makefile" ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15670
    "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
15671
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15672
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15673
    "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
15674
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15675
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15676
  esac
15677
done
15678
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15679
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15680
# If the user did not use the arguments to specify the items to instantiate,
15681
# then the envvar interface is used.  Set only those that are not.
15682
# We use the long form for the default assignment because of an extremely
15683
# bizarre bug on SunOS 4.1.3.
15684
if $ac_need_defaults; then
15685
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15686
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15687
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15688
fi
15689
15690
# Have a temporary directory for convenience.  Make it in the build tree
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15691
# simply because there is no reason against having it here, and in addition,
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15692
# creating and moving files from /tmp can sometimes cause problems.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15693
# Hook for its removal unless debugging.
15694
# Note that there is a small window in which the directory will not be cleaned:
15695
# after its creation but before its name has been assigned to `$tmp'.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15696
$debug ||
15697
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15698
  tmp=
15699
  trap 'exit_status=$?
15700
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15701
' 0
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15702
  trap 'as_fn_exit 1' 1 2 13 15
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15703
}
15704
# Create a (secure) tmp directory for tmp files.
15705
15706
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15707
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15708
  test -n "$tmp" && test -d "$tmp"
15709
}  ||
15710
{
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15711
  tmp=./conf$$-$RANDOM
15712
  (umask 077 && mkdir "$tmp")
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15713
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15714
15715
# Set up the scripts for CONFIG_FILES section.
15716
# No need to generate them if there are no CONFIG_FILES.
15717
# This happens for instance with `./config.status config.h'.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15718
if test -n "$CONFIG_FILES"; then
15719
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15720
15721
ac_cr=`echo X | tr X '\015'`
15722
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15723
# But we know of no other shell where ac_cr would be empty at this
15724
# point, so we can use a bashism as a fallback.
15725
if test "x$ac_cr" = x; then
15726
  eval ac_cr=\$\'\\r\'
15727
fi
15728
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15729
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15730
  ac_cs_awk_cr='\r'
15731
else
15732
  ac_cs_awk_cr=$ac_cr
15733
fi
15734
15735
echo 'BEGIN {' >"$tmp/subs1.awk" &&
15736
_ACEOF
15737
15738
15739
{
15740
  echo "cat >conf$$subs.awk <<_ACEOF" &&
15741
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15742
  echo "_ACEOF"
15743
} >conf$$subs.sh ||
15744
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15745
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15746
ac_delim='%!_!# '
15747
for ac_last_try in false false false false false :; do
15748
  . ./conf$$subs.sh ||
15749
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15750
15751
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15752
  if test $ac_delim_n = $ac_delim_num; then
15753
    break
15754
  elif $ac_last_try; then
15755
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15756
  else
15757
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15758
  fi
15759
done
15760
rm -f conf$$subs.sh
15761
15762
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15763
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15764
_ACEOF
15765
sed -n '
15766
h
15767
s/^/S["/; s/!.*/"]=/
15768
p
15769
g
15770
s/^[^!]*!//
15771
:repl
15772
t repl
15773
s/'"$ac_delim"'$//
15774
t delim
15775
:nl
15776
h
15777
s/\(.\{148\}\)..*/\1/
15778
t more1
15779
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15780
p
15781
n
15782
b repl
15783
:more1
15784
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15785
p
15786
g
15787
s/.\{148\}//
15788
t nl
15789
:delim
15790
h
15791
s/\(.\{148\}\)..*/\1/
15792
t more2
15793
s/["\\]/\\&/g; s/^/"/; s/$/"/
15794
p
15795
b
15796
:more2
15797
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15798
p
15799
g
15800
s/.\{148\}//
15801
t delim
15802
' <conf$$subs.awk | sed '
15803
/^[^""]/{
15804
  N
15805
  s/\n//
15806
}
15807
' >>$CONFIG_STATUS || ac_write_fail=1
15808
rm -f conf$$subs.awk
15809
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15810
_ACAWK
15811
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15812
  for (key in S) S_is_set[key] = 1
15813
  FS = ""
15814
15815
}
15816
{
15817
  line = $ 0
15818
  nfields = split(line, field, "@")
15819
  substed = 0
15820
  len = length(field[1])
15821
  for (i = 2; i < nfields; i++) {
15822
    key = field[i]
15823
    keylen = length(key)
15824
    if (S_is_set[key]) {
15825
      value = S[key]
15826
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15827
      len += length(value) + length(field[++i])
15828
      substed = 1
15829
    } else
15830
      len += 1 + keylen
15831
  }
15832
15833
  print line
15834
}
15835
15836
_ACAWK
15837
_ACEOF
15838
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15839
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15840
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15841
else
15842
  cat
15843
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15844
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15845
_ACEOF
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15846
15847
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15848
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15849
# trailing colons and then remove the whole line if VPATH becomes empty
15850
# (actually we leave an empty line to preserve line numbers).
15851
if test "x$srcdir" = x.; then
15852
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15853
s/:*\$(srcdir):*/:/
15854
s/:*\${srcdir}:*/:/
15855
s/:*@srcdir@:*/:/
15856
s/^\([^=]*=[	 ]*\):*/\1/
15857
s/:*$//
15858
s/^[^=]*=[	 ]*$//
15859
}'
15860
fi
15861
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15862
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
15863
fi # test -n "$CONFIG_FILES"
15864
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15865
# Set up the scripts for CONFIG_HEADERS section.
15866
# No need to generate them if there are no CONFIG_HEADERS.
15867
# This happens for instance with `./config.status Makefile'.
15868
if test -n "$CONFIG_HEADERS"; then
15869
cat >"$tmp/defines.awk" <<\_ACAWK ||
15870
BEGIN {
15871
_ACEOF
15872
15873
# Transform confdefs.h into an awk script `defines.awk', embedded as
15874
# here-document in config.status, that substitutes the proper values into
15875
# config.h.in to produce config.h.
15876
15877
# Create a delimiter string that does not exist in confdefs.h, to ease
15878
# handling of long lines.
15879
ac_delim='%!_!# '
15880
for ac_last_try in false false :; do
15881
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15882
  if test -z "$ac_t"; then
15883
    break
15884
  elif $ac_last_try; then
15885
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15886
  else
15887
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15888
  fi
15889
done
15890
15891
# For the awk script, D is an array of macro values keyed by name,
15892
# likewise P contains macro parameters if any.  Preserve backslash
15893
# newline sequences.
15894
15895
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15896
sed -n '
15897
s/.\{148\}/&'"$ac_delim"'/g
15898
t rset
15899
:rset
15900
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15901
t def
15902
d
15903
:def
15904
s/\\$//
15905
t bsnl
15906
s/["\\]/\\&/g
15907
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15908
D["\1"]=" \3"/p
15909
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15910
d
15911
:bsnl
15912
s/["\\]/\\&/g
15913
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15914
D["\1"]=" \3\\\\\\n"\\/p
15915
t cont
15916
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15917
t cont
15918
d
15919
:cont
15920
n
15921
s/.\{148\}/&'"$ac_delim"'/g
15922
t clear
15923
:clear
15924
s/\\$//
15925
t bsnlc
15926
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15927
d
15928
:bsnlc
15929
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15930
b cont
15931
' <confdefs.h | sed '
15932
s/'"$ac_delim"'/"\\\
15933
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15934
15935
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15936
  for (key in D) D_is_set[key] = 1
15937
  FS = ""
15938
}
15939
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15940
  line = \$ 0
15941
  split(line, arg, " ")
15942
  if (arg[1] == "#") {
15943
    defundef = arg[2]
15944
    mac1 = arg[3]
15945
  } else {
15946
    defundef = substr(arg[1], 2)
15947
    mac1 = arg[2]
15948
  }
15949
  split(mac1, mac2, "(") #)
15950
  macro = mac2[1]
15951
  prefix = substr(line, 1, index(line, defundef) - 1)
15952
  if (D_is_set[macro]) {
15953
    # Preserve the white space surrounding the "#".
15954
    print prefix "define", macro P[macro] D[macro]
15955
    next
15956
  } else {
15957
    # Replace #undef with comments.  This is necessary, for example,
15958
    # in the case of _POSIX_SOURCE, which is predefined and required
15959
    # on some systems where configure will not decide to define it.
15960
    if (defundef == "undef") {
15961
      print "/*", prefix defundef, macro, "*/"
15962
      next
15963
    }
15964
  }
15965
}
15966
{ print }
15967
_ACAWK
15968
_ACEOF
15969
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15970
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
15971
fi # test -n "$CONFIG_HEADERS"
15972
15973
15974
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15975
shift
15976
for ac_tag
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15977
do
15978
  case $ac_tag in
15979
  :[FHLC]) ac_mode=$ac_tag; continue;;
15980
  esac
15981
  case $ac_mode$ac_tag in
15982
  :[FHL]*:*);;
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
15983
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
15984
  :[FH]-) ac_tag=-:-;;
15985
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15986
  esac
15987
  ac_save_IFS=$IFS
15988
  IFS=:
15989
  set x $ac_tag
15990
  IFS=$ac_save_IFS
15991
  shift
15992
  ac_file=$1
15993
  shift
15994
15995
  case $ac_mode in
15996
  :L) ac_source=$1;;
15997
  :[FH])
15998
    ac_file_inputs=
15999
    for ac_f
16000
    do
16001
      case $ac_f in
16002
      -) ac_f="$tmp/stdin";;
16003
      *) # Look for the file first in the build tree, then in the source tree
16004
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16005
	 # because $ac_f cannot contain `:'.
16006
	 test -f "$ac_f" ||
16007
	   case $ac_f in
16008
	   [\\/$]*) false;;
16009
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16010
	   esac ||
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16011
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16012
      esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16013
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16014
      as_fn_append ac_file_inputs " '$ac_f'"
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16015
    done
16016
16017
    # Let's still pretend it is `configure' which instantiates (i.e., don't
16018
    # use $as_me), people would be surprised to read:
16019
    #    /* config.h.  Generated by config.status.  */
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16020
    configure_input='Generated from '`
16021
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16022
	`' by configure.'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16023
    if test x"$ac_file" != x-; then
16024
      configure_input="$ac_file.  $configure_input"
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16025
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16026
$as_echo "$as_me: creating $ac_file" >&6;}
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16027
    fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16028
    # Neutralize special characters interpreted by sed in replacement strings.
16029
    case $configure_input in #(
16030
    *\&* | *\|* | *\\* )
16031
       ac_sed_conf_input=`$as_echo "$configure_input" |
16032
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16033
    *) ac_sed_conf_input=$configure_input;;
16034
    esac
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16035
16036
    case $ac_tag in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16037
    *:-:* | *:-) cat >"$tmp/stdin" \
16038
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16039
    esac
16040
    ;;
16041
  esac
16042
16043
  ac_dir=`$as_dirname -- "$ac_file" ||
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16044
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16045
	 X"$ac_file" : 'X\(//\)[^/]' \| \
16046
	 X"$ac_file" : 'X\(//\)$' \| \
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16047
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16048
$as_echo X"$ac_file" |
16049
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16050
	    s//\1/
16051
	    q
16052
	  }
16053
	  /^X\(\/\/\)[^/].*/{
16054
	    s//\1/
16055
	    q
16056
	  }
16057
	  /^X\(\/\/\)$/{
16058
	    s//\1/
16059
	    q
16060
	  }
16061
	  /^X\(\/\).*/{
16062
	    s//\1/
16063
	    q
16064
	  }
16065
	  s/.*/./; q'`
16066
  as_dir="$ac_dir"; as_fn_mkdir_p
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16067
  ac_builddir=.
16068
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16069
case "$ac_dir" in
16070
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16071
*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16072
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16073
  # A ".." for each directory in $ac_dir_suffix.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16074
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16075
  case $ac_top_builddir_sub in
16076
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16077
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16078
  esac ;;
16079
esac
16080
ac_abs_top_builddir=$ac_pwd
16081
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16082
# for backward compatibility:
16083
ac_top_builddir=$ac_top_build_prefix
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16084
16085
case $srcdir in
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16086
  .)  # We are building in place.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16087
    ac_srcdir=.
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16088
    ac_top_srcdir=$ac_top_builddir_sub
16089
    ac_abs_top_srcdir=$ac_pwd ;;
16090
  [\\/]* | ?:[\\/]* )  # Absolute name.
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16091
    ac_srcdir=$srcdir$ac_dir_suffix;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16092
    ac_top_srcdir=$srcdir
16093
    ac_abs_top_srcdir=$srcdir ;;
16094
  *) # Relative name.
16095
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16096
    ac_top_srcdir=$ac_top_build_prefix$srcdir
16097
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16098
esac
16099
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16100
16101
16102
  case $ac_mode in
16103
  :F)
16104
  #
16105
  # CONFIG_FILE
16106
  #
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16107
16108
  case $INSTALL in
16109
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16110
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.2.4 by Mario Limonciello
Import upstream version 0.8.2
16111
  esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16112
  ac_MKDIR_P=$MKDIR_P
16113
  case $MKDIR_P in
16114
  [\\/$]* | ?:[\\/]* ) ;;
16115
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16116
  esac
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16117
_ACEOF
16118
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16119
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16120
# If the template does not know about datarootdir, expand it.
16121
# FIXME: This hack should be removed a few years after 2.60.
16122
ac_datarootdir_hack=; ac_datarootdir_seen=
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16123
ac_sed_dataroot='
16124
/datarootdir/ {
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16125
  p
16126
  q
16127
}
16128
/@datadir@/p
16129
/@docdir@/p
16130
/@infodir@/p
16131
/@localedir@/p
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16132
/@mandir@/p'
16133
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16134
*datarootdir*) ac_datarootdir_seen=yes;;
16135
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16136
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16137
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16138
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16139
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16140
  ac_datarootdir_hack='
16141
  s&@datadir@&$datadir&g
16142
  s&@docdir@&$docdir&g
16143
  s&@infodir@&$infodir&g
16144
  s&@localedir@&$localedir&g
16145
  s&@mandir@&$mandir&g
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16146
  s&\\\${datarootdir}&$datarootdir&g' ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16147
esac
16148
_ACEOF
16149
16150
# Neutralize VPATH when `$srcdir' = `.'.
16151
# Shell code in configure.ac might set extrasub.
16152
# FIXME: do we really want to maintain this feature?
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16153
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16154
ac_sed_extra="$ac_vpsub
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
16155
$extrasub
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16156
_ACEOF
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16157
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16158
:t
16159
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16160
s|@configure_input@|$ac_sed_conf_input|;t t
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16161
s&@top_builddir@&$ac_top_builddir_sub&;t t
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16162
s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16163
s&@srcdir@&$ac_srcdir&;t t
16164
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16165
s&@top_srcdir@&$ac_top_srcdir&;t t
16166
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16167
s&@builddir@&$ac_builddir&;t t
16168
s&@abs_builddir@&$ac_abs_builddir&;t t
16169
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16170
s&@INSTALL@&$ac_INSTALL&;t t
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16171
s&@MKDIR_P@&$ac_MKDIR_P&;t t
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16172
$ac_datarootdir_hack
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16173
"
16174
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16175
  || as_fn_error "could not create $ac_file" "$LINENO" 5
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16176
16177
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16178
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16179
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16180
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16181
which seems to be undefined.  Please make sure it is defined." >&5
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16182
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16183
which seems to be undefined.  Please make sure it is defined." >&2;}
16184
16185
  rm -f "$tmp/stdin"
16186
  case $ac_file in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16187
  -) cat "$tmp/out" && rm -f "$tmp/out";;
16188
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16189
  esac \
16190
  || as_fn_error "could not create $ac_file" "$LINENO" 5
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16191
 ;;
16192
  :H)
16193
  #
16194
  # CONFIG_HEADER
16195
  #
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16196
  if test x"$ac_file" != x-; then
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16197
    {
16198
      $as_echo "/* $configure_input  */" \
16199
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16200
    } >"$tmp/config.h" \
16201
      || as_fn_error "could not create $ac_file" "$LINENO" 5
16202
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16203
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16204
$as_echo "$as_me: $ac_file is unchanged" >&6;}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16205
    else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16206
      rm -f "$ac_file"
16207
      mv "$tmp/config.h" "$ac_file" \
16208
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16209
    fi
16210
  else
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16211
    $as_echo "/* $configure_input  */" \
16212
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16213
      || as_fn_error "could not create -" "$LINENO" 5
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16214
  fi
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16215
# Compute "$ac_file"'s index in $config_headers.
16216
_am_arg="$ac_file"
16217
_am_stamp_count=1
16218
for _am_header in $config_headers :; do
16219
  case $_am_header in
16220
    $_am_arg | $_am_arg:* )
16221
      break ;;
16222
    * )
16223
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16224
  esac
16225
done
16226
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16227
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16228
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16229
	 X"$_am_arg" : 'X\(//\)$' \| \
16230
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16231
$as_echo X"$_am_arg" |
16232
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16233
	    s//\1/
16234
	    q
16235
	  }
16236
	  /^X\(\/\/\)[^/].*/{
16237
	    s//\1/
16238
	    q
16239
	  }
16240
	  /^X\(\/\/\)$/{
16241
	    s//\1/
16242
	    q
16243
	  }
16244
	  /^X\(\/\).*/{
16245
	    s//\1/
16246
	    q
16247
	  }
16248
	  s/.*/./; q'`/stamp-h$_am_stamp_count
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16249
 ;;
16250
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16251
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16252
$as_echo "$as_me: executing $ac_file commands" >&6;}
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16253
 ;;
16254
  esac
16255
16256
16257
  case $ac_file$ac_mode in
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16258
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16259
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16260
  # are listed without --file.  Let's play safe and only enable the eval
16261
  # if we detect the quoting.
16262
  case $CONFIG_FILES in
16263
  *\'*) eval set x "$CONFIG_FILES" ;;
16264
  *)   set x $CONFIG_FILES ;;
1.2.7 by Mario Limonciello
Import upstream version 0.8.4a
16265
  esac
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16266
  shift
16267
  for mf
16268
  do
16269
    # Strip MF so we end up with the name of the file.
16270
    mf=`echo "$mf" | sed -e 's/:.*$//'`
16271
    # Check whether this is an Automake generated Makefile or not.
16272
    # We used to match only the files named `Makefile.in', but
16273
    # some people rename them; so instead we look at the file content.
16274
    # Grep'ing the first line is not enough: some people post-process
16275
    # each Makefile.in and add a new line on top of each file to say so.
16276
    # Grep'ing the whole file is not good either: AIX grep has a line
16277
    # limit of 2048, but all sed's we know have understand at least 4000.
16278
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16279
      dirpart=`$as_dirname -- "$mf" ||
16280
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16281
	 X"$mf" : 'X\(//\)[^/]' \| \
16282
	 X"$mf" : 'X\(//\)$' \| \
16283
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16284
$as_echo X"$mf" |
16285
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16286
	    s//\1/
16287
	    q
16288
	  }
16289
	  /^X\(\/\/\)[^/].*/{
16290
	    s//\1/
16291
	    q
16292
	  }
16293
	  /^X\(\/\/\)$/{
16294
	    s//\1/
16295
	    q
16296
	  }
16297
	  /^X\(\/\).*/{
16298
	    s//\1/
16299
	    q
16300
	  }
16301
	  s/.*/./; q'`
16302
    else
16303
      continue
16304
    fi
16305
    # Extract the definition of DEPDIR, am__include, and am__quote
16306
    # from the Makefile without running `make'.
16307
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16308
    test -z "$DEPDIR" && continue
16309
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16310
    test -z "am__include" && continue
16311
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16312
    # When using ansi2knr, U may be empty or an underscore; expand it
16313
    U=`sed -n 's/^U = //p' < "$mf"`
16314
    # Find all dependency output files, they are included files with
16315
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16316
    # simplest approach to changing $(DEPDIR) to its actual value in the
16317
    # expansion.
16318
    for file in `sed -n "
16319
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16320
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16321
      # Make sure the directory exists.
16322
      test -f "$dirpart/$file" && continue
16323
      fdir=`$as_dirname -- "$file" ||
16324
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16325
	 X"$file" : 'X\(//\)[^/]' \| \
16326
	 X"$file" : 'X\(//\)$' \| \
16327
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16328
$as_echo X"$file" |
16329
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16330
	    s//\1/
16331
	    q
16332
	  }
16333
	  /^X\(\/\/\)[^/].*/{
16334
	    s//\1/
16335
	    q
16336
	  }
16337
	  /^X\(\/\/\)$/{
16338
	    s//\1/
16339
	    q
16340
	  }
16341
	  /^X\(\/\).*/{
16342
	    s//\1/
16343
	    q
16344
	  }
16345
	  s/.*/./; q'`
16346
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16347
      # echo "creating $dirpart/$file"
16348
      echo '# dummy' > "$dirpart/$file"
16349
    done
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
16350
  done
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16351
}
16352
 ;;
16353
    "libtool":C)
16354
16355
    # See if we are running on zsh, and set the options which allow our
16356
    # commands through without removal of \ escapes.
16357
    if test -n "${ZSH_VERSION+set}" ; then
16358
      setopt NO_GLOB_SUBST
16359
    fi
16360
16361
    cfgfile="${ofile}T"
16362
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16363
    $RM "$cfgfile"
16364
16365
    cat <<_LT_EOF >> "$cfgfile"
16366
#! $SHELL
16367
16368
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16369
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16370
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16371
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16372
#
16373
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16374
#                 2006, 2007, 2008 Free Software Foundation, Inc.
16375
#   Written by Gordon Matzigkeit, 1996
16376
#
16377
#   This file is part of GNU Libtool.
16378
#
16379
# GNU Libtool is free software; you can redistribute it and/or
16380
# modify it under the terms of the GNU General Public License as
16381
# published by the Free Software Foundation; either version 2 of
16382
# the License, or (at your option) any later version.
16383
#
16384
# As a special exception to the GNU General Public License,
16385
# if you distribute this file as part of a program or library that
16386
# is built using GNU Libtool, you may include this file under the
16387
# same distribution terms that you use for the rest of that program.
16388
#
16389
# GNU Libtool is distributed in the hope that it will be useful,
16390
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16391
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16392
# GNU General Public License for more details.
16393
#
16394
# You should have received a copy of the GNU General Public License
16395
# along with GNU Libtool; see the file COPYING.  If not, a copy
16396
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16397
# obtained by writing to the Free Software Foundation, Inc.,
16398
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16399
16400
16401
# The names of the tagged configurations supported by this script.
16402
available_tags=""
16403
16404
# ### BEGIN LIBTOOL CONFIG
16405
16406
# Which release of libtool.m4 was used?
16407
macro_version=$macro_version
16408
macro_revision=$macro_revision
16409
16410
# Whether or not to build shared libraries.
16411
build_libtool_libs=$enable_shared
16412
16413
# Whether or not to build static libraries.
16414
build_old_libs=$enable_static
16415
16416
# What type of objects to build.
16417
pic_mode=$pic_mode
16418
16419
# Whether or not to optimize for fast installation.
16420
fast_install=$enable_fast_install
16421
16422
# The host system.
16423
host_alias=$host_alias
16424
host=$host
16425
host_os=$host_os
16426
16427
# The build system.
16428
build_alias=$build_alias
16429
build=$build
16430
build_os=$build_os
16431
16432
# A sed program that does not truncate output.
16433
SED=$lt_SED
16434
16435
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16436
Xsed="\$SED -e 1s/^X//"
16437
16438
# A grep program that handles long lines.
16439
GREP=$lt_GREP
16440
16441
# An ERE matcher.
16442
EGREP=$lt_EGREP
16443
16444
# A literal string matcher.
16445
FGREP=$lt_FGREP
16446
16447
# A BSD- or MS-compatible name lister.
16448
NM=$lt_NM
16449
16450
# Whether we need soft or hard links.
16451
LN_S=$lt_LN_S
16452
16453
# What is the maximum length of a command?
16454
max_cmd_len=$max_cmd_len
16455
16456
# Object file suffix (normally "o").
16457
objext=$ac_objext
16458
16459
# Executable file suffix (normally "").
16460
exeext=$exeext
16461
16462
# whether the shell understands "unset".
16463
lt_unset=$lt_unset
16464
16465
# turn spaces into newlines.
16466
SP2NL=$lt_lt_SP2NL
16467
16468
# turn newlines into spaces.
16469
NL2SP=$lt_lt_NL2SP
16470
16471
# How to create reloadable object files.
16472
reload_flag=$lt_reload_flag
16473
reload_cmds=$lt_reload_cmds
16474
16475
# An object symbol dumper.
16476
OBJDUMP=$lt_OBJDUMP
16477
16478
# Method to check whether dependent libraries are shared objects.
16479
deplibs_check_method=$lt_deplibs_check_method
16480
16481
# Command to use when deplibs_check_method == "file_magic".
16482
file_magic_cmd=$lt_file_magic_cmd
16483
16484
# The archiver.
16485
AR=$lt_AR
16486
AR_FLAGS=$lt_AR_FLAGS
16487
16488
# A symbol stripping program.
16489
STRIP=$lt_STRIP
16490
16491
# Commands used to install an old-style archive.
16492
RANLIB=$lt_RANLIB
16493
old_postinstall_cmds=$lt_old_postinstall_cmds
16494
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16495
16496
# A C compiler.
16497
LTCC=$lt_CC
16498
16499
# LTCC compiler flags.
16500
LTCFLAGS=$lt_CFLAGS
16501
16502
# Take the output of nm and produce a listing of raw symbols and C names.
16503
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16504
16505
# Transform the output of nm in a proper C declaration.
16506
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16507
16508
# Transform the output of nm in a C name address pair.
16509
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16510
16511
# Transform the output of nm in a C name address pair when lib prefix is needed.
16512
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16513
16514
# The name of the directory that contains temporary libtool files.
16515
objdir=$objdir
16516
16517
# Shell to use when invoking shell scripts.
16518
SHELL=$lt_SHELL
16519
16520
# An echo program that does not interpret backslashes.
16521
ECHO=$lt_ECHO
16522
16523
# Used to examine libraries when file_magic_cmd begins with "file".
16524
MAGIC_CMD=$MAGIC_CMD
16525
16526
# Must we lock files when doing compilation?
16527
need_locks=$lt_need_locks
16528
16529
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16530
DSYMUTIL=$lt_DSYMUTIL
16531
16532
# Tool to change global to local symbols on Mac OS X.
16533
NMEDIT=$lt_NMEDIT
16534
16535
# Tool to manipulate fat objects and archives on Mac OS X.
16536
LIPO=$lt_LIPO
16537
16538
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16539
OTOOL=$lt_OTOOL
16540
16541
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16542
OTOOL64=$lt_OTOOL64
16543
16544
# Old archive suffix (normally "a").
16545
libext=$libext
16546
16547
# Shared library suffix (normally ".so").
16548
shrext_cmds=$lt_shrext_cmds
16549
16550
# The commands to extract the exported symbol list from a shared archive.
16551
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16552
16553
# Variables whose values should be saved in libtool wrapper scripts and
16554
# restored at link time.
16555
variables_saved_for_relink=$lt_variables_saved_for_relink
16556
16557
# Do we need the "lib" prefix for modules?
16558
need_lib_prefix=$need_lib_prefix
16559
16560
# Do we need a version for libraries?
16561
need_version=$need_version
16562
16563
# Library versioning type.
16564
version_type=$version_type
16565
16566
# Shared library runtime path variable.
16567
runpath_var=$runpath_var
16568
16569
# Shared library path variable.
16570
shlibpath_var=$shlibpath_var
16571
16572
# Is shlibpath searched before the hard-coded library search path?
16573
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16574
16575
# Format of library name prefix.
16576
libname_spec=$lt_libname_spec
16577
16578
# List of archive names.  First name is the real one, the rest are links.
16579
# The last name is the one that the linker finds with -lNAME
16580
library_names_spec=$lt_library_names_spec
16581
16582
# The coded name of the library, if different from the real name.
16583
soname_spec=$lt_soname_spec
16584
16585
# Command to use after installation of a shared archive.
16586
postinstall_cmds=$lt_postinstall_cmds
16587
16588
# Command to use after uninstallation of a shared archive.
16589
postuninstall_cmds=$lt_postuninstall_cmds
16590
16591
# Commands used to finish a libtool library installation in a directory.
16592
finish_cmds=$lt_finish_cmds
16593
16594
# As "finish_cmds", except a single script fragment to be evaled but
16595
# not shown.
16596
finish_eval=$lt_finish_eval
16597
16598
# Whether we should hardcode library paths into libraries.
16599
hardcode_into_libs=$hardcode_into_libs
16600
16601
# Compile-time system search path for libraries.
16602
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16603
16604
# Run-time system search path for libraries.
16605
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16606
16607
# Whether dlopen is supported.
16608
dlopen_support=$enable_dlopen
16609
16610
# Whether dlopen of programs is supported.
16611
dlopen_self=$enable_dlopen_self
16612
16613
# Whether dlopen of statically linked programs is supported.
16614
dlopen_self_static=$enable_dlopen_self_static
16615
16616
# Commands to strip libraries.
16617
old_striplib=$lt_old_striplib
16618
striplib=$lt_striplib
16619
16620
16621
# The linker used to build libraries.
16622
LD=$lt_LD
16623
16624
# Commands used to build an old-style archive.
16625
old_archive_cmds=$lt_old_archive_cmds
16626
16627
# A language specific compiler.
16628
CC=$lt_compiler
16629
16630
# Is the compiler the GNU compiler?
16631
with_gcc=$GCC
16632
16633
# Compiler flag to turn off builtin functions.
16634
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16635
16636
# How to pass a linker flag through the compiler.
16637
wl=$lt_lt_prog_compiler_wl
16638
16639
# Additional compiler flags for building library objects.
16640
pic_flag=$lt_lt_prog_compiler_pic
16641
16642
# Compiler flag to prevent dynamic linking.
16643
link_static_flag=$lt_lt_prog_compiler_static
16644
16645
# Does compiler simultaneously support -c and -o options?
16646
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16647
16648
# Whether or not to add -lc for building shared libraries.
16649
build_libtool_need_lc=$archive_cmds_need_lc
16650
16651
# Whether or not to disallow shared libs when runtime libs are static.
16652
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16653
16654
# Compiler flag to allow reflexive dlopens.
16655
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16656
16657
# Compiler flag to generate shared objects directly from archives.
16658
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16659
16660
# Whether the compiler copes with passing no objects directly.
16661
compiler_needs_object=$lt_compiler_needs_object
16662
16663
# Create an old-style archive from a shared archive.
16664
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16665
16666
# Create a temporary old-style archive to link instead of a shared archive.
16667
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16668
16669
# Commands used to build a shared archive.
16670
archive_cmds=$lt_archive_cmds
16671
archive_expsym_cmds=$lt_archive_expsym_cmds
16672
16673
# Commands used to build a loadable module if different from building
16674
# a shared archive.
16675
module_cmds=$lt_module_cmds
16676
module_expsym_cmds=$lt_module_expsym_cmds
16677
16678
# Whether we are building with GNU ld or not.
16679
with_gnu_ld=$lt_with_gnu_ld
16680
16681
# Flag that allows shared libraries with undefined symbols to be built.
16682
allow_undefined_flag=$lt_allow_undefined_flag
16683
16684
# Flag that enforces no undefined symbols.
16685
no_undefined_flag=$lt_no_undefined_flag
16686
16687
# Flag to hardcode \$libdir into a binary during linking.
16688
# This must work even if \$libdir does not exist
16689
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16690
16691
# If ld is used when linking, flag to hardcode \$libdir into a binary
16692
# during linking.  This must work even if \$libdir does not exist.
16693
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16694
16695
# Whether we need a single "-rpath" flag with a separated argument.
16696
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16697
16698
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16699
# DIR into the resulting binary.
16700
hardcode_direct=$hardcode_direct
16701
16702
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16703
# DIR into the resulting binary and the resulting library dependency is
16704
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16705
# library is relocated.
16706
hardcode_direct_absolute=$hardcode_direct_absolute
16707
16708
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16709
# into the resulting binary.
16710
hardcode_minus_L=$hardcode_minus_L
16711
16712
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16713
# into the resulting binary.
16714
hardcode_shlibpath_var=$hardcode_shlibpath_var
16715
16716
# Set to "yes" if building a shared library automatically hardcodes DIR
16717
# into the library and all subsequent libraries and executables linked
16718
# against it.
16719
hardcode_automatic=$hardcode_automatic
16720
16721
# Set to yes if linker adds runtime paths of dependent libraries
16722
# to runtime path list.
16723
inherit_rpath=$inherit_rpath
16724
16725
# Whether libtool must link a program against all its dependency libraries.
16726
link_all_deplibs=$link_all_deplibs
16727
16728
# Fix the shell variable \$srcfile for the compiler.
16729
fix_srcfile_path=$lt_fix_srcfile_path
16730
16731
# Set to "yes" if exported symbols are required.
16732
always_export_symbols=$always_export_symbols
16733
16734
# The commands to list exported symbols.
16735
export_symbols_cmds=$lt_export_symbols_cmds
16736
16737
# Symbols that should not be listed in the preloaded symbols.
16738
exclude_expsyms=$lt_exclude_expsyms
16739
16740
# Symbols that must always be exported.
16741
include_expsyms=$lt_include_expsyms
16742
16743
# Commands necessary for linking programs (against libraries) with templates.
16744
prelink_cmds=$lt_prelink_cmds
16745
16746
# Specify filename containing input files.
16747
file_list_spec=$lt_file_list_spec
16748
16749
# How to hardcode a shared library path into an executable.
16750
hardcode_action=$hardcode_action
16751
16752
# ### END LIBTOOL CONFIG
16753
16754
_LT_EOF
16755
16756
  case $host_os in
16757
  aix3*)
16758
    cat <<\_LT_EOF >> "$cfgfile"
16759
# AIX sometimes has problems with the GCC collect2 program.  For some
16760
# reason, if we set the COLLECT_NAMES environment variable, the problems
16761
# vanish in a puff of smoke.
16762
if test "X${COLLECT_NAMES+set}" != Xset; then
16763
  COLLECT_NAMES=
16764
  export COLLECT_NAMES
16765
fi
16766
_LT_EOF
16767
    ;;
16768
  esac
16769
16770
16771
ltmain="$ac_aux_dir/ltmain.sh"
16772
16773
16774
  # We use sed instead of cat because bash on DJGPP gets confused if
16775
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16776
  # text mode, it properly converts lines to CR/LF.  This bash problem
16777
  # is reportedly fixed, but why not run on old versions too?
16778
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16779
    || (rm -f "$cfgfile"; exit 1)
16780
16781
  case $xsi_shell in
16782
  yes)
16783
    cat << \_LT_EOF >> "$cfgfile"
16784
16785
# func_dirname file append nondir_replacement
16786
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16787
# otherwise set result to NONDIR_REPLACEMENT.
16788
func_dirname ()
16789
{
16790
  case ${1} in
16791
    */*) func_dirname_result="${1%/*}${2}" ;;
16792
    *  ) func_dirname_result="${3}" ;;
16793
  esac
16794
}
16795
16796
# func_basename file
16797
func_basename ()
16798
{
16799
  func_basename_result="${1##*/}"
16800
}
16801
16802
# func_dirname_and_basename file append nondir_replacement
16803
# perform func_basename and func_dirname in a single function
16804
# call:
16805
#   dirname:  Compute the dirname of FILE.  If nonempty,
16806
#             add APPEND to the result, otherwise set result
16807
#             to NONDIR_REPLACEMENT.
16808
#             value returned in "$func_dirname_result"
16809
#   basename: Compute filename of FILE.
16810
#             value retuned in "$func_basename_result"
16811
# Implementation must be kept synchronized with func_dirname
16812
# and func_basename. For efficiency, we do not delegate to
16813
# those functions but instead duplicate the functionality here.
16814
func_dirname_and_basename ()
16815
{
16816
  case ${1} in
16817
    */*) func_dirname_result="${1%/*}${2}" ;;
16818
    *  ) func_dirname_result="${3}" ;;
16819
  esac
16820
  func_basename_result="${1##*/}"
16821
}
16822
16823
# func_stripname prefix suffix name
16824
# strip PREFIX and SUFFIX off of NAME.
16825
# PREFIX and SUFFIX must not contain globbing or regex special
16826
# characters, hashes, percent signs, but SUFFIX may contain a leading
16827
# dot (in which case that matches only a dot).
16828
func_stripname ()
16829
{
16830
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16831
  # positional parameters, so assign one to ordinary parameter first.
16832
  func_stripname_result=${3}
16833
  func_stripname_result=${func_stripname_result#"${1}"}
16834
  func_stripname_result=${func_stripname_result%"${2}"}
16835
}
16836
16837
# func_opt_split
16838
func_opt_split ()
16839
{
16840
  func_opt_split_opt=${1%%=*}
16841
  func_opt_split_arg=${1#*=}
16842
}
16843
16844
# func_lo2o object
16845
func_lo2o ()
16846
{
16847
  case ${1} in
16848
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16849
    *)    func_lo2o_result=${1} ;;
16850
  esac
16851
}
16852
16853
# func_xform libobj-or-source
16854
func_xform ()
16855
{
16856
  func_xform_result=${1%.*}.lo
16857
}
16858
16859
# func_arith arithmetic-term...
16860
func_arith ()
16861
{
16862
  func_arith_result=$(( $* ))
16863
}
16864
16865
# func_len string
16866
# STRING may not start with a hyphen.
16867
func_len ()
16868
{
16869
  func_len_result=${#1}
16870
}
16871
16872
_LT_EOF
16873
    ;;
16874
  *) # Bourne compatible functions.
16875
    cat << \_LT_EOF >> "$cfgfile"
16876
16877
# func_dirname file append nondir_replacement
16878
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16879
# otherwise set result to NONDIR_REPLACEMENT.
16880
func_dirname ()
16881
{
16882
  # Extract subdirectory from the argument.
16883
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16884
  if test "X$func_dirname_result" = "X${1}"; then
16885
    func_dirname_result="${3}"
16886
  else
16887
    func_dirname_result="$func_dirname_result${2}"
16888
  fi
16889
}
16890
16891
# func_basename file
16892
func_basename ()
16893
{
16894
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16895
}
16896
16897
16898
# func_stripname prefix suffix name
16899
# strip PREFIX and SUFFIX off of NAME.
16900
# PREFIX and SUFFIX must not contain globbing or regex special
16901
# characters, hashes, percent signs, but SUFFIX may contain a leading
16902
# dot (in which case that matches only a dot).
16903
# func_strip_suffix prefix name
16904
func_stripname ()
16905
{
16906
  case ${2} in
16907
    .*) func_stripname_result=`$ECHO "X${3}" \
16908
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16909
    *)  func_stripname_result=`$ECHO "X${3}" \
16910
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16911
  esac
16912
}
16913
16914
# sed scripts:
16915
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16916
my_sed_long_arg='1s/^-[^=]*=//'
16917
16918
# func_opt_split
16919
func_opt_split ()
16920
{
16921
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16922
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16923
}
16924
16925
# func_lo2o object
16926
func_lo2o ()
16927
{
16928
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16929
}
16930
16931
# func_xform libobj-or-source
16932
func_xform ()
16933
{
16934
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16935
}
16936
16937
# func_arith arithmetic-term...
16938
func_arith ()
16939
{
16940
  func_arith_result=`expr "$@"`
16941
}
16942
16943
# func_len string
16944
# STRING may not start with a hyphen.
16945
func_len ()
16946
{
16947
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16948
}
16949
16950
_LT_EOF
16951
esac
16952
16953
case $lt_shell_append in
16954
  yes)
16955
    cat << \_LT_EOF >> "$cfgfile"
16956
16957
# func_append var value
16958
# Append VALUE to the end of shell variable VAR.
16959
func_append ()
16960
{
16961
  eval "$1+=\$2"
16962
}
16963
_LT_EOF
16964
    ;;
16965
  *)
16966
    cat << \_LT_EOF >> "$cfgfile"
16967
16968
# func_append var value
16969
# Append VALUE to the end of shell variable VAR.
16970
func_append ()
16971
{
16972
  eval "$1=\$$1\$2"
16973
}
16974
16975
_LT_EOF
16976
    ;;
16977
  esac
16978
16979
16980
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16981
    || (rm -f "$cfgfile"; exit 1)
16982
16983
  mv -f "$cfgfile" "$ofile" ||
16984
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16985
  chmod +x "$ofile"
16986
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16987
 ;;
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16988
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16989
  esac
1.2.5 by Mario Limonciello
Import upstream version 0.8.3~pre1
16990
done # for ac_tag
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16991
16992
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16993
as_fn_exit 0
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
16994
_ACEOF
16995
ac_clean_files=$ac_clean_files_save
16996
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
16997
test $ac_write_fail = 0 ||
16998
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16999
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
17000
17001
# configure is writing to config.log, and then calls config.status.
17002
# config.status does its own redirection, appending to config.log.
17003
# Unfortunately, on DOS this fails, as config.log is still kept open
17004
# by configure, so config.status won't be able to write to it; its
17005
# output is simply discarded.  So we exec the FD to /dev/null,
17006
# effectively closing config.log, so it can be properly (re)opened and
17007
# appended to by config.status.  When coming back to configure, we
17008
# need to make the FD available again.
17009
if test "$no_create" != yes; then
17010
  ac_cs_success=:
17011
  ac_config_status_args=
17012
  test "$silent" = yes &&
17013
    ac_config_status_args="$ac_config_status_args --quiet"
17014
  exec 5>/dev/null
17015
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17016
  exec 5>>config.log
17017
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17018
  # would make configure fail if this is the last instruction.
1.2.10 by Mario Limonciello
Import upstream version 0.8.7~pre2
17019
  $ac_cs_success || as_fn_exit $?
17020
fi
17021
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17022
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17023
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
17024
fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
17025
17026
17027
echo
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
17028
if test "$driver" = "all"; then
17029
  echo "All kernel modules will be built."
17030
elif test "$driver" = "mediafocusI"; then
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
17031
  echo "You will have to use the MediaFocus driver from:"
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
17032
  echo "http://freenet-homepage.de/mediafocus/"
1.1.1 by LaMont Jones
Import upstream version 0.7.0.1
17033
elif test "$driver" = "exaudio"; then
17034
  echo "You will have to use the Exaudio driver from:"
17035
  echo "http://exaudio.sourceforge.net/"
1.2.2 by Scott James Remnant
Import upstream version 0.8.0
17036
elif test "$driver" = "alsa_usb"; then
17037
  echo "You will have to use the snd-usb-audio driver from:"
17038
  echo "http://www.alsa-project.org/"
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
17039
elif test "$driver" = "hauppauge_dvb"; then
17040
  echo "You will have to use the DVB driver from:"
17041
  echo "http://www.linuxtv.org"
17042
elif test "$kernel_module" = ""; then
1.2.3 by Kees Cook
Import upstream version 0.8.1+cvs20070310
17043
  echo "Your hardware does not require a special LIRC kernel module."
17044
  if test "${irtty}" != ""; then
17045
    echo
17046
    echo "You will have to use the suitable kernel driver to access ${irtty}."
17047
  fi
1 by Manuel Estrada Sainz
Import upstream version 0.6.5
17048
else
17049
  echo "You will have to use the $kernel_module kernel module."
17050
fi
17051
echo
17052
echo "Now enter 'make' and 'make install' to compile and install the package."
17053
echo