lemon-project-template-glpk

annotate deps/glpk/configure @ 9:33de93886c88

Import GLPK 4.47
author Alpar Juttner <alpar@cs.elte.hu>
date Sun, 06 Nov 2011 20:59:10 +0100
parents
children
rev   line source
alpar@9 1 #! /bin/sh
alpar@9 2 # Guess values for system-dependent variables and create Makefiles.
alpar@9 3 # Generated by GNU Autoconf 2.65 for GLPK 4.47.
alpar@9 4 #
alpar@9 5 # Report bugs to <bug-glpk@gnu.org>.
alpar@9 6 #
alpar@9 7 #
alpar@9 8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
alpar@9 9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
alpar@9 10 # Inc.
alpar@9 11 #
alpar@9 12 #
alpar@9 13 # This configure script is free software; the Free Software Foundation
alpar@9 14 # gives unlimited permission to copy, distribute and modify it.
alpar@9 15 ## -------------------- ##
alpar@9 16 ## M4sh Initialization. ##
alpar@9 17 ## -------------------- ##
alpar@9 18
alpar@9 19 # Be more Bourne compatible
alpar@9 20 DUALCASE=1; export DUALCASE # for MKS sh
alpar@9 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
alpar@9 22 emulate sh
alpar@9 23 NULLCMD=:
alpar@9 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
alpar@9 25 # is contrary to our usage. Disable this feature.
alpar@9 26 alias -g '${1+"$@"}'='"$@"'
alpar@9 27 setopt NO_GLOB_SUBST
alpar@9 28 else
alpar@9 29 case `(set -o) 2>/dev/null` in #(
alpar@9 30 *posix*) :
alpar@9 31 set -o posix ;; #(
alpar@9 32 *) :
alpar@9 33 ;;
alpar@9 34 esac
alpar@9 35 fi
alpar@9 36
alpar@9 37
alpar@9 38 as_nl='
alpar@9 39 '
alpar@9 40 export as_nl
alpar@9 41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
alpar@9 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
alpar@9 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
alpar@9 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
alpar@9 45 # Prefer a ksh shell builtin over an external printf program on Solaris,
alpar@9 46 # but without wasting forks for bash or zsh.
alpar@9 47 if test -z "$BASH_VERSION$ZSH_VERSION" \
alpar@9 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
alpar@9 49 as_echo='print -r --'
alpar@9 50 as_echo_n='print -rn --'
alpar@9 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
alpar@9 52 as_echo='printf %s\n'
alpar@9 53 as_echo_n='printf %s'
alpar@9 54 else
alpar@9 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
alpar@9 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
alpar@9 57 as_echo_n='/usr/ucb/echo -n'
alpar@9 58 else
alpar@9 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
alpar@9 60 as_echo_n_body='eval
alpar@9 61 arg=$1;
alpar@9 62 case $arg in #(
alpar@9 63 *"$as_nl"*)
alpar@9 64 expr "X$arg" : "X\\(.*\\)$as_nl";
alpar@9 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
alpar@9 66 esac;
alpar@9 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
alpar@9 68 '
alpar@9 69 export as_echo_n_body
alpar@9 70 as_echo_n='sh -c $as_echo_n_body as_echo'
alpar@9 71 fi
alpar@9 72 export as_echo_body
alpar@9 73 as_echo='sh -c $as_echo_body as_echo'
alpar@9 74 fi
alpar@9 75
alpar@9 76 # The user is always right.
alpar@9 77 if test "${PATH_SEPARATOR+set}" != set; then
alpar@9 78 PATH_SEPARATOR=:
alpar@9 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
alpar@9 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
alpar@9 81 PATH_SEPARATOR=';'
alpar@9 82 }
alpar@9 83 fi
alpar@9 84
alpar@9 85
alpar@9 86 # IFS
alpar@9 87 # We need space, tab and new line, in precisely that order. Quoting is
alpar@9 88 # there to prevent editors from complaining about space-tab.
alpar@9 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
alpar@9 90 # splitting by setting IFS to empty value.)
alpar@9 91 IFS=" "" $as_nl"
alpar@9 92
alpar@9 93 # Find who we are. Look in the path if we contain no directory separator.
alpar@9 94 case $0 in #((
alpar@9 95 *[\\/]* ) as_myself=$0 ;;
alpar@9 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 97 for as_dir in $PATH
alpar@9 98 do
alpar@9 99 IFS=$as_save_IFS
alpar@9 100 test -z "$as_dir" && as_dir=.
alpar@9 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
alpar@9 102 done
alpar@9 103 IFS=$as_save_IFS
alpar@9 104
alpar@9 105 ;;
alpar@9 106 esac
alpar@9 107 # We did not find ourselves, most probably we were run as `sh COMMAND'
alpar@9 108 # in which case we are not to be found in the path.
alpar@9 109 if test "x$as_myself" = x; then
alpar@9 110 as_myself=$0
alpar@9 111 fi
alpar@9 112 if test ! -f "$as_myself"; then
alpar@9 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
alpar@9 114 exit 1
alpar@9 115 fi
alpar@9 116
alpar@9 117 # Unset variables that we do not need and which cause bugs (e.g. in
alpar@9 118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
alpar@9 119 # suppresses any "Segmentation fault" message there. '((' could
alpar@9 120 # trigger a bug in pdksh 5.2.14.
alpar@9 121 for as_var in BASH_ENV ENV MAIL MAILPATH
alpar@9 122 do eval test x\${$as_var+set} = xset \
alpar@9 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
alpar@9 124 done
alpar@9 125 PS1='$ '
alpar@9 126 PS2='> '
alpar@9 127 PS4='+ '
alpar@9 128
alpar@9 129 # NLS nuisances.
alpar@9 130 LC_ALL=C
alpar@9 131 export LC_ALL
alpar@9 132 LANGUAGE=C
alpar@9 133 export LANGUAGE
alpar@9 134
alpar@9 135 # CDPATH.
alpar@9 136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
alpar@9 137
alpar@9 138 if test "x$CONFIG_SHELL" = x; then
alpar@9 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
alpar@9 140 emulate sh
alpar@9 141 NULLCMD=:
alpar@9 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
alpar@9 143 # is contrary to our usage. Disable this feature.
alpar@9 144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
alpar@9 145 setopt NO_GLOB_SUBST
alpar@9 146 else
alpar@9 147 case \`(set -o) 2>/dev/null\` in #(
alpar@9 148 *posix*) :
alpar@9 149 set -o posix ;; #(
alpar@9 150 *) :
alpar@9 151 ;;
alpar@9 152 esac
alpar@9 153 fi
alpar@9 154 "
alpar@9 155 as_required="as_fn_return () { (exit \$1); }
alpar@9 156 as_fn_success () { as_fn_return 0; }
alpar@9 157 as_fn_failure () { as_fn_return 1; }
alpar@9 158 as_fn_ret_success () { return 0; }
alpar@9 159 as_fn_ret_failure () { return 1; }
alpar@9 160
alpar@9 161 exitcode=0
alpar@9 162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
alpar@9 163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
alpar@9 164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
alpar@9 165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
alpar@9 166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
alpar@9 167
alpar@9 168 else
alpar@9 169 exitcode=1; echo positional parameters were not saved.
alpar@9 170 fi
alpar@9 171 test x\$exitcode = x0 || exit 1"
alpar@9 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
alpar@9 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
alpar@9 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
alpar@9 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
alpar@9 176
alpar@9 177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
alpar@9 178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
alpar@9 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
alpar@9 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
alpar@9 181 PATH=/empty FPATH=/empty; export PATH FPATH
alpar@9 182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
alpar@9 183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
alpar@9 184 test \$(( 1 + 1 )) = 2 || exit 1"
alpar@9 185 if (eval "$as_required") 2>/dev/null; then :
alpar@9 186 as_have_required=yes
alpar@9 187 else
alpar@9 188 as_have_required=no
alpar@9 189 fi
alpar@9 190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
alpar@9 191
alpar@9 192 else
alpar@9 193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 194 as_found=false
alpar@9 195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
alpar@9 196 do
alpar@9 197 IFS=$as_save_IFS
alpar@9 198 test -z "$as_dir" && as_dir=.
alpar@9 199 as_found=:
alpar@9 200 case $as_dir in #(
alpar@9 201 /*)
alpar@9 202 for as_base in sh bash ksh sh5; do
alpar@9 203 # Try only shells that exist, to save several forks.
alpar@9 204 as_shell=$as_dir/$as_base
alpar@9 205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
alpar@9 206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
alpar@9 207 CONFIG_SHELL=$as_shell as_have_required=yes
alpar@9 208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
alpar@9 209 break 2
alpar@9 210 fi
alpar@9 211 fi
alpar@9 212 done;;
alpar@9 213 esac
alpar@9 214 as_found=false
alpar@9 215 done
alpar@9 216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
alpar@9 217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
alpar@9 218 CONFIG_SHELL=$SHELL as_have_required=yes
alpar@9 219 fi; }
alpar@9 220 IFS=$as_save_IFS
alpar@9 221
alpar@9 222
alpar@9 223 if test "x$CONFIG_SHELL" != x; then :
alpar@9 224 # We cannot yet assume a decent shell, so we have to provide a
alpar@9 225 # neutralization value for shells without unset; and this also
alpar@9 226 # works around shells that cannot unset nonexistent variables.
alpar@9 227 BASH_ENV=/dev/null
alpar@9 228 ENV=/dev/null
alpar@9 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
alpar@9 230 export CONFIG_SHELL
alpar@9 231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
alpar@9 232 fi
alpar@9 233
alpar@9 234 if test x$as_have_required = xno; then :
alpar@9 235 $as_echo "$0: This script requires a shell more modern than all"
alpar@9 236 $as_echo "$0: the shells that I found on your system."
alpar@9 237 if test x${ZSH_VERSION+set} = xset ; then
alpar@9 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
alpar@9 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
alpar@9 240 else
alpar@9 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-glpk@gnu.org
alpar@9 242 $0: about your system, including any error possibly output
alpar@9 243 $0: before this message. Then install a modern shell, or
alpar@9 244 $0: manually run the script under such a shell if you do
alpar@9 245 $0: have one."
alpar@9 246 fi
alpar@9 247 exit 1
alpar@9 248 fi
alpar@9 249 fi
alpar@9 250 fi
alpar@9 251 SHELL=${CONFIG_SHELL-/bin/sh}
alpar@9 252 export SHELL
alpar@9 253 # Unset more variables known to interfere with behavior of common tools.
alpar@9 254 CLICOLOR_FORCE= GREP_OPTIONS=
alpar@9 255 unset CLICOLOR_FORCE GREP_OPTIONS
alpar@9 256
alpar@9 257 ## --------------------- ##
alpar@9 258 ## M4sh Shell Functions. ##
alpar@9 259 ## --------------------- ##
alpar@9 260 # as_fn_unset VAR
alpar@9 261 # ---------------
alpar@9 262 # Portably unset VAR.
alpar@9 263 as_fn_unset ()
alpar@9 264 {
alpar@9 265 { eval $1=; unset $1;}
alpar@9 266 }
alpar@9 267 as_unset=as_fn_unset
alpar@9 268
alpar@9 269 # as_fn_set_status STATUS
alpar@9 270 # -----------------------
alpar@9 271 # Set $? to STATUS, without forking.
alpar@9 272 as_fn_set_status ()
alpar@9 273 {
alpar@9 274 return $1
alpar@9 275 } # as_fn_set_status
alpar@9 276
alpar@9 277 # as_fn_exit STATUS
alpar@9 278 # -----------------
alpar@9 279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
alpar@9 280 as_fn_exit ()
alpar@9 281 {
alpar@9 282 set +e
alpar@9 283 as_fn_set_status $1
alpar@9 284 exit $1
alpar@9 285 } # as_fn_exit
alpar@9 286
alpar@9 287 # as_fn_mkdir_p
alpar@9 288 # -------------
alpar@9 289 # Create "$as_dir" as a directory, including parents if necessary.
alpar@9 290 as_fn_mkdir_p ()
alpar@9 291 {
alpar@9 292
alpar@9 293 case $as_dir in #(
alpar@9 294 -*) as_dir=./$as_dir;;
alpar@9 295 esac
alpar@9 296 test -d "$as_dir" || eval $as_mkdir_p || {
alpar@9 297 as_dirs=
alpar@9 298 while :; do
alpar@9 299 case $as_dir in #(
alpar@9 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
alpar@9 301 *) as_qdir=$as_dir;;
alpar@9 302 esac
alpar@9 303 as_dirs="'$as_qdir' $as_dirs"
alpar@9 304 as_dir=`$as_dirname -- "$as_dir" ||
alpar@9 305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
alpar@9 306 X"$as_dir" : 'X\(//\)[^/]' \| \
alpar@9 307 X"$as_dir" : 'X\(//\)$' \| \
alpar@9 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
alpar@9 309 $as_echo X"$as_dir" |
alpar@9 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
alpar@9 311 s//\1/
alpar@9 312 q
alpar@9 313 }
alpar@9 314 /^X\(\/\/\)[^/].*/{
alpar@9 315 s//\1/
alpar@9 316 q
alpar@9 317 }
alpar@9 318 /^X\(\/\/\)$/{
alpar@9 319 s//\1/
alpar@9 320 q
alpar@9 321 }
alpar@9 322 /^X\(\/\).*/{
alpar@9 323 s//\1/
alpar@9 324 q
alpar@9 325 }
alpar@9 326 s/.*/./; q'`
alpar@9 327 test -d "$as_dir" && break
alpar@9 328 done
alpar@9 329 test -z "$as_dirs" || eval "mkdir $as_dirs"
alpar@9 330 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
alpar@9 331
alpar@9 332
alpar@9 333 } # as_fn_mkdir_p
alpar@9 334 # as_fn_append VAR VALUE
alpar@9 335 # ----------------------
alpar@9 336 # Append the text in VALUE to the end of the definition contained in VAR. Take
alpar@9 337 # advantage of any shell optimizations that allow amortized linear growth over
alpar@9 338 # repeated appends, instead of the typical quadratic growth present in naive
alpar@9 339 # implementations.
alpar@9 340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
alpar@9 341 eval 'as_fn_append ()
alpar@9 342 {
alpar@9 343 eval $1+=\$2
alpar@9 344 }'
alpar@9 345 else
alpar@9 346 as_fn_append ()
alpar@9 347 {
alpar@9 348 eval $1=\$$1\$2
alpar@9 349 }
alpar@9 350 fi # as_fn_append
alpar@9 351
alpar@9 352 # as_fn_arith ARG...
alpar@9 353 # ------------------
alpar@9 354 # Perform arithmetic evaluation on the ARGs, and store the result in the
alpar@9 355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
alpar@9 356 # must be portable across $(()) and expr.
alpar@9 357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
alpar@9 358 eval 'as_fn_arith ()
alpar@9 359 {
alpar@9 360 as_val=$(( $* ))
alpar@9 361 }'
alpar@9 362 else
alpar@9 363 as_fn_arith ()
alpar@9 364 {
alpar@9 365 as_val=`expr "$@" || test $? -eq 1`
alpar@9 366 }
alpar@9 367 fi # as_fn_arith
alpar@9 368
alpar@9 369
alpar@9 370 # as_fn_error ERROR [LINENO LOG_FD]
alpar@9 371 # ---------------------------------
alpar@9 372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
alpar@9 373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
alpar@9 374 # script with status $?, using 1 if that was 0.
alpar@9 375 as_fn_error ()
alpar@9 376 {
alpar@9 377 as_status=$?; test $as_status -eq 0 && as_status=1
alpar@9 378 if test "$3"; then
alpar@9 379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
alpar@9 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
alpar@9 381 fi
alpar@9 382 $as_echo "$as_me: error: $1" >&2
alpar@9 383 as_fn_exit $as_status
alpar@9 384 } # as_fn_error
alpar@9 385
alpar@9 386 if expr a : '\(a\)' >/dev/null 2>&1 &&
alpar@9 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
alpar@9 388 as_expr=expr
alpar@9 389 else
alpar@9 390 as_expr=false
alpar@9 391 fi
alpar@9 392
alpar@9 393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
alpar@9 394 as_basename=basename
alpar@9 395 else
alpar@9 396 as_basename=false
alpar@9 397 fi
alpar@9 398
alpar@9 399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
alpar@9 400 as_dirname=dirname
alpar@9 401 else
alpar@9 402 as_dirname=false
alpar@9 403 fi
alpar@9 404
alpar@9 405 as_me=`$as_basename -- "$0" ||
alpar@9 406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
alpar@9 407 X"$0" : 'X\(//\)$' \| \
alpar@9 408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
alpar@9 409 $as_echo X/"$0" |
alpar@9 410 sed '/^.*\/\([^/][^/]*\)\/*$/{
alpar@9 411 s//\1/
alpar@9 412 q
alpar@9 413 }
alpar@9 414 /^X\/\(\/\/\)$/{
alpar@9 415 s//\1/
alpar@9 416 q
alpar@9 417 }
alpar@9 418 /^X\/\(\/\).*/{
alpar@9 419 s//\1/
alpar@9 420 q
alpar@9 421 }
alpar@9 422 s/.*/./; q'`
alpar@9 423
alpar@9 424 # Avoid depending upon Character Ranges.
alpar@9 425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
alpar@9 426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
alpar@9 427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
alpar@9 428 as_cr_digits='0123456789'
alpar@9 429 as_cr_alnum=$as_cr_Letters$as_cr_digits
alpar@9 430
alpar@9 431
alpar@9 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
alpar@9 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
alpar@9 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
alpar@9 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
alpar@9 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
alpar@9 437 sed -n '
alpar@9 438 p
alpar@9 439 /[$]LINENO/=
alpar@9 440 ' <$as_myself |
alpar@9 441 sed '
alpar@9 442 s/[$]LINENO.*/&-/
alpar@9 443 t lineno
alpar@9 444 b
alpar@9 445 :lineno
alpar@9 446 N
alpar@9 447 :loop
alpar@9 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
alpar@9 449 t loop
alpar@9 450 s/-\n.*//
alpar@9 451 ' >$as_me.lineno &&
alpar@9 452 chmod +x "$as_me.lineno" ||
alpar@9 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
alpar@9 454
alpar@9 455 # Don't try to exec as it changes $[0], causing all sort of problems
alpar@9 456 # (the dirname of $[0] is not the place where we might find the
alpar@9 457 # original and so on. Autoconf is especially sensitive to this).
alpar@9 458 . "./$as_me.lineno"
alpar@9 459 # Exit status is that of the last command.
alpar@9 460 exit
alpar@9 461 }
alpar@9 462
alpar@9 463 ECHO_C= ECHO_N= ECHO_T=
alpar@9 464 case `echo -n x` in #(((((
alpar@9 465 -n*)
alpar@9 466 case `echo 'xy\c'` in
alpar@9 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
alpar@9 468 xy) ECHO_C='\c';;
alpar@9 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
alpar@9 470 ECHO_T=' ';;
alpar@9 471 esac;;
alpar@9 472 *)
alpar@9 473 ECHO_N='-n';;
alpar@9 474 esac
alpar@9 475
alpar@9 476 rm -f conf$$ conf$$.exe conf$$.file
alpar@9 477 if test -d conf$$.dir; then
alpar@9 478 rm -f conf$$.dir/conf$$.file
alpar@9 479 else
alpar@9 480 rm -f conf$$.dir
alpar@9 481 mkdir conf$$.dir 2>/dev/null
alpar@9 482 fi
alpar@9 483 if (echo >conf$$.file) 2>/dev/null; then
alpar@9 484 if ln -s conf$$.file conf$$ 2>/dev/null; then
alpar@9 485 as_ln_s='ln -s'
alpar@9 486 # ... but there are two gotchas:
alpar@9 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
alpar@9 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
alpar@9 489 # In both cases, we have to default to `cp -p'.
alpar@9 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
alpar@9 491 as_ln_s='cp -p'
alpar@9 492 elif ln conf$$.file conf$$ 2>/dev/null; then
alpar@9 493 as_ln_s=ln
alpar@9 494 else
alpar@9 495 as_ln_s='cp -p'
alpar@9 496 fi
alpar@9 497 else
alpar@9 498 as_ln_s='cp -p'
alpar@9 499 fi
alpar@9 500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
alpar@9 501 rmdir conf$$.dir 2>/dev/null
alpar@9 502
alpar@9 503 if mkdir -p . 2>/dev/null; then
alpar@9 504 as_mkdir_p='mkdir -p "$as_dir"'
alpar@9 505 else
alpar@9 506 test -d ./-p && rmdir ./-p
alpar@9 507 as_mkdir_p=false
alpar@9 508 fi
alpar@9 509
alpar@9 510 if test -x / >/dev/null 2>&1; then
alpar@9 511 as_test_x='test -x'
alpar@9 512 else
alpar@9 513 if ls -dL / >/dev/null 2>&1; then
alpar@9 514 as_ls_L_option=L
alpar@9 515 else
alpar@9 516 as_ls_L_option=
alpar@9 517 fi
alpar@9 518 as_test_x='
alpar@9 519 eval sh -c '\''
alpar@9 520 if test -d "$1"; then
alpar@9 521 test -d "$1/.";
alpar@9 522 else
alpar@9 523 case $1 in #(
alpar@9 524 -*)set "./$1";;
alpar@9 525 esac;
alpar@9 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
alpar@9 527 ???[sx]*):;;*)false;;esac;fi
alpar@9 528 '\'' sh
alpar@9 529 '
alpar@9 530 fi
alpar@9 531 as_executable_p=$as_test_x
alpar@9 532
alpar@9 533 # Sed expression to map a string onto a valid CPP name.
alpar@9 534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
alpar@9 535
alpar@9 536 # Sed expression to map a string onto a valid variable name.
alpar@9 537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
alpar@9 538
alpar@9 539 SHELL=${CONFIG_SHELL-/bin/sh}
alpar@9 540
alpar@9 541
alpar@9 542 test -n "$DJDIR" || exec 7<&0 </dev/null
alpar@9 543 exec 6>&1
alpar@9 544
alpar@9 545 # Name of the host.
alpar@9 546 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
alpar@9 547 # so uname gets run too.
alpar@9 548 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
alpar@9 549
alpar@9 550 #
alpar@9 551 # Initializations.
alpar@9 552 #
alpar@9 553 ac_default_prefix=/usr/local
alpar@9 554 ac_clean_files=
alpar@9 555 ac_config_libobj_dir=.
alpar@9 556 LIBOBJS=
alpar@9 557 cross_compiling=no
alpar@9 558 subdirs=
alpar@9 559 MFLAGS=
alpar@9 560 MAKEFLAGS=
alpar@9 561
alpar@9 562 # Identity of this package.
alpar@9 563 PACKAGE_NAME='GLPK'
alpar@9 564 PACKAGE_TARNAME='glpk'
alpar@9 565 PACKAGE_VERSION='4.47'
alpar@9 566 PACKAGE_STRING='GLPK 4.47'
alpar@9 567 PACKAGE_BUGREPORT='bug-glpk@gnu.org'
alpar@9 568 PACKAGE_URL=''
alpar@9 569
alpar@9 570 ac_unique_file="src/glpk.h"
alpar@9 571 # Factoring default headers for most tests.
alpar@9 572 ac_includes_default="\
alpar@9 573 #include <stdio.h>
alpar@9 574 #ifdef HAVE_SYS_TYPES_H
alpar@9 575 # include <sys/types.h>
alpar@9 576 #endif
alpar@9 577 #ifdef HAVE_SYS_STAT_H
alpar@9 578 # include <sys/stat.h>
alpar@9 579 #endif
alpar@9 580 #ifdef STDC_HEADERS
alpar@9 581 # include <stdlib.h>
alpar@9 582 # include <stddef.h>
alpar@9 583 #else
alpar@9 584 # ifdef HAVE_STDLIB_H
alpar@9 585 # include <stdlib.h>
alpar@9 586 # endif
alpar@9 587 #endif
alpar@9 588 #ifdef HAVE_STRING_H
alpar@9 589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
alpar@9 590 # include <memory.h>
alpar@9 591 # endif
alpar@9 592 # include <string.h>
alpar@9 593 #endif
alpar@9 594 #ifdef HAVE_STRINGS_H
alpar@9 595 # include <strings.h>
alpar@9 596 #endif
alpar@9 597 #ifdef HAVE_INTTYPES_H
alpar@9 598 # include <inttypes.h>
alpar@9 599 #endif
alpar@9 600 #ifdef HAVE_STDINT_H
alpar@9 601 # include <stdint.h>
alpar@9 602 #endif
alpar@9 603 #ifdef HAVE_UNISTD_H
alpar@9 604 # include <unistd.h>
alpar@9 605 #endif"
alpar@9 606
alpar@9 607 ac_subst_vars='am__EXEEXT_FALSE
alpar@9 608 am__EXEEXT_TRUE
alpar@9 609 LTLIBOBJS
alpar@9 610 LIBOBJS
alpar@9 611 CPP
alpar@9 612 OTOOL64
alpar@9 613 OTOOL
alpar@9 614 LIPO
alpar@9 615 NMEDIT
alpar@9 616 DSYMUTIL
alpar@9 617 RANLIB
alpar@9 618 AR
alpar@9 619 DLLTOOL
alpar@9 620 OBJDUMP
alpar@9 621 to_host_path_cmd
alpar@9 622 LN_S
alpar@9 623 NM
alpar@9 624 ac_ct_DUMPBIN
alpar@9 625 DUMPBIN
alpar@9 626 LD
alpar@9 627 FGREP
alpar@9 628 EGREP
alpar@9 629 GREP
alpar@9 630 SED
alpar@9 631 host_os
alpar@9 632 host_vendor
alpar@9 633 host_cpu
alpar@9 634 host
alpar@9 635 build_os
alpar@9 636 build_vendor
alpar@9 637 build_cpu
alpar@9 638 build
alpar@9 639 LIBTOOL
alpar@9 640 am__fastdepCC_FALSE
alpar@9 641 am__fastdepCC_TRUE
alpar@9 642 CCDEPMODE
alpar@9 643 AMDEPBACKSLASH
alpar@9 644 AMDEP_FALSE
alpar@9 645 AMDEP_TRUE
alpar@9 646 am__quote
alpar@9 647 am__include
alpar@9 648 DEPDIR
alpar@9 649 OBJEXT
alpar@9 650 EXEEXT
alpar@9 651 ac_ct_CC
alpar@9 652 CPPFLAGS
alpar@9 653 LDFLAGS
alpar@9 654 CFLAGS
alpar@9 655 CC
alpar@9 656 am__untar
alpar@9 657 am__tar
alpar@9 658 AMTAR
alpar@9 659 am__leading_dot
alpar@9 660 SET_MAKE
alpar@9 661 AWK
alpar@9 662 mkdir_p
alpar@9 663 MKDIR_P
alpar@9 664 INSTALL_STRIP_PROGRAM
alpar@9 665 STRIP
alpar@9 666 install_sh
alpar@9 667 MAKEINFO
alpar@9 668 AUTOHEADER
alpar@9 669 AUTOMAKE
alpar@9 670 AUTOCONF
alpar@9 671 ACLOCAL
alpar@9 672 VERSION
alpar@9 673 PACKAGE
alpar@9 674 CYGPATH_W
alpar@9 675 am__isrc
alpar@9 676 INSTALL_DATA
alpar@9 677 INSTALL_SCRIPT
alpar@9 678 INSTALL_PROGRAM
alpar@9 679 target_alias
alpar@9 680 host_alias
alpar@9 681 build_alias
alpar@9 682 LIBS
alpar@9 683 ECHO_T
alpar@9 684 ECHO_N
alpar@9 685 ECHO_C
alpar@9 686 DEFS
alpar@9 687 mandir
alpar@9 688 localedir
alpar@9 689 libdir
alpar@9 690 psdir
alpar@9 691 pdfdir
alpar@9 692 dvidir
alpar@9 693 htmldir
alpar@9 694 infodir
alpar@9 695 docdir
alpar@9 696 oldincludedir
alpar@9 697 includedir
alpar@9 698 localstatedir
alpar@9 699 sharedstatedir
alpar@9 700 sysconfdir
alpar@9 701 datadir
alpar@9 702 datarootdir
alpar@9 703 libexecdir
alpar@9 704 sbindir
alpar@9 705 bindir
alpar@9 706 program_transform_name
alpar@9 707 prefix
alpar@9 708 exec_prefix
alpar@9 709 PACKAGE_URL
alpar@9 710 PACKAGE_BUGREPORT
alpar@9 711 PACKAGE_STRING
alpar@9 712 PACKAGE_VERSION
alpar@9 713 PACKAGE_TARNAME
alpar@9 714 PACKAGE_NAME
alpar@9 715 PATH_SEPARATOR
alpar@9 716 SHELL'
alpar@9 717 ac_subst_files=''
alpar@9 718 ac_user_opts='
alpar@9 719 enable_option_checking
alpar@9 720 with_gmp
alpar@9 721 enable_dl
alpar@9 722 enable_odbc
alpar@9 723 enable_mysql
alpar@9 724 enable_dependency_tracking
alpar@9 725 enable_shared
alpar@9 726 enable_static
alpar@9 727 with_pic
alpar@9 728 enable_fast_install
alpar@9 729 with_gnu_ld
alpar@9 730 enable_libtool_lock
alpar@9 731 '
alpar@9 732 ac_precious_vars='build_alias
alpar@9 733 host_alias
alpar@9 734 target_alias
alpar@9 735 CC
alpar@9 736 CFLAGS
alpar@9 737 LDFLAGS
alpar@9 738 LIBS
alpar@9 739 CPPFLAGS
alpar@9 740 CPP'
alpar@9 741
alpar@9 742
alpar@9 743 # Initialize some variables set by options.
alpar@9 744 ac_init_help=
alpar@9 745 ac_init_version=false
alpar@9 746 ac_unrecognized_opts=
alpar@9 747 ac_unrecognized_sep=
alpar@9 748 # The variables have the same names as the options, with
alpar@9 749 # dashes changed to underlines.
alpar@9 750 cache_file=/dev/null
alpar@9 751 exec_prefix=NONE
alpar@9 752 no_create=
alpar@9 753 no_recursion=
alpar@9 754 prefix=NONE
alpar@9 755 program_prefix=NONE
alpar@9 756 program_suffix=NONE
alpar@9 757 program_transform_name=s,x,x,
alpar@9 758 silent=
alpar@9 759 site=
alpar@9 760 srcdir=
alpar@9 761 verbose=
alpar@9 762 x_includes=NONE
alpar@9 763 x_libraries=NONE
alpar@9 764
alpar@9 765 # Installation directory options.
alpar@9 766 # These are left unexpanded so users can "make install exec_prefix=/foo"
alpar@9 767 # and all the variables that are supposed to be based on exec_prefix
alpar@9 768 # by default will actually change.
alpar@9 769 # Use braces instead of parens because sh, perl, etc. also accept them.
alpar@9 770 # (The list follows the same order as the GNU Coding Standards.)
alpar@9 771 bindir='${exec_prefix}/bin'
alpar@9 772 sbindir='${exec_prefix}/sbin'
alpar@9 773 libexecdir='${exec_prefix}/libexec'
alpar@9 774 datarootdir='${prefix}/share'
alpar@9 775 datadir='${datarootdir}'
alpar@9 776 sysconfdir='${prefix}/etc'
alpar@9 777 sharedstatedir='${prefix}/com'
alpar@9 778 localstatedir='${prefix}/var'
alpar@9 779 includedir='${prefix}/include'
alpar@9 780 oldincludedir='/usr/include'
alpar@9 781 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
alpar@9 782 infodir='${datarootdir}/info'
alpar@9 783 htmldir='${docdir}'
alpar@9 784 dvidir='${docdir}'
alpar@9 785 pdfdir='${docdir}'
alpar@9 786 psdir='${docdir}'
alpar@9 787 libdir='${exec_prefix}/lib'
alpar@9 788 localedir='${datarootdir}/locale'
alpar@9 789 mandir='${datarootdir}/man'
alpar@9 790
alpar@9 791 ac_prev=
alpar@9 792 ac_dashdash=
alpar@9 793 for ac_option
alpar@9 794 do
alpar@9 795 # If the previous option needs an argument, assign it.
alpar@9 796 if test -n "$ac_prev"; then
alpar@9 797 eval $ac_prev=\$ac_option
alpar@9 798 ac_prev=
alpar@9 799 continue
alpar@9 800 fi
alpar@9 801
alpar@9 802 case $ac_option in
alpar@9 803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
alpar@9 804 *) ac_optarg=yes ;;
alpar@9 805 esac
alpar@9 806
alpar@9 807 # Accept the important Cygnus configure options, so we can diagnose typos.
alpar@9 808
alpar@9 809 case $ac_dashdash$ac_option in
alpar@9 810 --)
alpar@9 811 ac_dashdash=yes ;;
alpar@9 812
alpar@9 813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
alpar@9 814 ac_prev=bindir ;;
alpar@9 815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
alpar@9 816 bindir=$ac_optarg ;;
alpar@9 817
alpar@9 818 -build | --build | --buil | --bui | --bu)
alpar@9 819 ac_prev=build_alias ;;
alpar@9 820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
alpar@9 821 build_alias=$ac_optarg ;;
alpar@9 822
alpar@9 823 -cache-file | --cache-file | --cache-fil | --cache-fi \
alpar@9 824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
alpar@9 825 ac_prev=cache_file ;;
alpar@9 826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
alpar@9 827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
alpar@9 828 cache_file=$ac_optarg ;;
alpar@9 829
alpar@9 830 --config-cache | -C)
alpar@9 831 cache_file=config.cache ;;
alpar@9 832
alpar@9 833 -datadir | --datadir | --datadi | --datad)
alpar@9 834 ac_prev=datadir ;;
alpar@9 835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
alpar@9 836 datadir=$ac_optarg ;;
alpar@9 837
alpar@9 838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
alpar@9 839 | --dataroo | --dataro | --datar)
alpar@9 840 ac_prev=datarootdir ;;
alpar@9 841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
alpar@9 842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
alpar@9 843 datarootdir=$ac_optarg ;;
alpar@9 844
alpar@9 845 -disable-* | --disable-*)
alpar@9 846 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
alpar@9 847 # Reject names that are not valid shell variable names.
alpar@9 848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
alpar@9 849 as_fn_error "invalid feature name: $ac_useropt"
alpar@9 850 ac_useropt_orig=$ac_useropt
alpar@9 851 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
alpar@9 852 case $ac_user_opts in
alpar@9 853 *"
alpar@9 854 "enable_$ac_useropt"
alpar@9 855 "*) ;;
alpar@9 856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
alpar@9 857 ac_unrecognized_sep=', ';;
alpar@9 858 esac
alpar@9 859 eval enable_$ac_useropt=no ;;
alpar@9 860
alpar@9 861 -docdir | --docdir | --docdi | --doc | --do)
alpar@9 862 ac_prev=docdir ;;
alpar@9 863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
alpar@9 864 docdir=$ac_optarg ;;
alpar@9 865
alpar@9 866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
alpar@9 867 ac_prev=dvidir ;;
alpar@9 868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
alpar@9 869 dvidir=$ac_optarg ;;
alpar@9 870
alpar@9 871 -enable-* | --enable-*)
alpar@9 872 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
alpar@9 873 # Reject names that are not valid shell variable names.
alpar@9 874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
alpar@9 875 as_fn_error "invalid feature name: $ac_useropt"
alpar@9 876 ac_useropt_orig=$ac_useropt
alpar@9 877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
alpar@9 878 case $ac_user_opts in
alpar@9 879 *"
alpar@9 880 "enable_$ac_useropt"
alpar@9 881 "*) ;;
alpar@9 882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
alpar@9 883 ac_unrecognized_sep=', ';;
alpar@9 884 esac
alpar@9 885 eval enable_$ac_useropt=\$ac_optarg ;;
alpar@9 886
alpar@9 887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
alpar@9 888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
alpar@9 889 | --exec | --exe | --ex)
alpar@9 890 ac_prev=exec_prefix ;;
alpar@9 891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
alpar@9 892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
alpar@9 893 | --exec=* | --exe=* | --ex=*)
alpar@9 894 exec_prefix=$ac_optarg ;;
alpar@9 895
alpar@9 896 -gas | --gas | --ga | --g)
alpar@9 897 # Obsolete; use --with-gas.
alpar@9 898 with_gas=yes ;;
alpar@9 899
alpar@9 900 -help | --help | --hel | --he | -h)
alpar@9 901 ac_init_help=long ;;
alpar@9 902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
alpar@9 903 ac_init_help=recursive ;;
alpar@9 904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
alpar@9 905 ac_init_help=short ;;
alpar@9 906
alpar@9 907 -host | --host | --hos | --ho)
alpar@9 908 ac_prev=host_alias ;;
alpar@9 909 -host=* | --host=* | --hos=* | --ho=*)
alpar@9 910 host_alias=$ac_optarg ;;
alpar@9 911
alpar@9 912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
alpar@9 913 ac_prev=htmldir ;;
alpar@9 914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
alpar@9 915 | --ht=*)
alpar@9 916 htmldir=$ac_optarg ;;
alpar@9 917
alpar@9 918 -includedir | --includedir | --includedi | --included | --include \
alpar@9 919 | --includ | --inclu | --incl | --inc)
alpar@9 920 ac_prev=includedir ;;
alpar@9 921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
alpar@9 922 | --includ=* | --inclu=* | --incl=* | --inc=*)
alpar@9 923 includedir=$ac_optarg ;;
alpar@9 924
alpar@9 925 -infodir | --infodir | --infodi | --infod | --info | --inf)
alpar@9 926 ac_prev=infodir ;;
alpar@9 927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
alpar@9 928 infodir=$ac_optarg ;;
alpar@9 929
alpar@9 930 -libdir | --libdir | --libdi | --libd)
alpar@9 931 ac_prev=libdir ;;
alpar@9 932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
alpar@9 933 libdir=$ac_optarg ;;
alpar@9 934
alpar@9 935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
alpar@9 936 | --libexe | --libex | --libe)
alpar@9 937 ac_prev=libexecdir ;;
alpar@9 938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
alpar@9 939 | --libexe=* | --libex=* | --libe=*)
alpar@9 940 libexecdir=$ac_optarg ;;
alpar@9 941
alpar@9 942 -localedir | --localedir | --localedi | --localed | --locale)
alpar@9 943 ac_prev=localedir ;;
alpar@9 944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
alpar@9 945 localedir=$ac_optarg ;;
alpar@9 946
alpar@9 947 -localstatedir | --localstatedir | --localstatedi | --localstated \
alpar@9 948 | --localstate | --localstat | --localsta | --localst | --locals)
alpar@9 949 ac_prev=localstatedir ;;
alpar@9 950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
alpar@9 951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
alpar@9 952 localstatedir=$ac_optarg ;;
alpar@9 953
alpar@9 954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
alpar@9 955 ac_prev=mandir ;;
alpar@9 956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
alpar@9 957 mandir=$ac_optarg ;;
alpar@9 958
alpar@9 959 -nfp | --nfp | --nf)
alpar@9 960 # Obsolete; use --without-fp.
alpar@9 961 with_fp=no ;;
alpar@9 962
alpar@9 963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
alpar@9 964 | --no-cr | --no-c | -n)
alpar@9 965 no_create=yes ;;
alpar@9 966
alpar@9 967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
alpar@9 968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
alpar@9 969 no_recursion=yes ;;
alpar@9 970
alpar@9 971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
alpar@9 972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
alpar@9 973 | --oldin | --oldi | --old | --ol | --o)
alpar@9 974 ac_prev=oldincludedir ;;
alpar@9 975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
alpar@9 976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
alpar@9 977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
alpar@9 978 oldincludedir=$ac_optarg ;;
alpar@9 979
alpar@9 980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
alpar@9 981 ac_prev=prefix ;;
alpar@9 982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
alpar@9 983 prefix=$ac_optarg ;;
alpar@9 984
alpar@9 985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
alpar@9 986 | --program-pre | --program-pr | --program-p)
alpar@9 987 ac_prev=program_prefix ;;
alpar@9 988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
alpar@9 989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
alpar@9 990 program_prefix=$ac_optarg ;;
alpar@9 991
alpar@9 992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
alpar@9 993 | --program-suf | --program-su | --program-s)
alpar@9 994 ac_prev=program_suffix ;;
alpar@9 995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
alpar@9 996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
alpar@9 997 program_suffix=$ac_optarg ;;
alpar@9 998
alpar@9 999 -program-transform-name | --program-transform-name \
alpar@9 1000 | --program-transform-nam | --program-transform-na \
alpar@9 1001 | --program-transform-n | --program-transform- \
alpar@9 1002 | --program-transform | --program-transfor \
alpar@9 1003 | --program-transfo | --program-transf \
alpar@9 1004 | --program-trans | --program-tran \
alpar@9 1005 | --progr-tra | --program-tr | --program-t)
alpar@9 1006 ac_prev=program_transform_name ;;
alpar@9 1007 -program-transform-name=* | --program-transform-name=* \
alpar@9 1008 | --program-transform-nam=* | --program-transform-na=* \
alpar@9 1009 | --program-transform-n=* | --program-transform-=* \
alpar@9 1010 | --program-transform=* | --program-transfor=* \
alpar@9 1011 | --program-transfo=* | --program-transf=* \
alpar@9 1012 | --program-trans=* | --program-tran=* \
alpar@9 1013 | --progr-tra=* | --program-tr=* | --program-t=*)
alpar@9 1014 program_transform_name=$ac_optarg ;;
alpar@9 1015
alpar@9 1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
alpar@9 1017 ac_prev=pdfdir ;;
alpar@9 1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
alpar@9 1019 pdfdir=$ac_optarg ;;
alpar@9 1020
alpar@9 1021 -psdir | --psdir | --psdi | --psd | --ps)
alpar@9 1022 ac_prev=psdir ;;
alpar@9 1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
alpar@9 1024 psdir=$ac_optarg ;;
alpar@9 1025
alpar@9 1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
alpar@9 1027 | -silent | --silent | --silen | --sile | --sil)
alpar@9 1028 silent=yes ;;
alpar@9 1029
alpar@9 1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
alpar@9 1031 ac_prev=sbindir ;;
alpar@9 1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
alpar@9 1033 | --sbi=* | --sb=*)
alpar@9 1034 sbindir=$ac_optarg ;;
alpar@9 1035
alpar@9 1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
alpar@9 1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
alpar@9 1038 | --sharedst | --shareds | --shared | --share | --shar \
alpar@9 1039 | --sha | --sh)
alpar@9 1040 ac_prev=sharedstatedir ;;
alpar@9 1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
alpar@9 1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
alpar@9 1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
alpar@9 1044 | --sha=* | --sh=*)
alpar@9 1045 sharedstatedir=$ac_optarg ;;
alpar@9 1046
alpar@9 1047 -site | --site | --sit)
alpar@9 1048 ac_prev=site ;;
alpar@9 1049 -site=* | --site=* | --sit=*)
alpar@9 1050 site=$ac_optarg ;;
alpar@9 1051
alpar@9 1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
alpar@9 1053 ac_prev=srcdir ;;
alpar@9 1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
alpar@9 1055 srcdir=$ac_optarg ;;
alpar@9 1056
alpar@9 1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
alpar@9 1058 | --syscon | --sysco | --sysc | --sys | --sy)
alpar@9 1059 ac_prev=sysconfdir ;;
alpar@9 1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
alpar@9 1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
alpar@9 1062 sysconfdir=$ac_optarg ;;
alpar@9 1063
alpar@9 1064 -target | --target | --targe | --targ | --tar | --ta | --t)
alpar@9 1065 ac_prev=target_alias ;;
alpar@9 1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
alpar@9 1067 target_alias=$ac_optarg ;;
alpar@9 1068
alpar@9 1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
alpar@9 1070 verbose=yes ;;
alpar@9 1071
alpar@9 1072 -version | --version | --versio | --versi | --vers | -V)
alpar@9 1073 ac_init_version=: ;;
alpar@9 1074
alpar@9 1075 -with-* | --with-*)
alpar@9 1076 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
alpar@9 1077 # Reject names that are not valid shell variable names.
alpar@9 1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
alpar@9 1079 as_fn_error "invalid package name: $ac_useropt"
alpar@9 1080 ac_useropt_orig=$ac_useropt
alpar@9 1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
alpar@9 1082 case $ac_user_opts in
alpar@9 1083 *"
alpar@9 1084 "with_$ac_useropt"
alpar@9 1085 "*) ;;
alpar@9 1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
alpar@9 1087 ac_unrecognized_sep=', ';;
alpar@9 1088 esac
alpar@9 1089 eval with_$ac_useropt=\$ac_optarg ;;
alpar@9 1090
alpar@9 1091 -without-* | --without-*)
alpar@9 1092 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
alpar@9 1093 # Reject names that are not valid shell variable names.
alpar@9 1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
alpar@9 1095 as_fn_error "invalid package name: $ac_useropt"
alpar@9 1096 ac_useropt_orig=$ac_useropt
alpar@9 1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
alpar@9 1098 case $ac_user_opts in
alpar@9 1099 *"
alpar@9 1100 "with_$ac_useropt"
alpar@9 1101 "*) ;;
alpar@9 1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
alpar@9 1103 ac_unrecognized_sep=', ';;
alpar@9 1104 esac
alpar@9 1105 eval with_$ac_useropt=no ;;
alpar@9 1106
alpar@9 1107 --x)
alpar@9 1108 # Obsolete; use --with-x.
alpar@9 1109 with_x=yes ;;
alpar@9 1110
alpar@9 1111 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
alpar@9 1112 | --x-incl | --x-inc | --x-in | --x-i)
alpar@9 1113 ac_prev=x_includes ;;
alpar@9 1114 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
alpar@9 1115 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
alpar@9 1116 x_includes=$ac_optarg ;;
alpar@9 1117
alpar@9 1118 -x-libraries | --x-libraries | --x-librarie | --x-librari \
alpar@9 1119 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
alpar@9 1120 ac_prev=x_libraries ;;
alpar@9 1121 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
alpar@9 1122 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
alpar@9 1123 x_libraries=$ac_optarg ;;
alpar@9 1124
alpar@9 1125 -*) as_fn_error "unrecognized option: \`$ac_option'
alpar@9 1126 Try \`$0 --help' for more information."
alpar@9 1127 ;;
alpar@9 1128
alpar@9 1129 *=*)
alpar@9 1130 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
alpar@9 1131 # Reject names that are not valid shell variable names.
alpar@9 1132 case $ac_envvar in #(
alpar@9 1133 '' | [0-9]* | *[!_$as_cr_alnum]* )
alpar@9 1134 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
alpar@9 1135 esac
alpar@9 1136 eval $ac_envvar=\$ac_optarg
alpar@9 1137 export $ac_envvar ;;
alpar@9 1138
alpar@9 1139 *)
alpar@9 1140 # FIXME: should be removed in autoconf 3.0.
alpar@9 1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
alpar@9 1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
alpar@9 1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
alpar@9 1144 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
alpar@9 1145 ;;
alpar@9 1146
alpar@9 1147 esac
alpar@9 1148 done
alpar@9 1149
alpar@9 1150 if test -n "$ac_prev"; then
alpar@9 1151 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
alpar@9 1152 as_fn_error "missing argument to $ac_option"
alpar@9 1153 fi
alpar@9 1154
alpar@9 1155 if test -n "$ac_unrecognized_opts"; then
alpar@9 1156 case $enable_option_checking in
alpar@9 1157 no) ;;
alpar@9 1158 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
alpar@9 1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
alpar@9 1160 esac
alpar@9 1161 fi
alpar@9 1162
alpar@9 1163 # Check all directory arguments for consistency.
alpar@9 1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
alpar@9 1165 datadir sysconfdir sharedstatedir localstatedir includedir \
alpar@9 1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
alpar@9 1167 libdir localedir mandir
alpar@9 1168 do
alpar@9 1169 eval ac_val=\$$ac_var
alpar@9 1170 # Remove trailing slashes.
alpar@9 1171 case $ac_val in
alpar@9 1172 */ )
alpar@9 1173 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
alpar@9 1174 eval $ac_var=\$ac_val;;
alpar@9 1175 esac
alpar@9 1176 # Be sure to have absolute directory names.
alpar@9 1177 case $ac_val in
alpar@9 1178 [\\/$]* | ?:[\\/]* ) continue;;
alpar@9 1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
alpar@9 1180 esac
alpar@9 1181 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
alpar@9 1182 done
alpar@9 1183
alpar@9 1184 # There might be people who depend on the old broken behavior: `$host'
alpar@9 1185 # used to hold the argument of --host etc.
alpar@9 1186 # FIXME: To remove some day.
alpar@9 1187 build=$build_alias
alpar@9 1188 host=$host_alias
alpar@9 1189 target=$target_alias
alpar@9 1190
alpar@9 1191 # FIXME: To remove some day.
alpar@9 1192 if test "x$host_alias" != x; then
alpar@9 1193 if test "x$build_alias" = x; then
alpar@9 1194 cross_compiling=maybe
alpar@9 1195 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
alpar@9 1196 If a cross compiler is detected then cross compile mode will be used." >&2
alpar@9 1197 elif test "x$build_alias" != "x$host_alias"; then
alpar@9 1198 cross_compiling=yes
alpar@9 1199 fi
alpar@9 1200 fi
alpar@9 1201
alpar@9 1202 ac_tool_prefix=
alpar@9 1203 test -n "$host_alias" && ac_tool_prefix=$host_alias-
alpar@9 1204
alpar@9 1205 test "$silent" = yes && exec 6>/dev/null
alpar@9 1206
alpar@9 1207
alpar@9 1208 ac_pwd=`pwd` && test -n "$ac_pwd" &&
alpar@9 1209 ac_ls_di=`ls -di .` &&
alpar@9 1210 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
alpar@9 1211 as_fn_error "working directory cannot be determined"
alpar@9 1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
alpar@9 1213 as_fn_error "pwd does not report name of working directory"
alpar@9 1214
alpar@9 1215
alpar@9 1216 # Find the source files, if location was not specified.
alpar@9 1217 if test -z "$srcdir"; then
alpar@9 1218 ac_srcdir_defaulted=yes
alpar@9 1219 # Try the directory containing this script, then the parent directory.
alpar@9 1220 ac_confdir=`$as_dirname -- "$as_myself" ||
alpar@9 1221 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
alpar@9 1222 X"$as_myself" : 'X\(//\)[^/]' \| \
alpar@9 1223 X"$as_myself" : 'X\(//\)$' \| \
alpar@9 1224 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
alpar@9 1225 $as_echo X"$as_myself" |
alpar@9 1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
alpar@9 1227 s//\1/
alpar@9 1228 q
alpar@9 1229 }
alpar@9 1230 /^X\(\/\/\)[^/].*/{
alpar@9 1231 s//\1/
alpar@9 1232 q
alpar@9 1233 }
alpar@9 1234 /^X\(\/\/\)$/{
alpar@9 1235 s//\1/
alpar@9 1236 q
alpar@9 1237 }
alpar@9 1238 /^X\(\/\).*/{
alpar@9 1239 s//\1/
alpar@9 1240 q
alpar@9 1241 }
alpar@9 1242 s/.*/./; q'`
alpar@9 1243 srcdir=$ac_confdir
alpar@9 1244 if test ! -r "$srcdir/$ac_unique_file"; then
alpar@9 1245 srcdir=..
alpar@9 1246 fi
alpar@9 1247 else
alpar@9 1248 ac_srcdir_defaulted=no
alpar@9 1249 fi
alpar@9 1250 if test ! -r "$srcdir/$ac_unique_file"; then
alpar@9 1251 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
alpar@9 1252 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
alpar@9 1253 fi
alpar@9 1254 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
alpar@9 1255 ac_abs_confdir=`(
alpar@9 1256 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
alpar@9 1257 pwd)`
alpar@9 1258 # When building in place, set srcdir=.
alpar@9 1259 if test "$ac_abs_confdir" = "$ac_pwd"; then
alpar@9 1260 srcdir=.
alpar@9 1261 fi
alpar@9 1262 # Remove unnecessary trailing slashes from srcdir.
alpar@9 1263 # Double slashes in file names in object file debugging info
alpar@9 1264 # mess up M-x gdb in Emacs.
alpar@9 1265 case $srcdir in
alpar@9 1266 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
alpar@9 1267 esac
alpar@9 1268 for ac_var in $ac_precious_vars; do
alpar@9 1269 eval ac_env_${ac_var}_set=\${${ac_var}+set}
alpar@9 1270 eval ac_env_${ac_var}_value=\$${ac_var}
alpar@9 1271 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
alpar@9 1272 eval ac_cv_env_${ac_var}_value=\$${ac_var}
alpar@9 1273 done
alpar@9 1274
alpar@9 1275 #
alpar@9 1276 # Report the --help message.
alpar@9 1277 #
alpar@9 1278 if test "$ac_init_help" = "long"; then
alpar@9 1279 # Omit some internal or obsolete options to make the list less imposing.
alpar@9 1280 # This message is too long to be a string in the A/UX 3.1 sh.
alpar@9 1281 cat <<_ACEOF
alpar@9 1282 \`configure' configures GLPK 4.47 to adapt to many kinds of systems.
alpar@9 1283
alpar@9 1284 Usage: $0 [OPTION]... [VAR=VALUE]...
alpar@9 1285
alpar@9 1286 To assign environment variables (e.g., CC, CFLAGS...), specify them as
alpar@9 1287 VAR=VALUE. See below for descriptions of some of the useful variables.
alpar@9 1288
alpar@9 1289 Defaults for the options are specified in brackets.
alpar@9 1290
alpar@9 1291 Configuration:
alpar@9 1292 -h, --help display this help and exit
alpar@9 1293 --help=short display options specific to this package
alpar@9 1294 --help=recursive display the short help of all the included packages
alpar@9 1295 -V, --version display version information and exit
alpar@9 1296 -q, --quiet, --silent do not print \`checking...' messages
alpar@9 1297 --cache-file=FILE cache test results in FILE [disabled]
alpar@9 1298 -C, --config-cache alias for \`--cache-file=config.cache'
alpar@9 1299 -n, --no-create do not create output files
alpar@9 1300 --srcdir=DIR find the sources in DIR [configure dir or \`..']
alpar@9 1301
alpar@9 1302 Installation directories:
alpar@9 1303 --prefix=PREFIX install architecture-independent files in PREFIX
alpar@9 1304 [$ac_default_prefix]
alpar@9 1305 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
alpar@9 1306 [PREFIX]
alpar@9 1307
alpar@9 1308 By default, \`make install' will install all the files in
alpar@9 1309 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
alpar@9 1310 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
alpar@9 1311 for instance \`--prefix=\$HOME'.
alpar@9 1312
alpar@9 1313 For better control, use the options below.
alpar@9 1314
alpar@9 1315 Fine tuning of the installation directories:
alpar@9 1316 --bindir=DIR user executables [EPREFIX/bin]
alpar@9 1317 --sbindir=DIR system admin executables [EPREFIX/sbin]
alpar@9 1318 --libexecdir=DIR program executables [EPREFIX/libexec]
alpar@9 1319 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
alpar@9 1320 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
alpar@9 1321 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
alpar@9 1322 --libdir=DIR object code libraries [EPREFIX/lib]
alpar@9 1323 --includedir=DIR C header files [PREFIX/include]
alpar@9 1324 --oldincludedir=DIR C header files for non-gcc [/usr/include]
alpar@9 1325 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
alpar@9 1326 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
alpar@9 1327 --infodir=DIR info documentation [DATAROOTDIR/info]
alpar@9 1328 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
alpar@9 1329 --mandir=DIR man documentation [DATAROOTDIR/man]
alpar@9 1330 --docdir=DIR documentation root [DATAROOTDIR/doc/glpk]
alpar@9 1331 --htmldir=DIR html documentation [DOCDIR]
alpar@9 1332 --dvidir=DIR dvi documentation [DOCDIR]
alpar@9 1333 --pdfdir=DIR pdf documentation [DOCDIR]
alpar@9 1334 --psdir=DIR ps documentation [DOCDIR]
alpar@9 1335 _ACEOF
alpar@9 1336
alpar@9 1337 cat <<\_ACEOF
alpar@9 1338
alpar@9 1339 Program names:
alpar@9 1340 --program-prefix=PREFIX prepend PREFIX to installed program names
alpar@9 1341 --program-suffix=SUFFIX append SUFFIX to installed program names
alpar@9 1342 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
alpar@9 1343
alpar@9 1344 System types:
alpar@9 1345 --build=BUILD configure for building on BUILD [guessed]
alpar@9 1346 --host=HOST cross-compile to build programs to run on HOST [BUILD]
alpar@9 1347 _ACEOF
alpar@9 1348 fi
alpar@9 1349
alpar@9 1350 if test -n "$ac_init_help"; then
alpar@9 1351 case $ac_init_help in
alpar@9 1352 short | recursive ) echo "Configuration of GLPK 4.47:";;
alpar@9 1353 esac
alpar@9 1354 cat <<\_ACEOF
alpar@9 1355
alpar@9 1356 Optional Features:
alpar@9 1357 --disable-option-checking ignore unrecognized --enable/--with options
alpar@9 1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
alpar@9 1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
alpar@9 1360 --enable-dl enable shared library support [[default=no]]
alpar@9 1361 --enable-odbc enable MathProg ODBC support [[default=no]]
alpar@9 1362 --enable-mysql enable MathProg MySQL support [[default=no]]
alpar@9 1363 --disable-dependency-tracking speeds up one-time build
alpar@9 1364 --enable-dependency-tracking do not reject slow dependency extractors
alpar@9 1365 --enable-shared[=PKGS] build shared libraries [default=yes]
alpar@9 1366 --enable-static[=PKGS] build static libraries [default=yes]
alpar@9 1367 --enable-fast-install[=PKGS]
alpar@9 1368 optimize for fast installation [default=yes]
alpar@9 1369 --disable-libtool-lock avoid locking (might break parallel builds)
alpar@9 1370
alpar@9 1371 Optional Packages:
alpar@9 1372 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
alpar@9 1373 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
alpar@9 1374 --with-gmp use GNU MP bignum library [[default=no]]
alpar@9 1375 --with-pic try to use only PIC/non-PIC objects [default=use
alpar@9 1376 both]
alpar@9 1377 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
alpar@9 1378
alpar@9 1379 Some influential environment variables:
alpar@9 1380 CC C compiler command
alpar@9 1381 CFLAGS C compiler flags
alpar@9 1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
alpar@9 1383 nonstandard directory <lib dir>
alpar@9 1384 LIBS libraries to pass to the linker, e.g. -l<library>
alpar@9 1385 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
alpar@9 1386 you have headers in a nonstandard directory <include dir>
alpar@9 1387 CPP C preprocessor
alpar@9 1388
alpar@9 1389 Use these variables to override the choices made by `configure' or to help
alpar@9 1390 it to find libraries and programs with nonstandard names/locations.
alpar@9 1391
alpar@9 1392 Report bugs to <bug-glpk@gnu.org>.
alpar@9 1393 _ACEOF
alpar@9 1394 ac_status=$?
alpar@9 1395 fi
alpar@9 1396
alpar@9 1397 if test "$ac_init_help" = "recursive"; then
alpar@9 1398 # If there are subdirs, report their specific --help.
alpar@9 1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
alpar@9 1400 test -d "$ac_dir" ||
alpar@9 1401 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
alpar@9 1402 continue
alpar@9 1403 ac_builddir=.
alpar@9 1404
alpar@9 1405 case "$ac_dir" in
alpar@9 1406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
alpar@9 1407 *)
alpar@9 1408 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
alpar@9 1409 # A ".." for each directory in $ac_dir_suffix.
alpar@9 1410 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
alpar@9 1411 case $ac_top_builddir_sub in
alpar@9 1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
alpar@9 1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
alpar@9 1414 esac ;;
alpar@9 1415 esac
alpar@9 1416 ac_abs_top_builddir=$ac_pwd
alpar@9 1417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
alpar@9 1418 # for backward compatibility:
alpar@9 1419 ac_top_builddir=$ac_top_build_prefix
alpar@9 1420
alpar@9 1421 case $srcdir in
alpar@9 1422 .) # We are building in place.
alpar@9 1423 ac_srcdir=.
alpar@9 1424 ac_top_srcdir=$ac_top_builddir_sub
alpar@9 1425 ac_abs_top_srcdir=$ac_pwd ;;
alpar@9 1426 [\\/]* | ?:[\\/]* ) # Absolute name.
alpar@9 1427 ac_srcdir=$srcdir$ac_dir_suffix;
alpar@9 1428 ac_top_srcdir=$srcdir
alpar@9 1429 ac_abs_top_srcdir=$srcdir ;;
alpar@9 1430 *) # Relative name.
alpar@9 1431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
alpar@9 1432 ac_top_srcdir=$ac_top_build_prefix$srcdir
alpar@9 1433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
alpar@9 1434 esac
alpar@9 1435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
alpar@9 1436
alpar@9 1437 cd "$ac_dir" || { ac_status=$?; continue; }
alpar@9 1438 # Check for guested configure.
alpar@9 1439 if test -f "$ac_srcdir/configure.gnu"; then
alpar@9 1440 echo &&
alpar@9 1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
alpar@9 1442 elif test -f "$ac_srcdir/configure"; then
alpar@9 1443 echo &&
alpar@9 1444 $SHELL "$ac_srcdir/configure" --help=recursive
alpar@9 1445 else
alpar@9 1446 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
alpar@9 1447 fi || ac_status=$?
alpar@9 1448 cd "$ac_pwd" || { ac_status=$?; break; }
alpar@9 1449 done
alpar@9 1450 fi
alpar@9 1451
alpar@9 1452 test -n "$ac_init_help" && exit $ac_status
alpar@9 1453 if $ac_init_version; then
alpar@9 1454 cat <<\_ACEOF
alpar@9 1455 GLPK configure 4.47
alpar@9 1456 generated by GNU Autoconf 2.65
alpar@9 1457
alpar@9 1458 Copyright (C) 2009 Free Software Foundation, Inc.
alpar@9 1459 This configure script is free software; the Free Software Foundation
alpar@9 1460 gives unlimited permission to copy, distribute and modify it.
alpar@9 1461 _ACEOF
alpar@9 1462 exit
alpar@9 1463 fi
alpar@9 1464
alpar@9 1465 ## ------------------------ ##
alpar@9 1466 ## Autoconf initialization. ##
alpar@9 1467 ## ------------------------ ##
alpar@9 1468
alpar@9 1469 # ac_fn_c_try_compile LINENO
alpar@9 1470 # --------------------------
alpar@9 1471 # Try to compile conftest.$ac_ext, and return whether this succeeded.
alpar@9 1472 ac_fn_c_try_compile ()
alpar@9 1473 {
alpar@9 1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
alpar@9 1475 rm -f conftest.$ac_objext
alpar@9 1476 if { { ac_try="$ac_compile"
alpar@9 1477 case "(($ac_try" in
alpar@9 1478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
alpar@9 1479 *) ac_try_echo=$ac_try;;
alpar@9 1480 esac
alpar@9 1481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
alpar@9 1482 $as_echo "$ac_try_echo"; } >&5
alpar@9 1483 (eval "$ac_compile") 2>conftest.err
alpar@9 1484 ac_status=$?
alpar@9 1485 if test -s conftest.err; then
alpar@9 1486 grep -v '^ *+' conftest.err >conftest.er1
alpar@9 1487 cat conftest.er1 >&5
alpar@9 1488 mv -f conftest.er1 conftest.err
alpar@9 1489 fi
alpar@9 1490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 1491 test $ac_status = 0; } && {
alpar@9 1492 test -z "$ac_c_werror_flag" ||
alpar@9 1493 test ! -s conftest.err
alpar@9 1494 } && test -s conftest.$ac_objext; then :
alpar@9 1495 ac_retval=0
alpar@9 1496 else
alpar@9 1497 $as_echo "$as_me: failed program was:" >&5
alpar@9 1498 sed 's/^/| /' conftest.$ac_ext >&5
alpar@9 1499
alpar@9 1500 ac_retval=1
alpar@9 1501 fi
alpar@9 1502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
alpar@9 1503 as_fn_set_status $ac_retval
alpar@9 1504
alpar@9 1505 } # ac_fn_c_try_compile
alpar@9 1506
alpar@9 1507 # ac_fn_c_try_link LINENO
alpar@9 1508 # -----------------------
alpar@9 1509 # Try to link conftest.$ac_ext, and return whether this succeeded.
alpar@9 1510 ac_fn_c_try_link ()
alpar@9 1511 {
alpar@9 1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
alpar@9 1513 rm -f conftest.$ac_objext conftest$ac_exeext
alpar@9 1514 if { { ac_try="$ac_link"
alpar@9 1515 case "(($ac_try" in
alpar@9 1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
alpar@9 1517 *) ac_try_echo=$ac_try;;
alpar@9 1518 esac
alpar@9 1519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
alpar@9 1520 $as_echo "$ac_try_echo"; } >&5
alpar@9 1521 (eval "$ac_link") 2>conftest.err
alpar@9 1522 ac_status=$?
alpar@9 1523 if test -s conftest.err; then
alpar@9 1524 grep -v '^ *+' conftest.err >conftest.er1
alpar@9 1525 cat conftest.er1 >&5
alpar@9 1526 mv -f conftest.er1 conftest.err
alpar@9 1527 fi
alpar@9 1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 1529 test $ac_status = 0; } && {
alpar@9 1530 test -z "$ac_c_werror_flag" ||
alpar@9 1531 test ! -s conftest.err
alpar@9 1532 } && test -s conftest$ac_exeext && {
alpar@9 1533 test "$cross_compiling" = yes ||
alpar@9 1534 $as_test_x conftest$ac_exeext
alpar@9 1535 }; then :
alpar@9 1536 ac_retval=0
alpar@9 1537 else
alpar@9 1538 $as_echo "$as_me: failed program was:" >&5
alpar@9 1539 sed 's/^/| /' conftest.$ac_ext >&5
alpar@9 1540
alpar@9 1541 ac_retval=1
alpar@9 1542 fi
alpar@9 1543 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
alpar@9 1544 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
alpar@9 1545 # interfere with the next link command; also delete a directory that is
alpar@9 1546 # left behind by Apple's compiler. We do this before executing the actions.
alpar@9 1547 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
alpar@9 1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
alpar@9 1549 as_fn_set_status $ac_retval
alpar@9 1550
alpar@9 1551 } # ac_fn_c_try_link
alpar@9 1552
alpar@9 1553 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
alpar@9 1554 # -------------------------------------------------------
alpar@9 1555 # Tests whether HEADER exists and can be compiled using the include files in
alpar@9 1556 # INCLUDES, setting the cache variable VAR accordingly.
alpar@9 1557 ac_fn_c_check_header_compile ()
alpar@9 1558 {
alpar@9 1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
alpar@9 1560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
alpar@9 1561 $as_echo_n "checking for $2... " >&6; }
alpar@9 1562 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
alpar@9 1563 $as_echo_n "(cached) " >&6
alpar@9 1564 else
alpar@9 1565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 1566 /* end confdefs.h. */
alpar@9 1567 $4
alpar@9 1568 #include <$2>
alpar@9 1569 _ACEOF
alpar@9 1570 if ac_fn_c_try_compile "$LINENO"; then :
alpar@9 1571 eval "$3=yes"
alpar@9 1572 else
alpar@9 1573 eval "$3=no"
alpar@9 1574 fi
alpar@9 1575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
alpar@9 1576 fi
alpar@9 1577 eval ac_res=\$$3
alpar@9 1578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
alpar@9 1579 $as_echo "$ac_res" >&6; }
alpar@9 1580 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
alpar@9 1581
alpar@9 1582 } # ac_fn_c_check_header_compile
alpar@9 1583
alpar@9 1584 # ac_fn_c_try_cpp LINENO
alpar@9 1585 # ----------------------
alpar@9 1586 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
alpar@9 1587 ac_fn_c_try_cpp ()
alpar@9 1588 {
alpar@9 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
alpar@9 1590 if { { ac_try="$ac_cpp conftest.$ac_ext"
alpar@9 1591 case "(($ac_try" in
alpar@9 1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
alpar@9 1593 *) ac_try_echo=$ac_try;;
alpar@9 1594 esac
alpar@9 1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
alpar@9 1596 $as_echo "$ac_try_echo"; } >&5
alpar@9 1597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
alpar@9 1598 ac_status=$?
alpar@9 1599 if test -s conftest.err; then
alpar@9 1600 grep -v '^ *+' conftest.err >conftest.er1
alpar@9 1601 cat conftest.er1 >&5
alpar@9 1602 mv -f conftest.er1 conftest.err
alpar@9 1603 fi
alpar@9 1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 1605 test $ac_status = 0; } >/dev/null && {
alpar@9 1606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
alpar@9 1607 test ! -s conftest.err
alpar@9 1608 }; then :
alpar@9 1609 ac_retval=0
alpar@9 1610 else
alpar@9 1611 $as_echo "$as_me: failed program was:" >&5
alpar@9 1612 sed 's/^/| /' conftest.$ac_ext >&5
alpar@9 1613
alpar@9 1614 ac_retval=1
alpar@9 1615 fi
alpar@9 1616 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
alpar@9 1617 as_fn_set_status $ac_retval
alpar@9 1618
alpar@9 1619 } # ac_fn_c_try_cpp
alpar@9 1620
alpar@9 1621 # ac_fn_c_try_run LINENO
alpar@9 1622 # ----------------------
alpar@9 1623 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
alpar@9 1624 # that executables *can* be run.
alpar@9 1625 ac_fn_c_try_run ()
alpar@9 1626 {
alpar@9 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
alpar@9 1628 if { { ac_try="$ac_link"
alpar@9 1629 case "(($ac_try" in
alpar@9 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
alpar@9 1631 *) ac_try_echo=$ac_try;;
alpar@9 1632 esac
alpar@9 1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
alpar@9 1634 $as_echo "$ac_try_echo"; } >&5
alpar@9 1635 (eval "$ac_link") 2>&5
alpar@9 1636 ac_status=$?
alpar@9 1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 1638 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
alpar@9 1639 { { case "(($ac_try" in
alpar@9 1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
alpar@9 1641 *) ac_try_echo=$ac_try;;
alpar@9 1642 esac
alpar@9 1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
alpar@9 1644 $as_echo "$ac_try_echo"; } >&5
alpar@9 1645 (eval "$ac_try") 2>&5
alpar@9 1646 ac_status=$?
alpar@9 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 1648 test $ac_status = 0; }; }; then :
alpar@9 1649 ac_retval=0
alpar@9 1650 else
alpar@9 1651 $as_echo "$as_me: program exited with status $ac_status" >&5
alpar@9 1652 $as_echo "$as_me: failed program was:" >&5
alpar@9 1653 sed 's/^/| /' conftest.$ac_ext >&5
alpar@9 1654
alpar@9 1655 ac_retval=$ac_status
alpar@9 1656 fi
alpar@9 1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
alpar@9 1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
alpar@9 1659 as_fn_set_status $ac_retval
alpar@9 1660
alpar@9 1661 } # ac_fn_c_try_run
alpar@9 1662
alpar@9 1663 # ac_fn_c_check_func LINENO FUNC VAR
alpar@9 1664 # ----------------------------------
alpar@9 1665 # Tests whether FUNC exists, setting the cache variable VAR accordingly
alpar@9 1666 ac_fn_c_check_func ()
alpar@9 1667 {
alpar@9 1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
alpar@9 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
alpar@9 1670 $as_echo_n "checking for $2... " >&6; }
alpar@9 1671 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
alpar@9 1672 $as_echo_n "(cached) " >&6
alpar@9 1673 else
alpar@9 1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 1675 /* end confdefs.h. */
alpar@9 1676 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
alpar@9 1677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
alpar@9 1678 #define $2 innocuous_$2
alpar@9 1679
alpar@9 1680 /* System header to define __stub macros and hopefully few prototypes,
alpar@9 1681 which can conflict with char $2 (); below.
alpar@9 1682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
alpar@9 1683 <limits.h> exists even on freestanding compilers. */
alpar@9 1684
alpar@9 1685 #ifdef __STDC__
alpar@9 1686 # include <limits.h>
alpar@9 1687 #else
alpar@9 1688 # include <assert.h>
alpar@9 1689 #endif
alpar@9 1690
alpar@9 1691 #undef $2
alpar@9 1692
alpar@9 1693 /* Override any GCC internal prototype to avoid an error.
alpar@9 1694 Use char because int might match the return type of a GCC
alpar@9 1695 builtin and then its argument prototype would still apply. */
alpar@9 1696 #ifdef __cplusplus
alpar@9 1697 extern "C"
alpar@9 1698 #endif
alpar@9 1699 char $2 ();
alpar@9 1700 /* The GNU C library defines this for functions which it implements
alpar@9 1701 to always fail with ENOSYS. Some functions are actually named
alpar@9 1702 something starting with __ and the normal name is an alias. */
alpar@9 1703 #if defined __stub_$2 || defined __stub___$2
alpar@9 1704 choke me
alpar@9 1705 #endif
alpar@9 1706
alpar@9 1707 int
alpar@9 1708 main ()
alpar@9 1709 {
alpar@9 1710 return $2 ();
alpar@9 1711 ;
alpar@9 1712 return 0;
alpar@9 1713 }
alpar@9 1714 _ACEOF
alpar@9 1715 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 1716 eval "$3=yes"
alpar@9 1717 else
alpar@9 1718 eval "$3=no"
alpar@9 1719 fi
alpar@9 1720 rm -f core conftest.err conftest.$ac_objext \
alpar@9 1721 conftest$ac_exeext conftest.$ac_ext
alpar@9 1722 fi
alpar@9 1723 eval ac_res=\$$3
alpar@9 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
alpar@9 1725 $as_echo "$ac_res" >&6; }
alpar@9 1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
alpar@9 1727
alpar@9 1728 } # ac_fn_c_check_func
alpar@9 1729
alpar@9 1730 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
alpar@9 1731 # -------------------------------------------------------
alpar@9 1732 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
alpar@9 1733 # the include files in INCLUDES and setting the cache variable VAR
alpar@9 1734 # accordingly.
alpar@9 1735 ac_fn_c_check_header_mongrel ()
alpar@9 1736 {
alpar@9 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
alpar@9 1738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
alpar@9 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
alpar@9 1740 $as_echo_n "checking for $2... " >&6; }
alpar@9 1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
alpar@9 1742 $as_echo_n "(cached) " >&6
alpar@9 1743 fi
alpar@9 1744 eval ac_res=\$$3
alpar@9 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
alpar@9 1746 $as_echo "$ac_res" >&6; }
alpar@9 1747 else
alpar@9 1748 # Is the header compilable?
alpar@9 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
alpar@9 1750 $as_echo_n "checking $2 usability... " >&6; }
alpar@9 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 1752 /* end confdefs.h. */
alpar@9 1753 $4
alpar@9 1754 #include <$2>
alpar@9 1755 _ACEOF
alpar@9 1756 if ac_fn_c_try_compile "$LINENO"; then :
alpar@9 1757 ac_header_compiler=yes
alpar@9 1758 else
alpar@9 1759 ac_header_compiler=no
alpar@9 1760 fi
alpar@9 1761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
alpar@9 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
alpar@9 1763 $as_echo "$ac_header_compiler" >&6; }
alpar@9 1764
alpar@9 1765 # Is the header present?
alpar@9 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
alpar@9 1767 $as_echo_n "checking $2 presence... " >&6; }
alpar@9 1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 1769 /* end confdefs.h. */
alpar@9 1770 #include <$2>
alpar@9 1771 _ACEOF
alpar@9 1772 if ac_fn_c_try_cpp "$LINENO"; then :
alpar@9 1773 ac_header_preproc=yes
alpar@9 1774 else
alpar@9 1775 ac_header_preproc=no
alpar@9 1776 fi
alpar@9 1777 rm -f conftest.err conftest.$ac_ext
alpar@9 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
alpar@9 1779 $as_echo "$ac_header_preproc" >&6; }
alpar@9 1780
alpar@9 1781 # So? What about this header?
alpar@9 1782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
alpar@9 1783 yes:no: )
alpar@9 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
alpar@9 1785 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
alpar@9 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
alpar@9 1787 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
alpar@9 1788 ;;
alpar@9 1789 no:yes:* )
alpar@9 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
alpar@9 1791 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
alpar@9 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
alpar@9 1793 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
alpar@9 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
alpar@9 1795 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
alpar@9 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
alpar@9 1797 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
alpar@9 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
alpar@9 1799 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
alpar@9 1800 ( cat <<\_ASBOX
alpar@9 1801 ## ------------------------------- ##
alpar@9 1802 ## Report this to bug-glpk@gnu.org ##
alpar@9 1803 ## ------------------------------- ##
alpar@9 1804 _ASBOX
alpar@9 1805 ) | sed "s/^/$as_me: WARNING: /" >&2
alpar@9 1806 ;;
alpar@9 1807 esac
alpar@9 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
alpar@9 1809 $as_echo_n "checking for $2... " >&6; }
alpar@9 1810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
alpar@9 1811 $as_echo_n "(cached) " >&6
alpar@9 1812 else
alpar@9 1813 eval "$3=\$ac_header_compiler"
alpar@9 1814 fi
alpar@9 1815 eval ac_res=\$$3
alpar@9 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
alpar@9 1817 $as_echo "$ac_res" >&6; }
alpar@9 1818 fi
alpar@9 1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
alpar@9 1820
alpar@9 1821 } # ac_fn_c_check_header_mongrel
alpar@9 1822 cat >config.log <<_ACEOF
alpar@9 1823 This file contains any messages produced by compilers while
alpar@9 1824 running configure, to aid debugging if configure makes a mistake.
alpar@9 1825
alpar@9 1826 It was created by GLPK $as_me 4.47, which was
alpar@9 1827 generated by GNU Autoconf 2.65. Invocation command line was
alpar@9 1828
alpar@9 1829 $ $0 $@
alpar@9 1830
alpar@9 1831 _ACEOF
alpar@9 1832 exec 5>>config.log
alpar@9 1833 {
alpar@9 1834 cat <<_ASUNAME
alpar@9 1835 ## --------- ##
alpar@9 1836 ## Platform. ##
alpar@9 1837 ## --------- ##
alpar@9 1838
alpar@9 1839 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
alpar@9 1840 uname -m = `(uname -m) 2>/dev/null || echo unknown`
alpar@9 1841 uname -r = `(uname -r) 2>/dev/null || echo unknown`
alpar@9 1842 uname -s = `(uname -s) 2>/dev/null || echo unknown`
alpar@9 1843 uname -v = `(uname -v) 2>/dev/null || echo unknown`
alpar@9 1844
alpar@9 1845 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
alpar@9 1846 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
alpar@9 1847
alpar@9 1848 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
alpar@9 1849 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
alpar@9 1850 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
alpar@9 1851 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
alpar@9 1852 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
alpar@9 1853 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
alpar@9 1854 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
alpar@9 1855
alpar@9 1856 _ASUNAME
alpar@9 1857
alpar@9 1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 1859 for as_dir in $PATH
alpar@9 1860 do
alpar@9 1861 IFS=$as_save_IFS
alpar@9 1862 test -z "$as_dir" && as_dir=.
alpar@9 1863 $as_echo "PATH: $as_dir"
alpar@9 1864 done
alpar@9 1865 IFS=$as_save_IFS
alpar@9 1866
alpar@9 1867 } >&5
alpar@9 1868
alpar@9 1869 cat >&5 <<_ACEOF
alpar@9 1870
alpar@9 1871
alpar@9 1872 ## ----------- ##
alpar@9 1873 ## Core tests. ##
alpar@9 1874 ## ----------- ##
alpar@9 1875
alpar@9 1876 _ACEOF
alpar@9 1877
alpar@9 1878
alpar@9 1879 # Keep a trace of the command line.
alpar@9 1880 # Strip out --no-create and --no-recursion so they do not pile up.
alpar@9 1881 # Strip out --silent because we don't want to record it for future runs.
alpar@9 1882 # Also quote any args containing shell meta-characters.
alpar@9 1883 # Make two passes to allow for proper duplicate-argument suppression.
alpar@9 1884 ac_configure_args=
alpar@9 1885 ac_configure_args0=
alpar@9 1886 ac_configure_args1=
alpar@9 1887 ac_must_keep_next=false
alpar@9 1888 for ac_pass in 1 2
alpar@9 1889 do
alpar@9 1890 for ac_arg
alpar@9 1891 do
alpar@9 1892 case $ac_arg in
alpar@9 1893 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
alpar@9 1894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
alpar@9 1895 | -silent | --silent | --silen | --sile | --sil)
alpar@9 1896 continue ;;
alpar@9 1897 *\'*)
alpar@9 1898 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
alpar@9 1899 esac
alpar@9 1900 case $ac_pass in
alpar@9 1901 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
alpar@9 1902 2)
alpar@9 1903 as_fn_append ac_configure_args1 " '$ac_arg'"
alpar@9 1904 if test $ac_must_keep_next = true; then
alpar@9 1905 ac_must_keep_next=false # Got value, back to normal.
alpar@9 1906 else
alpar@9 1907 case $ac_arg in
alpar@9 1908 *=* | --config-cache | -C | -disable-* | --disable-* \
alpar@9 1909 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
alpar@9 1910 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
alpar@9 1911 | -with-* | --with-* | -without-* | --without-* | --x)
alpar@9 1912 case "$ac_configure_args0 " in
alpar@9 1913 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
alpar@9 1914 esac
alpar@9 1915 ;;
alpar@9 1916 -* ) ac_must_keep_next=true ;;
alpar@9 1917 esac
alpar@9 1918 fi
alpar@9 1919 as_fn_append ac_configure_args " '$ac_arg'"
alpar@9 1920 ;;
alpar@9 1921 esac
alpar@9 1922 done
alpar@9 1923 done
alpar@9 1924 { ac_configure_args0=; unset ac_configure_args0;}
alpar@9 1925 { ac_configure_args1=; unset ac_configure_args1;}
alpar@9 1926
alpar@9 1927 # When interrupted or exit'd, cleanup temporary files, and complete
alpar@9 1928 # config.log. We remove comments because anyway the quotes in there
alpar@9 1929 # would cause problems or look ugly.
alpar@9 1930 # WARNING: Use '\'' to represent an apostrophe within the trap.
alpar@9 1931 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
alpar@9 1932 trap 'exit_status=$?
alpar@9 1933 # Save into config.log some information that might help in debugging.
alpar@9 1934 {
alpar@9 1935 echo
alpar@9 1936
alpar@9 1937 cat <<\_ASBOX
alpar@9 1938 ## ---------------- ##
alpar@9 1939 ## Cache variables. ##
alpar@9 1940 ## ---------------- ##
alpar@9 1941 _ASBOX
alpar@9 1942 echo
alpar@9 1943 # The following way of writing the cache mishandles newlines in values,
alpar@9 1944 (
alpar@9 1945 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
alpar@9 1946 eval ac_val=\$$ac_var
alpar@9 1947 case $ac_val in #(
alpar@9 1948 *${as_nl}*)
alpar@9 1949 case $ac_var in #(
alpar@9 1950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
alpar@9 1951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
alpar@9 1952 esac
alpar@9 1953 case $ac_var in #(
alpar@9 1954 _ | IFS | as_nl) ;; #(
alpar@9 1955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
alpar@9 1956 *) { eval $ac_var=; unset $ac_var;} ;;
alpar@9 1957 esac ;;
alpar@9 1958 esac
alpar@9 1959 done
alpar@9 1960 (set) 2>&1 |
alpar@9 1961 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
alpar@9 1962 *${as_nl}ac_space=\ *)
alpar@9 1963 sed -n \
alpar@9 1964 "s/'\''/'\''\\\\'\'''\''/g;
alpar@9 1965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
alpar@9 1966 ;; #(
alpar@9 1967 *)
alpar@9 1968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
alpar@9 1969 ;;
alpar@9 1970 esac |
alpar@9 1971 sort
alpar@9 1972 )
alpar@9 1973 echo
alpar@9 1974
alpar@9 1975 cat <<\_ASBOX
alpar@9 1976 ## ----------------- ##
alpar@9 1977 ## Output variables. ##
alpar@9 1978 ## ----------------- ##
alpar@9 1979 _ASBOX
alpar@9 1980 echo
alpar@9 1981 for ac_var in $ac_subst_vars
alpar@9 1982 do
alpar@9 1983 eval ac_val=\$$ac_var
alpar@9 1984 case $ac_val in
alpar@9 1985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
alpar@9 1986 esac
alpar@9 1987 $as_echo "$ac_var='\''$ac_val'\''"
alpar@9 1988 done | sort
alpar@9 1989 echo
alpar@9 1990
alpar@9 1991 if test -n "$ac_subst_files"; then
alpar@9 1992 cat <<\_ASBOX
alpar@9 1993 ## ------------------- ##
alpar@9 1994 ## File substitutions. ##
alpar@9 1995 ## ------------------- ##
alpar@9 1996 _ASBOX
alpar@9 1997 echo
alpar@9 1998 for ac_var in $ac_subst_files
alpar@9 1999 do
alpar@9 2000 eval ac_val=\$$ac_var
alpar@9 2001 case $ac_val in
alpar@9 2002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
alpar@9 2003 esac
alpar@9 2004 $as_echo "$ac_var='\''$ac_val'\''"
alpar@9 2005 done | sort
alpar@9 2006 echo
alpar@9 2007 fi
alpar@9 2008
alpar@9 2009 if test -s confdefs.h; then
alpar@9 2010 cat <<\_ASBOX
alpar@9 2011 ## ----------- ##
alpar@9 2012 ## confdefs.h. ##
alpar@9 2013 ## ----------- ##
alpar@9 2014 _ASBOX
alpar@9 2015 echo
alpar@9 2016 cat confdefs.h
alpar@9 2017 echo
alpar@9 2018 fi
alpar@9 2019 test "$ac_signal" != 0 &&
alpar@9 2020 $as_echo "$as_me: caught signal $ac_signal"
alpar@9 2021 $as_echo "$as_me: exit $exit_status"
alpar@9 2022 } >&5
alpar@9 2023 rm -f core *.core core.conftest.* &&
alpar@9 2024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
alpar@9 2025 exit $exit_status
alpar@9 2026 ' 0
alpar@9 2027 for ac_signal in 1 2 13 15; do
alpar@9 2028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
alpar@9 2029 done
alpar@9 2030 ac_signal=0
alpar@9 2031
alpar@9 2032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
alpar@9 2033 rm -f -r conftest* confdefs.h
alpar@9 2034
alpar@9 2035 $as_echo "/* confdefs.h */" > confdefs.h
alpar@9 2036
alpar@9 2037 # Predefined preprocessor variables.
alpar@9 2038
alpar@9 2039 cat >>confdefs.h <<_ACEOF
alpar@9 2040 #define PACKAGE_NAME "$PACKAGE_NAME"
alpar@9 2041 _ACEOF
alpar@9 2042
alpar@9 2043 cat >>confdefs.h <<_ACEOF
alpar@9 2044 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
alpar@9 2045 _ACEOF
alpar@9 2046
alpar@9 2047 cat >>confdefs.h <<_ACEOF
alpar@9 2048 #define PACKAGE_VERSION "$PACKAGE_VERSION"
alpar@9 2049 _ACEOF
alpar@9 2050
alpar@9 2051 cat >>confdefs.h <<_ACEOF
alpar@9 2052 #define PACKAGE_STRING "$PACKAGE_STRING"
alpar@9 2053 _ACEOF
alpar@9 2054
alpar@9 2055 cat >>confdefs.h <<_ACEOF
alpar@9 2056 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
alpar@9 2057 _ACEOF
alpar@9 2058
alpar@9 2059 cat >>confdefs.h <<_ACEOF
alpar@9 2060 #define PACKAGE_URL "$PACKAGE_URL"
alpar@9 2061 _ACEOF
alpar@9 2062
alpar@9 2063
alpar@9 2064 # Let the site file select an alternate cache file if it wants to.
alpar@9 2065 # Prefer an explicitly selected file to automatically selected ones.
alpar@9 2066 ac_site_file1=NONE
alpar@9 2067 ac_site_file2=NONE
alpar@9 2068 if test -n "$CONFIG_SITE"; then
alpar@9 2069 ac_site_file1=$CONFIG_SITE
alpar@9 2070 elif test "x$prefix" != xNONE; then
alpar@9 2071 ac_site_file1=$prefix/share/config.site
alpar@9 2072 ac_site_file2=$prefix/etc/config.site
alpar@9 2073 else
alpar@9 2074 ac_site_file1=$ac_default_prefix/share/config.site
alpar@9 2075 ac_site_file2=$ac_default_prefix/etc/config.site
alpar@9 2076 fi
alpar@9 2077 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
alpar@9 2078 do
alpar@9 2079 test "x$ac_site_file" = xNONE && continue
alpar@9 2080 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
alpar@9 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
alpar@9 2082 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
alpar@9 2083 sed 's/^/| /' "$ac_site_file" >&5
alpar@9 2084 . "$ac_site_file"
alpar@9 2085 fi
alpar@9 2086 done
alpar@9 2087
alpar@9 2088 if test -r "$cache_file"; then
alpar@9 2089 # Some versions of bash will fail to source /dev/null (special files
alpar@9 2090 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
alpar@9 2091 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
alpar@9 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
alpar@9 2093 $as_echo "$as_me: loading cache $cache_file" >&6;}
alpar@9 2094 case $cache_file in
alpar@9 2095 [\\/]* | ?:[\\/]* ) . "$cache_file";;
alpar@9 2096 *) . "./$cache_file";;
alpar@9 2097 esac
alpar@9 2098 fi
alpar@9 2099 else
alpar@9 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
alpar@9 2101 $as_echo "$as_me: creating cache $cache_file" >&6;}
alpar@9 2102 >$cache_file
alpar@9 2103 fi
alpar@9 2104
alpar@9 2105 # Check that the precious variables saved in the cache have kept the same
alpar@9 2106 # value.
alpar@9 2107 ac_cache_corrupted=false
alpar@9 2108 for ac_var in $ac_precious_vars; do
alpar@9 2109 eval ac_old_set=\$ac_cv_env_${ac_var}_set
alpar@9 2110 eval ac_new_set=\$ac_env_${ac_var}_set
alpar@9 2111 eval ac_old_val=\$ac_cv_env_${ac_var}_value
alpar@9 2112 eval ac_new_val=\$ac_env_${ac_var}_value
alpar@9 2113 case $ac_old_set,$ac_new_set in
alpar@9 2114 set,)
alpar@9 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
alpar@9 2116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
alpar@9 2117 ac_cache_corrupted=: ;;
alpar@9 2118 ,set)
alpar@9 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
alpar@9 2120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
alpar@9 2121 ac_cache_corrupted=: ;;
alpar@9 2122 ,);;
alpar@9 2123 *)
alpar@9 2124 if test "x$ac_old_val" != "x$ac_new_val"; then
alpar@9 2125 # differences in whitespace do not lead to failure.
alpar@9 2126 ac_old_val_w=`echo x $ac_old_val`
alpar@9 2127 ac_new_val_w=`echo x $ac_new_val`
alpar@9 2128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
alpar@9 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
alpar@9 2130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
alpar@9 2131 ac_cache_corrupted=:
alpar@9 2132 else
alpar@9 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
alpar@9 2134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
alpar@9 2135 eval $ac_var=\$ac_old_val
alpar@9 2136 fi
alpar@9 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
alpar@9 2138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
alpar@9 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
alpar@9 2140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
alpar@9 2141 fi;;
alpar@9 2142 esac
alpar@9 2143 # Pass precious variables to config.status.
alpar@9 2144 if test "$ac_new_set" = set; then
alpar@9 2145 case $ac_new_val in
alpar@9 2146 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
alpar@9 2147 *) ac_arg=$ac_var=$ac_new_val ;;
alpar@9 2148 esac
alpar@9 2149 case " $ac_configure_args " in
alpar@9 2150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
alpar@9 2151 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
alpar@9 2152 esac
alpar@9 2153 fi
alpar@9 2154 done
alpar@9 2155 if $ac_cache_corrupted; then
alpar@9 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
alpar@9 2157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
alpar@9 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
alpar@9 2159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
alpar@9 2160 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
alpar@9 2161 fi
alpar@9 2162 ## -------------------- ##
alpar@9 2163 ## Main body of script. ##
alpar@9 2164 ## -------------------- ##
alpar@9 2165
alpar@9 2166 ac_ext=c
alpar@9 2167 ac_cpp='$CPP $CPPFLAGS'
alpar@9 2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
alpar@9 2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
alpar@9 2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
alpar@9 2171
alpar@9 2172
alpar@9 2173
alpar@9 2174
alpar@9 2175
alpar@9 2176
alpar@9 2177
alpar@9 2178 am__api_version='1.11'
alpar@9 2179
alpar@9 2180 ac_aux_dir=
alpar@9 2181 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
alpar@9 2182 for ac_t in install-sh install.sh shtool; do
alpar@9 2183 if test -f "$ac_dir/$ac_t"; then
alpar@9 2184 ac_aux_dir=$ac_dir
alpar@9 2185 ac_install_sh="$ac_aux_dir/$ac_t -c"
alpar@9 2186 break 2
alpar@9 2187 fi
alpar@9 2188 done
alpar@9 2189 done
alpar@9 2190 if test -z "$ac_aux_dir"; then
alpar@9 2191 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
alpar@9 2192 fi
alpar@9 2193
alpar@9 2194 # These three variables are undocumented and unsupported,
alpar@9 2195 # and are intended to be withdrawn in a future Autoconf release.
alpar@9 2196 # They can cause serious problems if a builder's source tree is in a directory
alpar@9 2197 # whose full name contains unusual characters.
alpar@9 2198 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
alpar@9 2199 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
alpar@9 2200 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
alpar@9 2201
alpar@9 2202
alpar@9 2203 # Find a good install program. We prefer a C program (faster),
alpar@9 2204 # so one script is as good as another. But avoid the broken or
alpar@9 2205 # incompatible versions:
alpar@9 2206 # SysV /etc/install, /usr/sbin/install
alpar@9 2207 # SunOS /usr/etc/install
alpar@9 2208 # IRIX /sbin/install
alpar@9 2209 # AIX /bin/install
alpar@9 2210 # AmigaOS /C/install, which installs bootblocks on floppy discs
alpar@9 2211 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
alpar@9 2212 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
alpar@9 2213 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
alpar@9 2214 # OS/2's system install, which has a completely different semantic
alpar@9 2215 # ./install, which can be erroneously created by make from ./install.sh.
alpar@9 2216 # Reject install programs that cannot install multiple files.
alpar@9 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
alpar@9 2218 $as_echo_n "checking for a BSD-compatible install... " >&6; }
alpar@9 2219 if test -z "$INSTALL"; then
alpar@9 2220 if test "${ac_cv_path_install+set}" = set; then :
alpar@9 2221 $as_echo_n "(cached) " >&6
alpar@9 2222 else
alpar@9 2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 2224 for as_dir in $PATH
alpar@9 2225 do
alpar@9 2226 IFS=$as_save_IFS
alpar@9 2227 test -z "$as_dir" && as_dir=.
alpar@9 2228 # Account for people who put trailing slashes in PATH elements.
alpar@9 2229 case $as_dir/ in #((
alpar@9 2230 ./ | .// | /[cC]/* | \
alpar@9 2231 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
alpar@9 2232 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
alpar@9 2233 /usr/ucb/* ) ;;
alpar@9 2234 *)
alpar@9 2235 # OSF1 and SCO ODT 3.0 have their own names for install.
alpar@9 2236 # Don't use installbsd from OSF since it installs stuff as root
alpar@9 2237 # by default.
alpar@9 2238 for ac_prog in ginstall scoinst install; do
alpar@9 2239 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 2240 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
alpar@9 2241 if test $ac_prog = install &&
alpar@9 2242 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
alpar@9 2243 # AIX install. It has an incompatible calling convention.
alpar@9 2244 :
alpar@9 2245 elif test $ac_prog = install &&
alpar@9 2246 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
alpar@9 2247 # program-specific install script used by HP pwplus--don't use.
alpar@9 2248 :
alpar@9 2249 else
alpar@9 2250 rm -rf conftest.one conftest.two conftest.dir
alpar@9 2251 echo one > conftest.one
alpar@9 2252 echo two > conftest.two
alpar@9 2253 mkdir conftest.dir
alpar@9 2254 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
alpar@9 2255 test -s conftest.one && test -s conftest.two &&
alpar@9 2256 test -s conftest.dir/conftest.one &&
alpar@9 2257 test -s conftest.dir/conftest.two
alpar@9 2258 then
alpar@9 2259 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
alpar@9 2260 break 3
alpar@9 2261 fi
alpar@9 2262 fi
alpar@9 2263 fi
alpar@9 2264 done
alpar@9 2265 done
alpar@9 2266 ;;
alpar@9 2267 esac
alpar@9 2268
alpar@9 2269 done
alpar@9 2270 IFS=$as_save_IFS
alpar@9 2271
alpar@9 2272 rm -rf conftest.one conftest.two conftest.dir
alpar@9 2273
alpar@9 2274 fi
alpar@9 2275 if test "${ac_cv_path_install+set}" = set; then
alpar@9 2276 INSTALL=$ac_cv_path_install
alpar@9 2277 else
alpar@9 2278 # As a last resort, use the slow shell script. Don't cache a
alpar@9 2279 # value for INSTALL within a source directory, because that will
alpar@9 2280 # break other packages using the cache if that directory is
alpar@9 2281 # removed, or if the value is a relative name.
alpar@9 2282 INSTALL=$ac_install_sh
alpar@9 2283 fi
alpar@9 2284 fi
alpar@9 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
alpar@9 2286 $as_echo "$INSTALL" >&6; }
alpar@9 2287
alpar@9 2288 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
alpar@9 2289 # It thinks the first close brace ends the variable substitution.
alpar@9 2290 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
alpar@9 2291
alpar@9 2292 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
alpar@9 2293
alpar@9 2294 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
alpar@9 2295
alpar@9 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
alpar@9 2297 $as_echo_n "checking whether build environment is sane... " >&6; }
alpar@9 2298 # Just in case
alpar@9 2299 sleep 1
alpar@9 2300 echo timestamp > conftest.file
alpar@9 2301 # Reject unsafe characters in $srcdir or the absolute working directory
alpar@9 2302 # name. Accept space and tab only in the latter.
alpar@9 2303 am_lf='
alpar@9 2304 '
alpar@9 2305 case `pwd` in
alpar@9 2306 *[\\\"\#\$\&\'\`$am_lf]*)
alpar@9 2307 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
alpar@9 2308 esac
alpar@9 2309 case $srcdir in
alpar@9 2310 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
alpar@9 2311 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
alpar@9 2312 esac
alpar@9 2313
alpar@9 2314 # Do `set' in a subshell so we don't clobber the current shell's
alpar@9 2315 # arguments. Must try -L first in case configure is actually a
alpar@9 2316 # symlink; some systems play weird games with the mod time of symlinks
alpar@9 2317 # (eg FreeBSD returns the mod time of the symlink's containing
alpar@9 2318 # directory).
alpar@9 2319 if (
alpar@9 2320 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
alpar@9 2321 if test "$*" = "X"; then
alpar@9 2322 # -L didn't work.
alpar@9 2323 set X `ls -t "$srcdir/configure" conftest.file`
alpar@9 2324 fi
alpar@9 2325 rm -f conftest.file
alpar@9 2326 if test "$*" != "X $srcdir/configure conftest.file" \
alpar@9 2327 && test "$*" != "X conftest.file $srcdir/configure"; then
alpar@9 2328
alpar@9 2329 # If neither matched, then we have a broken ls. This can happen
alpar@9 2330 # if, for instance, CONFIG_SHELL is bash and it inherits a
alpar@9 2331 # broken ls alias from the environment. This has actually
alpar@9 2332 # happened. Such a system could not be considered "sane".
alpar@9 2333 as_fn_error "ls -t appears to fail. Make sure there is not a broken
alpar@9 2334 alias in your environment" "$LINENO" 5
alpar@9 2335 fi
alpar@9 2336
alpar@9 2337 test "$2" = conftest.file
alpar@9 2338 )
alpar@9 2339 then
alpar@9 2340 # Ok.
alpar@9 2341 :
alpar@9 2342 else
alpar@9 2343 as_fn_error "newly created file is older than distributed files!
alpar@9 2344 Check your system clock" "$LINENO" 5
alpar@9 2345 fi
alpar@9 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
alpar@9 2347 $as_echo "yes" >&6; }
alpar@9 2348 test "$program_prefix" != NONE &&
alpar@9 2349 program_transform_name="s&^&$program_prefix&;$program_transform_name"
alpar@9 2350 # Use a double $ so make ignores it.
alpar@9 2351 test "$program_suffix" != NONE &&
alpar@9 2352 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
alpar@9 2353 # Double any \ or $.
alpar@9 2354 # By default was `s,x,x', remove it if useless.
alpar@9 2355 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
alpar@9 2356 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
alpar@9 2357
alpar@9 2358 # expand $ac_aux_dir to an absolute path
alpar@9 2359 am_aux_dir=`cd $ac_aux_dir && pwd`
alpar@9 2360
alpar@9 2361 if test x"${MISSING+set}" != xset; then
alpar@9 2362 case $am_aux_dir in
alpar@9 2363 *\ * | *\ *)
alpar@9 2364 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
alpar@9 2365 *)
alpar@9 2366 MISSING="\${SHELL} $am_aux_dir/missing" ;;
alpar@9 2367 esac
alpar@9 2368 fi
alpar@9 2369 # Use eval to expand $SHELL
alpar@9 2370 if eval "$MISSING --run true"; then
alpar@9 2371 am_missing_run="$MISSING --run "
alpar@9 2372 else
alpar@9 2373 am_missing_run=
alpar@9 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
alpar@9 2375 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
alpar@9 2376 fi
alpar@9 2377
alpar@9 2378 if test x"${install_sh}" != xset; then
alpar@9 2379 case $am_aux_dir in
alpar@9 2380 *\ * | *\ *)
alpar@9 2381 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
alpar@9 2382 *)
alpar@9 2383 install_sh="\${SHELL} $am_aux_dir/install-sh"
alpar@9 2384 esac
alpar@9 2385 fi
alpar@9 2386
alpar@9 2387 # Installed binaries are usually stripped using `strip' when the user
alpar@9 2388 # run `make install-strip'. However `strip' might not be the right
alpar@9 2389 # tool to use in cross-compilation environments, therefore Automake
alpar@9 2390 # will honor the `STRIP' environment variable to overrule this program.
alpar@9 2391 if test "$cross_compiling" != no; then
alpar@9 2392 if test -n "$ac_tool_prefix"; then
alpar@9 2393 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
alpar@9 2394 set dummy ${ac_tool_prefix}strip; ac_word=$2
alpar@9 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 2396 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 2397 if test "${ac_cv_prog_STRIP+set}" = set; then :
alpar@9 2398 $as_echo_n "(cached) " >&6
alpar@9 2399 else
alpar@9 2400 if test -n "$STRIP"; then
alpar@9 2401 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
alpar@9 2402 else
alpar@9 2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 2404 for as_dir in $PATH
alpar@9 2405 do
alpar@9 2406 IFS=$as_save_IFS
alpar@9 2407 test -z "$as_dir" && as_dir=.
alpar@9 2408 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 2410 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
alpar@9 2411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 2412 break 2
alpar@9 2413 fi
alpar@9 2414 done
alpar@9 2415 done
alpar@9 2416 IFS=$as_save_IFS
alpar@9 2417
alpar@9 2418 fi
alpar@9 2419 fi
alpar@9 2420 STRIP=$ac_cv_prog_STRIP
alpar@9 2421 if test -n "$STRIP"; then
alpar@9 2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
alpar@9 2423 $as_echo "$STRIP" >&6; }
alpar@9 2424 else
alpar@9 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 2426 $as_echo "no" >&6; }
alpar@9 2427 fi
alpar@9 2428
alpar@9 2429
alpar@9 2430 fi
alpar@9 2431 if test -z "$ac_cv_prog_STRIP"; then
alpar@9 2432 ac_ct_STRIP=$STRIP
alpar@9 2433 # Extract the first word of "strip", so it can be a program name with args.
alpar@9 2434 set dummy strip; ac_word=$2
alpar@9 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 2436 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 2437 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
alpar@9 2438 $as_echo_n "(cached) " >&6
alpar@9 2439 else
alpar@9 2440 if test -n "$ac_ct_STRIP"; then
alpar@9 2441 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
alpar@9 2442 else
alpar@9 2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 2444 for as_dir in $PATH
alpar@9 2445 do
alpar@9 2446 IFS=$as_save_IFS
alpar@9 2447 test -z "$as_dir" && as_dir=.
alpar@9 2448 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 2450 ac_cv_prog_ac_ct_STRIP="strip"
alpar@9 2451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 2452 break 2
alpar@9 2453 fi
alpar@9 2454 done
alpar@9 2455 done
alpar@9 2456 IFS=$as_save_IFS
alpar@9 2457
alpar@9 2458 fi
alpar@9 2459 fi
alpar@9 2460 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
alpar@9 2461 if test -n "$ac_ct_STRIP"; then
alpar@9 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
alpar@9 2463 $as_echo "$ac_ct_STRIP" >&6; }
alpar@9 2464 else
alpar@9 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 2466 $as_echo "no" >&6; }
alpar@9 2467 fi
alpar@9 2468
alpar@9 2469 if test "x$ac_ct_STRIP" = x; then
alpar@9 2470 STRIP=":"
alpar@9 2471 else
alpar@9 2472 case $cross_compiling:$ac_tool_warned in
alpar@9 2473 yes:)
alpar@9 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 2475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 2476 ac_tool_warned=yes ;;
alpar@9 2477 esac
alpar@9 2478 STRIP=$ac_ct_STRIP
alpar@9 2479 fi
alpar@9 2480 else
alpar@9 2481 STRIP="$ac_cv_prog_STRIP"
alpar@9 2482 fi
alpar@9 2483
alpar@9 2484 fi
alpar@9 2485 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
alpar@9 2486
alpar@9 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
alpar@9 2488 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
alpar@9 2489 if test -z "$MKDIR_P"; then
alpar@9 2490 if test "${ac_cv_path_mkdir+set}" = set; then :
alpar@9 2491 $as_echo_n "(cached) " >&6
alpar@9 2492 else
alpar@9 2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 2494 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
alpar@9 2495 do
alpar@9 2496 IFS=$as_save_IFS
alpar@9 2497 test -z "$as_dir" && as_dir=.
alpar@9 2498 for ac_prog in mkdir gmkdir; do
alpar@9 2499 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 2500 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
alpar@9 2501 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
alpar@9 2502 'mkdir (GNU coreutils) '* | \
alpar@9 2503 'mkdir (coreutils) '* | \
alpar@9 2504 'mkdir (fileutils) '4.1*)
alpar@9 2505 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
alpar@9 2506 break 3;;
alpar@9 2507 esac
alpar@9 2508 done
alpar@9 2509 done
alpar@9 2510 done
alpar@9 2511 IFS=$as_save_IFS
alpar@9 2512
alpar@9 2513 fi
alpar@9 2514
alpar@9 2515 test -d ./--version && rmdir ./--version
alpar@9 2516 if test "${ac_cv_path_mkdir+set}" = set; then
alpar@9 2517 MKDIR_P="$ac_cv_path_mkdir -p"
alpar@9 2518 else
alpar@9 2519 # As a last resort, use the slow shell script. Don't cache a
alpar@9 2520 # value for MKDIR_P within a source directory, because that will
alpar@9 2521 # break other packages using the cache if that directory is
alpar@9 2522 # removed, or if the value is a relative name.
alpar@9 2523 MKDIR_P="$ac_install_sh -d"
alpar@9 2524 fi
alpar@9 2525 fi
alpar@9 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
alpar@9 2527 $as_echo "$MKDIR_P" >&6; }
alpar@9 2528
alpar@9 2529 mkdir_p="$MKDIR_P"
alpar@9 2530 case $mkdir_p in
alpar@9 2531 [\\/$]* | ?:[\\/]*) ;;
alpar@9 2532 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
alpar@9 2533 esac
alpar@9 2534
alpar@9 2535 for ac_prog in gawk mawk nawk awk
alpar@9 2536 do
alpar@9 2537 # Extract the first word of "$ac_prog", so it can be a program name with args.
alpar@9 2538 set dummy $ac_prog; ac_word=$2
alpar@9 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 2540 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 2541 if test "${ac_cv_prog_AWK+set}" = set; then :
alpar@9 2542 $as_echo_n "(cached) " >&6
alpar@9 2543 else
alpar@9 2544 if test -n "$AWK"; then
alpar@9 2545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
alpar@9 2546 else
alpar@9 2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 2548 for as_dir in $PATH
alpar@9 2549 do
alpar@9 2550 IFS=$as_save_IFS
alpar@9 2551 test -z "$as_dir" && as_dir=.
alpar@9 2552 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 2554 ac_cv_prog_AWK="$ac_prog"
alpar@9 2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 2556 break 2
alpar@9 2557 fi
alpar@9 2558 done
alpar@9 2559 done
alpar@9 2560 IFS=$as_save_IFS
alpar@9 2561
alpar@9 2562 fi
alpar@9 2563 fi
alpar@9 2564 AWK=$ac_cv_prog_AWK
alpar@9 2565 if test -n "$AWK"; then
alpar@9 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
alpar@9 2567 $as_echo "$AWK" >&6; }
alpar@9 2568 else
alpar@9 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 2570 $as_echo "no" >&6; }
alpar@9 2571 fi
alpar@9 2572
alpar@9 2573
alpar@9 2574 test -n "$AWK" && break
alpar@9 2575 done
alpar@9 2576
alpar@9 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
alpar@9 2578 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
alpar@9 2579 set x ${MAKE-make}
alpar@9 2580 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
alpar@9 2581 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
alpar@9 2582 $as_echo_n "(cached) " >&6
alpar@9 2583 else
alpar@9 2584 cat >conftest.make <<\_ACEOF
alpar@9 2585 SHELL = /bin/sh
alpar@9 2586 all:
alpar@9 2587 @echo '@@@%%%=$(MAKE)=@@@%%%'
alpar@9 2588 _ACEOF
alpar@9 2589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
alpar@9 2590 case `${MAKE-make} -f conftest.make 2>/dev/null` in
alpar@9 2591 *@@@%%%=?*=@@@%%%*)
alpar@9 2592 eval ac_cv_prog_make_${ac_make}_set=yes;;
alpar@9 2593 *)
alpar@9 2594 eval ac_cv_prog_make_${ac_make}_set=no;;
alpar@9 2595 esac
alpar@9 2596 rm -f conftest.make
alpar@9 2597 fi
alpar@9 2598 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
alpar@9 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
alpar@9 2600 $as_echo "yes" >&6; }
alpar@9 2601 SET_MAKE=
alpar@9 2602 else
alpar@9 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 2604 $as_echo "no" >&6; }
alpar@9 2605 SET_MAKE="MAKE=${MAKE-make}"
alpar@9 2606 fi
alpar@9 2607
alpar@9 2608 rm -rf .tst 2>/dev/null
alpar@9 2609 mkdir .tst 2>/dev/null
alpar@9 2610 if test -d .tst; then
alpar@9 2611 am__leading_dot=.
alpar@9 2612 else
alpar@9 2613 am__leading_dot=_
alpar@9 2614 fi
alpar@9 2615 rmdir .tst 2>/dev/null
alpar@9 2616
alpar@9 2617 if test "`cd $srcdir && pwd`" != "`pwd`"; then
alpar@9 2618 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
alpar@9 2619 # is not polluted with repeated "-I."
alpar@9 2620 am__isrc=' -I$(srcdir)'
alpar@9 2621 # test to see if srcdir already configured
alpar@9 2622 if test -f $srcdir/config.status; then
alpar@9 2623 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
alpar@9 2624 fi
alpar@9 2625 fi
alpar@9 2626
alpar@9 2627 # test whether we have cygpath
alpar@9 2628 if test -z "$CYGPATH_W"; then
alpar@9 2629 if (cygpath --version) >/dev/null 2>/dev/null; then
alpar@9 2630 CYGPATH_W='cygpath -w'
alpar@9 2631 else
alpar@9 2632 CYGPATH_W=echo
alpar@9 2633 fi
alpar@9 2634 fi
alpar@9 2635
alpar@9 2636
alpar@9 2637 # Define the identity of the package.
alpar@9 2638 PACKAGE='glpk'
alpar@9 2639 VERSION='4.47'
alpar@9 2640
alpar@9 2641
alpar@9 2642 cat >>confdefs.h <<_ACEOF
alpar@9 2643 #define PACKAGE "$PACKAGE"
alpar@9 2644 _ACEOF
alpar@9 2645
alpar@9 2646
alpar@9 2647 cat >>confdefs.h <<_ACEOF
alpar@9 2648 #define VERSION "$VERSION"
alpar@9 2649 _ACEOF
alpar@9 2650
alpar@9 2651 # Some tools Automake needs.
alpar@9 2652
alpar@9 2653 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
alpar@9 2654
alpar@9 2655
alpar@9 2656 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
alpar@9 2657
alpar@9 2658
alpar@9 2659 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
alpar@9 2660
alpar@9 2661
alpar@9 2662 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
alpar@9 2663
alpar@9 2664
alpar@9 2665 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
alpar@9 2666
alpar@9 2667 # We need awk for the "check" target. The system "awk" is bad on
alpar@9 2668 # some platforms.
alpar@9 2669 # Always define AMTAR for backward compatibility.
alpar@9 2670
alpar@9 2671 AMTAR=${AMTAR-"${am_missing_run}tar"}
alpar@9 2672
alpar@9 2673 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
alpar@9 2674
alpar@9 2675
alpar@9 2676
alpar@9 2677
alpar@9 2678
alpar@9 2679
alpar@9 2680 ac_config_headers="$ac_config_headers config.h"
alpar@9 2681
alpar@9 2682
alpar@9 2683
alpar@9 2684 # Check whether --with-gmp was given.
alpar@9 2685 if test "${with_gmp+set}" = set; then :
alpar@9 2686 withval=$with_gmp; case $withval in
alpar@9 2687 yes | no) ;;
alpar@9 2688 *) as_fn_error "invalid value \`$withval' for --with-gmp" "$LINENO" 5;;
alpar@9 2689 esac
alpar@9 2690 else
alpar@9 2691 with_gmp=no
alpar@9 2692 fi
alpar@9 2693
alpar@9 2694
alpar@9 2695 # Check whether --enable-dl was given.
alpar@9 2696 if test "${enable_dl+set}" = set; then :
alpar@9 2697 enableval=$enable_dl; case $enableval in
alpar@9 2698 yes | ltdl | dlfcn | no) ;;
alpar@9 2699 *) as_fn_error "invalid value \`$enableval' for --enable-dl" "$LINENO" 5;;
alpar@9 2700 esac
alpar@9 2701 else
alpar@9 2702 enable_dl=no
alpar@9 2703 fi
alpar@9 2704
alpar@9 2705
alpar@9 2706 # Check whether --enable-odbc was given.
alpar@9 2707 if test "${enable_odbc+set}" = set; then :
alpar@9 2708 enableval=$enable_odbc; case $enableval in
alpar@9 2709 yes | unix | no) ;;
alpar@9 2710 *) as_fn_error "invalid value \`$enableval' for --enable-odbc" "$LINENO" 5;;
alpar@9 2711 esac
alpar@9 2712 else
alpar@9 2713 enable_odbc=no
alpar@9 2714 fi
alpar@9 2715
alpar@9 2716
alpar@9 2717 # Check whether --enable-mysql was given.
alpar@9 2718 if test "${enable_mysql+set}" = set; then :
alpar@9 2719 enableval=$enable_mysql; case $enableval in
alpar@9 2720 yes | no) ;;
alpar@9 2721 *) as_fn_error "invalid value \`$enableval' for --enable-mysql" "$LINENO" 5;;
alpar@9 2722 esac
alpar@9 2723 else
alpar@9 2724 enable_mysql=no
alpar@9 2725 fi
alpar@9 2726
alpar@9 2727
alpar@9 2728
alpar@9 2729
alpar@9 2730
alpar@9 2731
alpar@9 2732 ac_ext=c
alpar@9 2733 ac_cpp='$CPP $CPPFLAGS'
alpar@9 2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
alpar@9 2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
alpar@9 2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
alpar@9 2737 if test -n "$ac_tool_prefix"; then
alpar@9 2738 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
alpar@9 2739 set dummy ${ac_tool_prefix}gcc; ac_word=$2
alpar@9 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 2741 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 2742 if test "${ac_cv_prog_CC+set}" = set; then :
alpar@9 2743 $as_echo_n "(cached) " >&6
alpar@9 2744 else
alpar@9 2745 if test -n "$CC"; then
alpar@9 2746 ac_cv_prog_CC="$CC" # Let the user override the test.
alpar@9 2747 else
alpar@9 2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 2749 for as_dir in $PATH
alpar@9 2750 do
alpar@9 2751 IFS=$as_save_IFS
alpar@9 2752 test -z "$as_dir" && as_dir=.
alpar@9 2753 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 2755 ac_cv_prog_CC="${ac_tool_prefix}gcc"
alpar@9 2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 2757 break 2
alpar@9 2758 fi
alpar@9 2759 done
alpar@9 2760 done
alpar@9 2761 IFS=$as_save_IFS
alpar@9 2762
alpar@9 2763 fi
alpar@9 2764 fi
alpar@9 2765 CC=$ac_cv_prog_CC
alpar@9 2766 if test -n "$CC"; then
alpar@9 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
alpar@9 2768 $as_echo "$CC" >&6; }
alpar@9 2769 else
alpar@9 2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 2771 $as_echo "no" >&6; }
alpar@9 2772 fi
alpar@9 2773
alpar@9 2774
alpar@9 2775 fi
alpar@9 2776 if test -z "$ac_cv_prog_CC"; then
alpar@9 2777 ac_ct_CC=$CC
alpar@9 2778 # Extract the first word of "gcc", so it can be a program name with args.
alpar@9 2779 set dummy gcc; ac_word=$2
alpar@9 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 2781 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 2782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
alpar@9 2783 $as_echo_n "(cached) " >&6
alpar@9 2784 else
alpar@9 2785 if test -n "$ac_ct_CC"; then
alpar@9 2786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
alpar@9 2787 else
alpar@9 2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 2789 for as_dir in $PATH
alpar@9 2790 do
alpar@9 2791 IFS=$as_save_IFS
alpar@9 2792 test -z "$as_dir" && as_dir=.
alpar@9 2793 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 2795 ac_cv_prog_ac_ct_CC="gcc"
alpar@9 2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 2797 break 2
alpar@9 2798 fi
alpar@9 2799 done
alpar@9 2800 done
alpar@9 2801 IFS=$as_save_IFS
alpar@9 2802
alpar@9 2803 fi
alpar@9 2804 fi
alpar@9 2805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
alpar@9 2806 if test -n "$ac_ct_CC"; then
alpar@9 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
alpar@9 2808 $as_echo "$ac_ct_CC" >&6; }
alpar@9 2809 else
alpar@9 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 2811 $as_echo "no" >&6; }
alpar@9 2812 fi
alpar@9 2813
alpar@9 2814 if test "x$ac_ct_CC" = x; then
alpar@9 2815 CC=""
alpar@9 2816 else
alpar@9 2817 case $cross_compiling:$ac_tool_warned in
alpar@9 2818 yes:)
alpar@9 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 2820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 2821 ac_tool_warned=yes ;;
alpar@9 2822 esac
alpar@9 2823 CC=$ac_ct_CC
alpar@9 2824 fi
alpar@9 2825 else
alpar@9 2826 CC="$ac_cv_prog_CC"
alpar@9 2827 fi
alpar@9 2828
alpar@9 2829 if test -z "$CC"; then
alpar@9 2830 if test -n "$ac_tool_prefix"; then
alpar@9 2831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
alpar@9 2832 set dummy ${ac_tool_prefix}cc; ac_word=$2
alpar@9 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 2834 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 2835 if test "${ac_cv_prog_CC+set}" = set; then :
alpar@9 2836 $as_echo_n "(cached) " >&6
alpar@9 2837 else
alpar@9 2838 if test -n "$CC"; then
alpar@9 2839 ac_cv_prog_CC="$CC" # Let the user override the test.
alpar@9 2840 else
alpar@9 2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 2842 for as_dir in $PATH
alpar@9 2843 do
alpar@9 2844 IFS=$as_save_IFS
alpar@9 2845 test -z "$as_dir" && as_dir=.
alpar@9 2846 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 2848 ac_cv_prog_CC="${ac_tool_prefix}cc"
alpar@9 2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 2850 break 2
alpar@9 2851 fi
alpar@9 2852 done
alpar@9 2853 done
alpar@9 2854 IFS=$as_save_IFS
alpar@9 2855
alpar@9 2856 fi
alpar@9 2857 fi
alpar@9 2858 CC=$ac_cv_prog_CC
alpar@9 2859 if test -n "$CC"; then
alpar@9 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
alpar@9 2861 $as_echo "$CC" >&6; }
alpar@9 2862 else
alpar@9 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 2864 $as_echo "no" >&6; }
alpar@9 2865 fi
alpar@9 2866
alpar@9 2867
alpar@9 2868 fi
alpar@9 2869 fi
alpar@9 2870 if test -z "$CC"; then
alpar@9 2871 # Extract the first word of "cc", so it can be a program name with args.
alpar@9 2872 set dummy cc; ac_word=$2
alpar@9 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 2874 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 2875 if test "${ac_cv_prog_CC+set}" = set; then :
alpar@9 2876 $as_echo_n "(cached) " >&6
alpar@9 2877 else
alpar@9 2878 if test -n "$CC"; then
alpar@9 2879 ac_cv_prog_CC="$CC" # Let the user override the test.
alpar@9 2880 else
alpar@9 2881 ac_prog_rejected=no
alpar@9 2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 2883 for as_dir in $PATH
alpar@9 2884 do
alpar@9 2885 IFS=$as_save_IFS
alpar@9 2886 test -z "$as_dir" && as_dir=.
alpar@9 2887 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 2889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
alpar@9 2890 ac_prog_rejected=yes
alpar@9 2891 continue
alpar@9 2892 fi
alpar@9 2893 ac_cv_prog_CC="cc"
alpar@9 2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 2895 break 2
alpar@9 2896 fi
alpar@9 2897 done
alpar@9 2898 done
alpar@9 2899 IFS=$as_save_IFS
alpar@9 2900
alpar@9 2901 if test $ac_prog_rejected = yes; then
alpar@9 2902 # We found a bogon in the path, so make sure we never use it.
alpar@9 2903 set dummy $ac_cv_prog_CC
alpar@9 2904 shift
alpar@9 2905 if test $# != 0; then
alpar@9 2906 # We chose a different compiler from the bogus one.
alpar@9 2907 # However, it has the same basename, so the bogon will be chosen
alpar@9 2908 # first if we set CC to just the basename; use the full file name.
alpar@9 2909 shift
alpar@9 2910 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
alpar@9 2911 fi
alpar@9 2912 fi
alpar@9 2913 fi
alpar@9 2914 fi
alpar@9 2915 CC=$ac_cv_prog_CC
alpar@9 2916 if test -n "$CC"; then
alpar@9 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
alpar@9 2918 $as_echo "$CC" >&6; }
alpar@9 2919 else
alpar@9 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 2921 $as_echo "no" >&6; }
alpar@9 2922 fi
alpar@9 2923
alpar@9 2924
alpar@9 2925 fi
alpar@9 2926 if test -z "$CC"; then
alpar@9 2927 if test -n "$ac_tool_prefix"; then
alpar@9 2928 for ac_prog in cl.exe
alpar@9 2929 do
alpar@9 2930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
alpar@9 2931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
alpar@9 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 2933 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 2934 if test "${ac_cv_prog_CC+set}" = set; then :
alpar@9 2935 $as_echo_n "(cached) " >&6
alpar@9 2936 else
alpar@9 2937 if test -n "$CC"; then
alpar@9 2938 ac_cv_prog_CC="$CC" # Let the user override the test.
alpar@9 2939 else
alpar@9 2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 2941 for as_dir in $PATH
alpar@9 2942 do
alpar@9 2943 IFS=$as_save_IFS
alpar@9 2944 test -z "$as_dir" && as_dir=.
alpar@9 2945 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 2947 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
alpar@9 2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 2949 break 2
alpar@9 2950 fi
alpar@9 2951 done
alpar@9 2952 done
alpar@9 2953 IFS=$as_save_IFS
alpar@9 2954
alpar@9 2955 fi
alpar@9 2956 fi
alpar@9 2957 CC=$ac_cv_prog_CC
alpar@9 2958 if test -n "$CC"; then
alpar@9 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
alpar@9 2960 $as_echo "$CC" >&6; }
alpar@9 2961 else
alpar@9 2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 2963 $as_echo "no" >&6; }
alpar@9 2964 fi
alpar@9 2965
alpar@9 2966
alpar@9 2967 test -n "$CC" && break
alpar@9 2968 done
alpar@9 2969 fi
alpar@9 2970 if test -z "$CC"; then
alpar@9 2971 ac_ct_CC=$CC
alpar@9 2972 for ac_prog in cl.exe
alpar@9 2973 do
alpar@9 2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
alpar@9 2975 set dummy $ac_prog; ac_word=$2
alpar@9 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 2977 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 2978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
alpar@9 2979 $as_echo_n "(cached) " >&6
alpar@9 2980 else
alpar@9 2981 if test -n "$ac_ct_CC"; then
alpar@9 2982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
alpar@9 2983 else
alpar@9 2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 2985 for as_dir in $PATH
alpar@9 2986 do
alpar@9 2987 IFS=$as_save_IFS
alpar@9 2988 test -z "$as_dir" && as_dir=.
alpar@9 2989 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 2991 ac_cv_prog_ac_ct_CC="$ac_prog"
alpar@9 2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 2993 break 2
alpar@9 2994 fi
alpar@9 2995 done
alpar@9 2996 done
alpar@9 2997 IFS=$as_save_IFS
alpar@9 2998
alpar@9 2999 fi
alpar@9 3000 fi
alpar@9 3001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
alpar@9 3002 if test -n "$ac_ct_CC"; then
alpar@9 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
alpar@9 3004 $as_echo "$ac_ct_CC" >&6; }
alpar@9 3005 else
alpar@9 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 3007 $as_echo "no" >&6; }
alpar@9 3008 fi
alpar@9 3009
alpar@9 3010
alpar@9 3011 test -n "$ac_ct_CC" && break
alpar@9 3012 done
alpar@9 3013
alpar@9 3014 if test "x$ac_ct_CC" = x; then
alpar@9 3015 CC=""
alpar@9 3016 else
alpar@9 3017 case $cross_compiling:$ac_tool_warned in
alpar@9 3018 yes:)
alpar@9 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 3021 ac_tool_warned=yes ;;
alpar@9 3022 esac
alpar@9 3023 CC=$ac_ct_CC
alpar@9 3024 fi
alpar@9 3025 fi
alpar@9 3026
alpar@9 3027 fi
alpar@9 3028
alpar@9 3029
alpar@9 3030 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
alpar@9 3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
alpar@9 3032 as_fn_error "no acceptable C compiler found in \$PATH
alpar@9 3033 See \`config.log' for more details." "$LINENO" 5; }
alpar@9 3034
alpar@9 3035 # Provide some information about the compiler.
alpar@9 3036 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
alpar@9 3037 set X $ac_compile
alpar@9 3038 ac_compiler=$2
alpar@9 3039 for ac_option in --version -v -V -qversion; do
alpar@9 3040 { { ac_try="$ac_compiler $ac_option >&5"
alpar@9 3041 case "(($ac_try" in
alpar@9 3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
alpar@9 3043 *) ac_try_echo=$ac_try;;
alpar@9 3044 esac
alpar@9 3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
alpar@9 3046 $as_echo "$ac_try_echo"; } >&5
alpar@9 3047 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
alpar@9 3048 ac_status=$?
alpar@9 3049 if test -s conftest.err; then
alpar@9 3050 sed '10a\
alpar@9 3051 ... rest of stderr output deleted ...
alpar@9 3052 10q' conftest.err >conftest.er1
alpar@9 3053 cat conftest.er1 >&5
alpar@9 3054 fi
alpar@9 3055 rm -f conftest.er1 conftest.err
alpar@9 3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 3057 test $ac_status = 0; }
alpar@9 3058 done
alpar@9 3059
alpar@9 3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 3061 /* end confdefs.h. */
alpar@9 3062
alpar@9 3063 int
alpar@9 3064 main ()
alpar@9 3065 {
alpar@9 3066
alpar@9 3067 ;
alpar@9 3068 return 0;
alpar@9 3069 }
alpar@9 3070 _ACEOF
alpar@9 3071 ac_clean_files_save=$ac_clean_files
alpar@9 3072 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
alpar@9 3073 # Try to create an executable without -o first, disregard a.out.
alpar@9 3074 # It will help us diagnose broken compilers, and finding out an intuition
alpar@9 3075 # of exeext.
alpar@9 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
alpar@9 3077 $as_echo_n "checking whether the C compiler works... " >&6; }
alpar@9 3078 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
alpar@9 3079
alpar@9 3080 # The possible output files:
alpar@9 3081 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
alpar@9 3082
alpar@9 3083 ac_rmfiles=
alpar@9 3084 for ac_file in $ac_files
alpar@9 3085 do
alpar@9 3086 case $ac_file in
alpar@9 3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
alpar@9 3088 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
alpar@9 3089 esac
alpar@9 3090 done
alpar@9 3091 rm -f $ac_rmfiles
alpar@9 3092
alpar@9 3093 if { { ac_try="$ac_link_default"
alpar@9 3094 case "(($ac_try" in
alpar@9 3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
alpar@9 3096 *) ac_try_echo=$ac_try;;
alpar@9 3097 esac
alpar@9 3098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
alpar@9 3099 $as_echo "$ac_try_echo"; } >&5
alpar@9 3100 (eval "$ac_link_default") 2>&5
alpar@9 3101 ac_status=$?
alpar@9 3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 3103 test $ac_status = 0; }; then :
alpar@9 3104 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
alpar@9 3105 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
alpar@9 3106 # in a Makefile. We should not override ac_cv_exeext if it was cached,
alpar@9 3107 # so that the user can short-circuit this test for compilers unknown to
alpar@9 3108 # Autoconf.
alpar@9 3109 for ac_file in $ac_files ''
alpar@9 3110 do
alpar@9 3111 test -f "$ac_file" || continue
alpar@9 3112 case $ac_file in
alpar@9 3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
alpar@9 3114 ;;
alpar@9 3115 [ab].out )
alpar@9 3116 # We found the default executable, but exeext='' is most
alpar@9 3117 # certainly right.
alpar@9 3118 break;;
alpar@9 3119 *.* )
alpar@9 3120 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
alpar@9 3121 then :; else
alpar@9 3122 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
alpar@9 3123 fi
alpar@9 3124 # We set ac_cv_exeext here because the later test for it is not
alpar@9 3125 # safe: cross compilers may not add the suffix if given an `-o'
alpar@9 3126 # argument, so we may need to know it at that point already.
alpar@9 3127 # Even if this section looks crufty: it has the advantage of
alpar@9 3128 # actually working.
alpar@9 3129 break;;
alpar@9 3130 * )
alpar@9 3131 break;;
alpar@9 3132 esac
alpar@9 3133 done
alpar@9 3134 test "$ac_cv_exeext" = no && ac_cv_exeext=
alpar@9 3135
alpar@9 3136 else
alpar@9 3137 ac_file=''
alpar@9 3138 fi
alpar@9 3139 if test -z "$ac_file"; then :
alpar@9 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 3141 $as_echo "no" >&6; }
alpar@9 3142 $as_echo "$as_me: failed program was:" >&5
alpar@9 3143 sed 's/^/| /' conftest.$ac_ext >&5
alpar@9 3144
alpar@9 3145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
alpar@9 3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
alpar@9 3147 { as_fn_set_status 77
alpar@9 3148 as_fn_error "C compiler cannot create executables
alpar@9 3149 See \`config.log' for more details." "$LINENO" 5; }; }
alpar@9 3150 else
alpar@9 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
alpar@9 3152 $as_echo "yes" >&6; }
alpar@9 3153 fi
alpar@9 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
alpar@9 3155 $as_echo_n "checking for C compiler default output file name... " >&6; }
alpar@9 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
alpar@9 3157 $as_echo "$ac_file" >&6; }
alpar@9 3158 ac_exeext=$ac_cv_exeext
alpar@9 3159
alpar@9 3160 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
alpar@9 3161 ac_clean_files=$ac_clean_files_save
alpar@9 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
alpar@9 3163 $as_echo_n "checking for suffix of executables... " >&6; }
alpar@9 3164 if { { ac_try="$ac_link"
alpar@9 3165 case "(($ac_try" in
alpar@9 3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
alpar@9 3167 *) ac_try_echo=$ac_try;;
alpar@9 3168 esac
alpar@9 3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
alpar@9 3170 $as_echo "$ac_try_echo"; } >&5
alpar@9 3171 (eval "$ac_link") 2>&5
alpar@9 3172 ac_status=$?
alpar@9 3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 3174 test $ac_status = 0; }; then :
alpar@9 3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
alpar@9 3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
alpar@9 3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
alpar@9 3178 # `rm'.
alpar@9 3179 for ac_file in conftest.exe conftest conftest.*; do
alpar@9 3180 test -f "$ac_file" || continue
alpar@9 3181 case $ac_file in
alpar@9 3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
alpar@9 3183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
alpar@9 3184 break;;
alpar@9 3185 * ) break;;
alpar@9 3186 esac
alpar@9 3187 done
alpar@9 3188 else
alpar@9 3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
alpar@9 3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
alpar@9 3191 as_fn_error "cannot compute suffix of executables: cannot compile and link
alpar@9 3192 See \`config.log' for more details." "$LINENO" 5; }
alpar@9 3193 fi
alpar@9 3194 rm -f conftest conftest$ac_cv_exeext
alpar@9 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
alpar@9 3196 $as_echo "$ac_cv_exeext" >&6; }
alpar@9 3197
alpar@9 3198 rm -f conftest.$ac_ext
alpar@9 3199 EXEEXT=$ac_cv_exeext
alpar@9 3200 ac_exeext=$EXEEXT
alpar@9 3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 3202 /* end confdefs.h. */
alpar@9 3203 #include <stdio.h>
alpar@9 3204 int
alpar@9 3205 main ()
alpar@9 3206 {
alpar@9 3207 FILE *f = fopen ("conftest.out", "w");
alpar@9 3208 return ferror (f) || fclose (f) != 0;
alpar@9 3209
alpar@9 3210 ;
alpar@9 3211 return 0;
alpar@9 3212 }
alpar@9 3213 _ACEOF
alpar@9 3214 ac_clean_files="$ac_clean_files conftest.out"
alpar@9 3215 # Check that the compiler produces executables we can run. If not, either
alpar@9 3216 # the compiler is broken, or we cross compile.
alpar@9 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
alpar@9 3218 $as_echo_n "checking whether we are cross compiling... " >&6; }
alpar@9 3219 if test "$cross_compiling" != yes; then
alpar@9 3220 { { ac_try="$ac_link"
alpar@9 3221 case "(($ac_try" in
alpar@9 3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
alpar@9 3223 *) ac_try_echo=$ac_try;;
alpar@9 3224 esac
alpar@9 3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
alpar@9 3226 $as_echo "$ac_try_echo"; } >&5
alpar@9 3227 (eval "$ac_link") 2>&5
alpar@9 3228 ac_status=$?
alpar@9 3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 3230 test $ac_status = 0; }
alpar@9 3231 if { ac_try='./conftest$ac_cv_exeext'
alpar@9 3232 { { case "(($ac_try" in
alpar@9 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
alpar@9 3234 *) ac_try_echo=$ac_try;;
alpar@9 3235 esac
alpar@9 3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
alpar@9 3237 $as_echo "$ac_try_echo"; } >&5
alpar@9 3238 (eval "$ac_try") 2>&5
alpar@9 3239 ac_status=$?
alpar@9 3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 3241 test $ac_status = 0; }; }; then
alpar@9 3242 cross_compiling=no
alpar@9 3243 else
alpar@9 3244 if test "$cross_compiling" = maybe; then
alpar@9 3245 cross_compiling=yes
alpar@9 3246 else
alpar@9 3247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
alpar@9 3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
alpar@9 3249 as_fn_error "cannot run C compiled programs.
alpar@9 3250 If you meant to cross compile, use \`--host'.
alpar@9 3251 See \`config.log' for more details." "$LINENO" 5; }
alpar@9 3252 fi
alpar@9 3253 fi
alpar@9 3254 fi
alpar@9 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
alpar@9 3256 $as_echo "$cross_compiling" >&6; }
alpar@9 3257
alpar@9 3258 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
alpar@9 3259 ac_clean_files=$ac_clean_files_save
alpar@9 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
alpar@9 3261 $as_echo_n "checking for suffix of object files... " >&6; }
alpar@9 3262 if test "${ac_cv_objext+set}" = set; then :
alpar@9 3263 $as_echo_n "(cached) " >&6
alpar@9 3264 else
alpar@9 3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 3266 /* end confdefs.h. */
alpar@9 3267
alpar@9 3268 int
alpar@9 3269 main ()
alpar@9 3270 {
alpar@9 3271
alpar@9 3272 ;
alpar@9 3273 return 0;
alpar@9 3274 }
alpar@9 3275 _ACEOF
alpar@9 3276 rm -f conftest.o conftest.obj
alpar@9 3277 if { { ac_try="$ac_compile"
alpar@9 3278 case "(($ac_try" in
alpar@9 3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
alpar@9 3280 *) ac_try_echo=$ac_try;;
alpar@9 3281 esac
alpar@9 3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
alpar@9 3283 $as_echo "$ac_try_echo"; } >&5
alpar@9 3284 (eval "$ac_compile") 2>&5
alpar@9 3285 ac_status=$?
alpar@9 3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 3287 test $ac_status = 0; }; then :
alpar@9 3288 for ac_file in conftest.o conftest.obj conftest.*; do
alpar@9 3289 test -f "$ac_file" || continue;
alpar@9 3290 case $ac_file in
alpar@9 3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
alpar@9 3292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
alpar@9 3293 break;;
alpar@9 3294 esac
alpar@9 3295 done
alpar@9 3296 else
alpar@9 3297 $as_echo "$as_me: failed program was:" >&5
alpar@9 3298 sed 's/^/| /' conftest.$ac_ext >&5
alpar@9 3299
alpar@9 3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
alpar@9 3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
alpar@9 3302 as_fn_error "cannot compute suffix of object files: cannot compile
alpar@9 3303 See \`config.log' for more details." "$LINENO" 5; }
alpar@9 3304 fi
alpar@9 3305 rm -f conftest.$ac_cv_objext conftest.$ac_ext
alpar@9 3306 fi
alpar@9 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
alpar@9 3308 $as_echo "$ac_cv_objext" >&6; }
alpar@9 3309 OBJEXT=$ac_cv_objext
alpar@9 3310 ac_objext=$OBJEXT
alpar@9 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
alpar@9 3312 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
alpar@9 3313 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
alpar@9 3314 $as_echo_n "(cached) " >&6
alpar@9 3315 else
alpar@9 3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 3317 /* end confdefs.h. */
alpar@9 3318
alpar@9 3319 int
alpar@9 3320 main ()
alpar@9 3321 {
alpar@9 3322 #ifndef __GNUC__
alpar@9 3323 choke me
alpar@9 3324 #endif
alpar@9 3325
alpar@9 3326 ;
alpar@9 3327 return 0;
alpar@9 3328 }
alpar@9 3329 _ACEOF
alpar@9 3330 if ac_fn_c_try_compile "$LINENO"; then :
alpar@9 3331 ac_compiler_gnu=yes
alpar@9 3332 else
alpar@9 3333 ac_compiler_gnu=no
alpar@9 3334 fi
alpar@9 3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
alpar@9 3336 ac_cv_c_compiler_gnu=$ac_compiler_gnu
alpar@9 3337
alpar@9 3338 fi
alpar@9 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
alpar@9 3340 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
alpar@9 3341 if test $ac_compiler_gnu = yes; then
alpar@9 3342 GCC=yes
alpar@9 3343 else
alpar@9 3344 GCC=
alpar@9 3345 fi
alpar@9 3346 ac_test_CFLAGS=${CFLAGS+set}
alpar@9 3347 ac_save_CFLAGS=$CFLAGS
alpar@9 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
alpar@9 3349 $as_echo_n "checking whether $CC accepts -g... " >&6; }
alpar@9 3350 if test "${ac_cv_prog_cc_g+set}" = set; then :
alpar@9 3351 $as_echo_n "(cached) " >&6
alpar@9 3352 else
alpar@9 3353 ac_save_c_werror_flag=$ac_c_werror_flag
alpar@9 3354 ac_c_werror_flag=yes
alpar@9 3355 ac_cv_prog_cc_g=no
alpar@9 3356 CFLAGS="-g"
alpar@9 3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 3358 /* end confdefs.h. */
alpar@9 3359
alpar@9 3360 int
alpar@9 3361 main ()
alpar@9 3362 {
alpar@9 3363
alpar@9 3364 ;
alpar@9 3365 return 0;
alpar@9 3366 }
alpar@9 3367 _ACEOF
alpar@9 3368 if ac_fn_c_try_compile "$LINENO"; then :
alpar@9 3369 ac_cv_prog_cc_g=yes
alpar@9 3370 else
alpar@9 3371 CFLAGS=""
alpar@9 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 3373 /* end confdefs.h. */
alpar@9 3374
alpar@9 3375 int
alpar@9 3376 main ()
alpar@9 3377 {
alpar@9 3378
alpar@9 3379 ;
alpar@9 3380 return 0;
alpar@9 3381 }
alpar@9 3382 _ACEOF
alpar@9 3383 if ac_fn_c_try_compile "$LINENO"; then :
alpar@9 3384
alpar@9 3385 else
alpar@9 3386 ac_c_werror_flag=$ac_save_c_werror_flag
alpar@9 3387 CFLAGS="-g"
alpar@9 3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 3389 /* end confdefs.h. */
alpar@9 3390
alpar@9 3391 int
alpar@9 3392 main ()
alpar@9 3393 {
alpar@9 3394
alpar@9 3395 ;
alpar@9 3396 return 0;
alpar@9 3397 }
alpar@9 3398 _ACEOF
alpar@9 3399 if ac_fn_c_try_compile "$LINENO"; then :
alpar@9 3400 ac_cv_prog_cc_g=yes
alpar@9 3401 fi
alpar@9 3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
alpar@9 3403 fi
alpar@9 3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
alpar@9 3405 fi
alpar@9 3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
alpar@9 3407 ac_c_werror_flag=$ac_save_c_werror_flag
alpar@9 3408 fi
alpar@9 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
alpar@9 3410 $as_echo "$ac_cv_prog_cc_g" >&6; }
alpar@9 3411 if test "$ac_test_CFLAGS" = set; then
alpar@9 3412 CFLAGS=$ac_save_CFLAGS
alpar@9 3413 elif test $ac_cv_prog_cc_g = yes; then
alpar@9 3414 if test "$GCC" = yes; then
alpar@9 3415 CFLAGS="-g -O2"
alpar@9 3416 else
alpar@9 3417 CFLAGS="-g"
alpar@9 3418 fi
alpar@9 3419 else
alpar@9 3420 if test "$GCC" = yes; then
alpar@9 3421 CFLAGS="-O2"
alpar@9 3422 else
alpar@9 3423 CFLAGS=
alpar@9 3424 fi
alpar@9 3425 fi
alpar@9 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
alpar@9 3427 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
alpar@9 3428 if test "${ac_cv_prog_cc_c89+set}" = set; then :
alpar@9 3429 $as_echo_n "(cached) " >&6
alpar@9 3430 else
alpar@9 3431 ac_cv_prog_cc_c89=no
alpar@9 3432 ac_save_CC=$CC
alpar@9 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 3434 /* end confdefs.h. */
alpar@9 3435 #include <stdarg.h>
alpar@9 3436 #include <stdio.h>
alpar@9 3437 #include <sys/types.h>
alpar@9 3438 #include <sys/stat.h>
alpar@9 3439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
alpar@9 3440 struct buf { int x; };
alpar@9 3441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
alpar@9 3442 static char *e (p, i)
alpar@9 3443 char **p;
alpar@9 3444 int i;
alpar@9 3445 {
alpar@9 3446 return p[i];
alpar@9 3447 }
alpar@9 3448 static char *f (char * (*g) (char **, int), char **p, ...)
alpar@9 3449 {
alpar@9 3450 char *s;
alpar@9 3451 va_list v;
alpar@9 3452 va_start (v,p);
alpar@9 3453 s = g (p, va_arg (v,int));
alpar@9 3454 va_end (v);
alpar@9 3455 return s;
alpar@9 3456 }
alpar@9 3457
alpar@9 3458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
alpar@9 3459 function prototypes and stuff, but not '\xHH' hex character constants.
alpar@9 3460 These don't provoke an error unfortunately, instead are silently treated
alpar@9 3461 as 'x'. The following induces an error, until -std is added to get
alpar@9 3462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
alpar@9 3463 array size at least. It's necessary to write '\x00'==0 to get something
alpar@9 3464 that's true only with -std. */
alpar@9 3465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
alpar@9 3466
alpar@9 3467 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
alpar@9 3468 inside strings and character constants. */
alpar@9 3469 #define FOO(x) 'x'
alpar@9 3470 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
alpar@9 3471
alpar@9 3472 int test (int i, double x);
alpar@9 3473 struct s1 {int (*f) (int a);};
alpar@9 3474 struct s2 {int (*f) (double a);};
alpar@9 3475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
alpar@9 3476 int argc;
alpar@9 3477 char **argv;
alpar@9 3478 int
alpar@9 3479 main ()
alpar@9 3480 {
alpar@9 3481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
alpar@9 3482 ;
alpar@9 3483 return 0;
alpar@9 3484 }
alpar@9 3485 _ACEOF
alpar@9 3486 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
alpar@9 3487 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
alpar@9 3488 do
alpar@9 3489 CC="$ac_save_CC $ac_arg"
alpar@9 3490 if ac_fn_c_try_compile "$LINENO"; then :
alpar@9 3491 ac_cv_prog_cc_c89=$ac_arg
alpar@9 3492 fi
alpar@9 3493 rm -f core conftest.err conftest.$ac_objext
alpar@9 3494 test "x$ac_cv_prog_cc_c89" != "xno" && break
alpar@9 3495 done
alpar@9 3496 rm -f conftest.$ac_ext
alpar@9 3497 CC=$ac_save_CC
alpar@9 3498
alpar@9 3499 fi
alpar@9 3500 # AC_CACHE_VAL
alpar@9 3501 case "x$ac_cv_prog_cc_c89" in
alpar@9 3502 x)
alpar@9 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
alpar@9 3504 $as_echo "none needed" >&6; } ;;
alpar@9 3505 xno)
alpar@9 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
alpar@9 3507 $as_echo "unsupported" >&6; } ;;
alpar@9 3508 *)
alpar@9 3509 CC="$CC $ac_cv_prog_cc_c89"
alpar@9 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
alpar@9 3511 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
alpar@9 3512 esac
alpar@9 3513 if test "x$ac_cv_prog_cc_c89" != xno; then :
alpar@9 3514
alpar@9 3515 fi
alpar@9 3516
alpar@9 3517 ac_ext=c
alpar@9 3518 ac_cpp='$CPP $CPPFLAGS'
alpar@9 3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
alpar@9 3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
alpar@9 3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
alpar@9 3522 DEPDIR="${am__leading_dot}deps"
alpar@9 3523
alpar@9 3524 ac_config_commands="$ac_config_commands depfiles"
alpar@9 3525
alpar@9 3526
alpar@9 3527 am_make=${MAKE-make}
alpar@9 3528 cat > confinc << 'END'
alpar@9 3529 am__doit:
alpar@9 3530 @echo this is the am__doit target
alpar@9 3531 .PHONY: am__doit
alpar@9 3532 END
alpar@9 3533 # If we don't find an include directive, just comment out the code.
alpar@9 3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
alpar@9 3535 $as_echo_n "checking for style of include used by $am_make... " >&6; }
alpar@9 3536 am__include="#"
alpar@9 3537 am__quote=
alpar@9 3538 _am_result=none
alpar@9 3539 # First try GNU make style include.
alpar@9 3540 echo "include confinc" > confmf
alpar@9 3541 # Ignore all kinds of additional output from `make'.
alpar@9 3542 case `$am_make -s -f confmf 2> /dev/null` in #(
alpar@9 3543 *the\ am__doit\ target*)
alpar@9 3544 am__include=include
alpar@9 3545 am__quote=
alpar@9 3546 _am_result=GNU
alpar@9 3547 ;;
alpar@9 3548 esac
alpar@9 3549 # Now try BSD make style include.
alpar@9 3550 if test "$am__include" = "#"; then
alpar@9 3551 echo '.include "confinc"' > confmf
alpar@9 3552 case `$am_make -s -f confmf 2> /dev/null` in #(
alpar@9 3553 *the\ am__doit\ target*)
alpar@9 3554 am__include=.include
alpar@9 3555 am__quote="\""
alpar@9 3556 _am_result=BSD
alpar@9 3557 ;;
alpar@9 3558 esac
alpar@9 3559 fi
alpar@9 3560
alpar@9 3561
alpar@9 3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
alpar@9 3563 $as_echo "$_am_result" >&6; }
alpar@9 3564 rm -f confinc confmf
alpar@9 3565
alpar@9 3566 # Check whether --enable-dependency-tracking was given.
alpar@9 3567 if test "${enable_dependency_tracking+set}" = set; then :
alpar@9 3568 enableval=$enable_dependency_tracking;
alpar@9 3569 fi
alpar@9 3570
alpar@9 3571 if test "x$enable_dependency_tracking" != xno; then
alpar@9 3572 am_depcomp="$ac_aux_dir/depcomp"
alpar@9 3573 AMDEPBACKSLASH='\'
alpar@9 3574 fi
alpar@9 3575 if test "x$enable_dependency_tracking" != xno; then
alpar@9 3576 AMDEP_TRUE=
alpar@9 3577 AMDEP_FALSE='#'
alpar@9 3578 else
alpar@9 3579 AMDEP_TRUE='#'
alpar@9 3580 AMDEP_FALSE=
alpar@9 3581 fi
alpar@9 3582
alpar@9 3583
alpar@9 3584
alpar@9 3585 depcc="$CC" am_compiler_list=
alpar@9 3586
alpar@9 3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
alpar@9 3588 $as_echo_n "checking dependency style of $depcc... " >&6; }
alpar@9 3589 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
alpar@9 3590 $as_echo_n "(cached) " >&6
alpar@9 3591 else
alpar@9 3592 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
alpar@9 3593 # We make a subdir and do the tests there. Otherwise we can end up
alpar@9 3594 # making bogus files that we don't know about and never remove. For
alpar@9 3595 # instance it was reported that on HP-UX the gcc test will end up
alpar@9 3596 # making a dummy file named `D' -- because `-MD' means `put the output
alpar@9 3597 # in D'.
alpar@9 3598 mkdir conftest.dir
alpar@9 3599 # Copy depcomp to subdir because otherwise we won't find it if we're
alpar@9 3600 # using a relative directory.
alpar@9 3601 cp "$am_depcomp" conftest.dir
alpar@9 3602 cd conftest.dir
alpar@9 3603 # We will build objects and dependencies in a subdirectory because
alpar@9 3604 # it helps to detect inapplicable dependency modes. For instance
alpar@9 3605 # both Tru64's cc and ICC support -MD to output dependencies as a
alpar@9 3606 # side effect of compilation, but ICC will put the dependencies in
alpar@9 3607 # the current directory while Tru64 will put them in the object
alpar@9 3608 # directory.
alpar@9 3609 mkdir sub
alpar@9 3610
alpar@9 3611 am_cv_CC_dependencies_compiler_type=none
alpar@9 3612 if test "$am_compiler_list" = ""; then
alpar@9 3613 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
alpar@9 3614 fi
alpar@9 3615 am__universal=false
alpar@9 3616 case " $depcc " in #(
alpar@9 3617 *\ -arch\ *\ -arch\ *) am__universal=true ;;
alpar@9 3618 esac
alpar@9 3619
alpar@9 3620 for depmode in $am_compiler_list; do
alpar@9 3621 # Setup a source with many dependencies, because some compilers
alpar@9 3622 # like to wrap large dependency lists on column 80 (with \), and
alpar@9 3623 # we should not choose a depcomp mode which is confused by this.
alpar@9 3624 #
alpar@9 3625 # We need to recreate these files for each test, as the compiler may
alpar@9 3626 # overwrite some of them when testing with obscure command lines.
alpar@9 3627 # This happens at least with the AIX C compiler.
alpar@9 3628 : > sub/conftest.c
alpar@9 3629 for i in 1 2 3 4 5 6; do
alpar@9 3630 echo '#include "conftst'$i'.h"' >> sub/conftest.c
alpar@9 3631 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
alpar@9 3632 # Solaris 8's {/usr,}/bin/sh.
alpar@9 3633 touch sub/conftst$i.h
alpar@9 3634 done
alpar@9 3635 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
alpar@9 3636
alpar@9 3637 # We check with `-c' and `-o' for the sake of the "dashmstdout"
alpar@9 3638 # mode. It turns out that the SunPro C++ compiler does not properly
alpar@9 3639 # handle `-M -o', and we need to detect this. Also, some Intel
alpar@9 3640 # versions had trouble with output in subdirs
alpar@9 3641 am__obj=sub/conftest.${OBJEXT-o}
alpar@9 3642 am__minus_obj="-o $am__obj"
alpar@9 3643 case $depmode in
alpar@9 3644 gcc)
alpar@9 3645 # This depmode causes a compiler race in universal mode.
alpar@9 3646 test "$am__universal" = false || continue
alpar@9 3647 ;;
alpar@9 3648 nosideeffect)
alpar@9 3649 # after this tag, mechanisms are not by side-effect, so they'll
alpar@9 3650 # only be used when explicitly requested
alpar@9 3651 if test "x$enable_dependency_tracking" = xyes; then
alpar@9 3652 continue
alpar@9 3653 else
alpar@9 3654 break
alpar@9 3655 fi
alpar@9 3656 ;;
alpar@9 3657 msvisualcpp | msvcmsys)
alpar@9 3658 # This compiler won't grok `-c -o', but also, the minuso test has
alpar@9 3659 # not run yet. These depmodes are late enough in the game, and
alpar@9 3660 # so weak that their functioning should not be impacted.
alpar@9 3661 am__obj=conftest.${OBJEXT-o}
alpar@9 3662 am__minus_obj=
alpar@9 3663 ;;
alpar@9 3664 none) break ;;
alpar@9 3665 esac
alpar@9 3666 if depmode=$depmode \
alpar@9 3667 source=sub/conftest.c object=$am__obj \
alpar@9 3668 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
alpar@9 3669 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
alpar@9 3670 >/dev/null 2>conftest.err &&
alpar@9 3671 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
alpar@9 3672 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
alpar@9 3673 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
alpar@9 3674 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
alpar@9 3675 # icc doesn't choke on unknown options, it will just issue warnings
alpar@9 3676 # or remarks (even with -Werror). So we grep stderr for any message
alpar@9 3677 # that says an option was ignored or not supported.
alpar@9 3678 # When given -MP, icc 7.0 and 7.1 complain thusly:
alpar@9 3679 # icc: Command line warning: ignoring option '-M'; no argument required
alpar@9 3680 # The diagnosis changed in icc 8.0:
alpar@9 3681 # icc: Command line remark: option '-MP' not supported
alpar@9 3682 if (grep 'ignoring option' conftest.err ||
alpar@9 3683 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
alpar@9 3684 am_cv_CC_dependencies_compiler_type=$depmode
alpar@9 3685 break
alpar@9 3686 fi
alpar@9 3687 fi
alpar@9 3688 done
alpar@9 3689
alpar@9 3690 cd ..
alpar@9 3691 rm -rf conftest.dir
alpar@9 3692 else
alpar@9 3693 am_cv_CC_dependencies_compiler_type=none
alpar@9 3694 fi
alpar@9 3695
alpar@9 3696 fi
alpar@9 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
alpar@9 3698 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
alpar@9 3699 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
alpar@9 3700
alpar@9 3701 if
alpar@9 3702 test "x$enable_dependency_tracking" != xno \
alpar@9 3703 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
alpar@9 3704 am__fastdepCC_TRUE=
alpar@9 3705 am__fastdepCC_FALSE='#'
alpar@9 3706 else
alpar@9 3707 am__fastdepCC_TRUE='#'
alpar@9 3708 am__fastdepCC_FALSE=
alpar@9 3709 fi
alpar@9 3710
alpar@9 3711
alpar@9 3712
alpar@9 3713 case `pwd` in
alpar@9 3714 *\ * | *\ *)
alpar@9 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
alpar@9 3716 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
alpar@9 3717 esac
alpar@9 3718
alpar@9 3719
alpar@9 3720
alpar@9 3721 macro_version='2.2.7a'
alpar@9 3722 macro_revision='1.3140'
alpar@9 3723
alpar@9 3724
alpar@9 3725
alpar@9 3726
alpar@9 3727
alpar@9 3728
alpar@9 3729
alpar@9 3730
alpar@9 3731
alpar@9 3732
alpar@9 3733
alpar@9 3734
alpar@9 3735
alpar@9 3736 ltmain="$ac_aux_dir/ltmain.sh"
alpar@9 3737
alpar@9 3738 # Make sure we can run config.sub.
alpar@9 3739 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
alpar@9 3740 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
alpar@9 3741
alpar@9 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
alpar@9 3743 $as_echo_n "checking build system type... " >&6; }
alpar@9 3744 if test "${ac_cv_build+set}" = set; then :
alpar@9 3745 $as_echo_n "(cached) " >&6
alpar@9 3746 else
alpar@9 3747 ac_build_alias=$build_alias
alpar@9 3748 test "x$ac_build_alias" = x &&
alpar@9 3749 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
alpar@9 3750 test "x$ac_build_alias" = x &&
alpar@9 3751 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
alpar@9 3752 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
alpar@9 3753 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
alpar@9 3754
alpar@9 3755 fi
alpar@9 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
alpar@9 3757 $as_echo "$ac_cv_build" >&6; }
alpar@9 3758 case $ac_cv_build in
alpar@9 3759 *-*-*) ;;
alpar@9 3760 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
alpar@9 3761 esac
alpar@9 3762 build=$ac_cv_build
alpar@9 3763 ac_save_IFS=$IFS; IFS='-'
alpar@9 3764 set x $ac_cv_build
alpar@9 3765 shift
alpar@9 3766 build_cpu=$1
alpar@9 3767 build_vendor=$2
alpar@9 3768 shift; shift
alpar@9 3769 # Remember, the first character of IFS is used to create $*,
alpar@9 3770 # except with old shells:
alpar@9 3771 build_os=$*
alpar@9 3772 IFS=$ac_save_IFS
alpar@9 3773 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
alpar@9 3774
alpar@9 3775
alpar@9 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
alpar@9 3777 $as_echo_n "checking host system type... " >&6; }
alpar@9 3778 if test "${ac_cv_host+set}" = set; then :
alpar@9 3779 $as_echo_n "(cached) " >&6
alpar@9 3780 else
alpar@9 3781 if test "x$host_alias" = x; then
alpar@9 3782 ac_cv_host=$ac_cv_build
alpar@9 3783 else
alpar@9 3784 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
alpar@9 3785 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
alpar@9 3786 fi
alpar@9 3787
alpar@9 3788 fi
alpar@9 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
alpar@9 3790 $as_echo "$ac_cv_host" >&6; }
alpar@9 3791 case $ac_cv_host in
alpar@9 3792 *-*-*) ;;
alpar@9 3793 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
alpar@9 3794 esac
alpar@9 3795 host=$ac_cv_host
alpar@9 3796 ac_save_IFS=$IFS; IFS='-'
alpar@9 3797 set x $ac_cv_host
alpar@9 3798 shift
alpar@9 3799 host_cpu=$1
alpar@9 3800 host_vendor=$2
alpar@9 3801 shift; shift
alpar@9 3802 # Remember, the first character of IFS is used to create $*,
alpar@9 3803 # except with old shells:
alpar@9 3804 host_os=$*
alpar@9 3805 IFS=$ac_save_IFS
alpar@9 3806 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
alpar@9 3807
alpar@9 3808
alpar@9 3809 # Backslashify metacharacters that are still active within
alpar@9 3810 # double-quoted strings.
alpar@9 3811 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
alpar@9 3812
alpar@9 3813 # Same as above, but do not quote variable references.
alpar@9 3814 double_quote_subst='s/\(["`\\]\)/\\\1/g'
alpar@9 3815
alpar@9 3816 # Sed substitution to delay expansion of an escaped shell variable in a
alpar@9 3817 # double_quote_subst'ed string.
alpar@9 3818 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
alpar@9 3819
alpar@9 3820 # Sed substitution to delay expansion of an escaped single quote.
alpar@9 3821 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
alpar@9 3822
alpar@9 3823 # Sed substitution to avoid accidental globbing in evaled expressions
alpar@9 3824 no_glob_subst='s/\*/\\\*/g'
alpar@9 3825
alpar@9 3826 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
alpar@9 3827 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
alpar@9 3828 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
alpar@9 3829
alpar@9 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
alpar@9 3831 $as_echo_n "checking how to print strings... " >&6; }
alpar@9 3832 # Test print first, because it will be a builtin if present.
alpar@9 3833 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
alpar@9 3834 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
alpar@9 3835 ECHO='print -r --'
alpar@9 3836 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
alpar@9 3837 ECHO='printf %s\n'
alpar@9 3838 else
alpar@9 3839 # Use this function as a fallback that always works.
alpar@9 3840 func_fallback_echo ()
alpar@9 3841 {
alpar@9 3842 eval 'cat <<_LTECHO_EOF
alpar@9 3843 $1
alpar@9 3844 _LTECHO_EOF'
alpar@9 3845 }
alpar@9 3846 ECHO='func_fallback_echo'
alpar@9 3847 fi
alpar@9 3848
alpar@9 3849 # func_echo_all arg...
alpar@9 3850 # Invoke $ECHO with all args, space-separated.
alpar@9 3851 func_echo_all ()
alpar@9 3852 {
alpar@9 3853 $ECHO ""
alpar@9 3854 }
alpar@9 3855
alpar@9 3856 case "$ECHO" in
alpar@9 3857 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
alpar@9 3858 $as_echo "printf" >&6; } ;;
alpar@9 3859 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
alpar@9 3860 $as_echo "print -r" >&6; } ;;
alpar@9 3861 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
alpar@9 3862 $as_echo "cat" >&6; } ;;
alpar@9 3863 esac
alpar@9 3864
alpar@9 3865
alpar@9 3866
alpar@9 3867
alpar@9 3868
alpar@9 3869
alpar@9 3870
alpar@9 3871
alpar@9 3872
alpar@9 3873
alpar@9 3874
alpar@9 3875
alpar@9 3876
alpar@9 3877
alpar@9 3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
alpar@9 3879 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
alpar@9 3880 if test "${ac_cv_path_SED+set}" = set; then :
alpar@9 3881 $as_echo_n "(cached) " >&6
alpar@9 3882 else
alpar@9 3883 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
alpar@9 3884 for ac_i in 1 2 3 4 5 6 7; do
alpar@9 3885 ac_script="$ac_script$as_nl$ac_script"
alpar@9 3886 done
alpar@9 3887 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
alpar@9 3888 { ac_script=; unset ac_script;}
alpar@9 3889 if test -z "$SED"; then
alpar@9 3890 ac_path_SED_found=false
alpar@9 3891 # Loop through the user's path and test for each of PROGNAME-LIST
alpar@9 3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 3893 for as_dir in $PATH
alpar@9 3894 do
alpar@9 3895 IFS=$as_save_IFS
alpar@9 3896 test -z "$as_dir" && as_dir=.
alpar@9 3897 for ac_prog in sed gsed; do
alpar@9 3898 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 3899 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
alpar@9 3900 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
alpar@9 3901 # Check for GNU ac_path_SED and select it if it is found.
alpar@9 3902 # Check for GNU $ac_path_SED
alpar@9 3903 case `"$ac_path_SED" --version 2>&1` in
alpar@9 3904 *GNU*)
alpar@9 3905 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
alpar@9 3906 *)
alpar@9 3907 ac_count=0
alpar@9 3908 $as_echo_n 0123456789 >"conftest.in"
alpar@9 3909 while :
alpar@9 3910 do
alpar@9 3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
alpar@9 3912 mv "conftest.tmp" "conftest.in"
alpar@9 3913 cp "conftest.in" "conftest.nl"
alpar@9 3914 $as_echo '' >> "conftest.nl"
alpar@9 3915 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
alpar@9 3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
alpar@9 3917 as_fn_arith $ac_count + 1 && ac_count=$as_val
alpar@9 3918 if test $ac_count -gt ${ac_path_SED_max-0}; then
alpar@9 3919 # Best one so far, save it but keep looking for a better one
alpar@9 3920 ac_cv_path_SED="$ac_path_SED"
alpar@9 3921 ac_path_SED_max=$ac_count
alpar@9 3922 fi
alpar@9 3923 # 10*(2^10) chars as input seems more than enough
alpar@9 3924 test $ac_count -gt 10 && break
alpar@9 3925 done
alpar@9 3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
alpar@9 3927 esac
alpar@9 3928
alpar@9 3929 $ac_path_SED_found && break 3
alpar@9 3930 done
alpar@9 3931 done
alpar@9 3932 done
alpar@9 3933 IFS=$as_save_IFS
alpar@9 3934 if test -z "$ac_cv_path_SED"; then
alpar@9 3935 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
alpar@9 3936 fi
alpar@9 3937 else
alpar@9 3938 ac_cv_path_SED=$SED
alpar@9 3939 fi
alpar@9 3940
alpar@9 3941 fi
alpar@9 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
alpar@9 3943 $as_echo "$ac_cv_path_SED" >&6; }
alpar@9 3944 SED="$ac_cv_path_SED"
alpar@9 3945 rm -f conftest.sed
alpar@9 3946
alpar@9 3947 test -z "$SED" && SED=sed
alpar@9 3948 Xsed="$SED -e 1s/^X//"
alpar@9 3949
alpar@9 3950
alpar@9 3951
alpar@9 3952
alpar@9 3953
alpar@9 3954
alpar@9 3955
alpar@9 3956
alpar@9 3957
alpar@9 3958
alpar@9 3959
alpar@9 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
alpar@9 3961 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
alpar@9 3962 if test "${ac_cv_path_GREP+set}" = set; then :
alpar@9 3963 $as_echo_n "(cached) " >&6
alpar@9 3964 else
alpar@9 3965 if test -z "$GREP"; then
alpar@9 3966 ac_path_GREP_found=false
alpar@9 3967 # Loop through the user's path and test for each of PROGNAME-LIST
alpar@9 3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 3969 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
alpar@9 3970 do
alpar@9 3971 IFS=$as_save_IFS
alpar@9 3972 test -z "$as_dir" && as_dir=.
alpar@9 3973 for ac_prog in grep ggrep; do
alpar@9 3974 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 3975 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
alpar@9 3976 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
alpar@9 3977 # Check for GNU ac_path_GREP and select it if it is found.
alpar@9 3978 # Check for GNU $ac_path_GREP
alpar@9 3979 case `"$ac_path_GREP" --version 2>&1` in
alpar@9 3980 *GNU*)
alpar@9 3981 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
alpar@9 3982 *)
alpar@9 3983 ac_count=0
alpar@9 3984 $as_echo_n 0123456789 >"conftest.in"
alpar@9 3985 while :
alpar@9 3986 do
alpar@9 3987 cat "conftest.in" "conftest.in" >"conftest.tmp"
alpar@9 3988 mv "conftest.tmp" "conftest.in"
alpar@9 3989 cp "conftest.in" "conftest.nl"
alpar@9 3990 $as_echo 'GREP' >> "conftest.nl"
alpar@9 3991 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
alpar@9 3992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
alpar@9 3993 as_fn_arith $ac_count + 1 && ac_count=$as_val
alpar@9 3994 if test $ac_count -gt ${ac_path_GREP_max-0}; then
alpar@9 3995 # Best one so far, save it but keep looking for a better one
alpar@9 3996 ac_cv_path_GREP="$ac_path_GREP"
alpar@9 3997 ac_path_GREP_max=$ac_count
alpar@9 3998 fi
alpar@9 3999 # 10*(2^10) chars as input seems more than enough
alpar@9 4000 test $ac_count -gt 10 && break
alpar@9 4001 done
alpar@9 4002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
alpar@9 4003 esac
alpar@9 4004
alpar@9 4005 $ac_path_GREP_found && break 3
alpar@9 4006 done
alpar@9 4007 done
alpar@9 4008 done
alpar@9 4009 IFS=$as_save_IFS
alpar@9 4010 if test -z "$ac_cv_path_GREP"; then
alpar@9 4011 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
alpar@9 4012 fi
alpar@9 4013 else
alpar@9 4014 ac_cv_path_GREP=$GREP
alpar@9 4015 fi
alpar@9 4016
alpar@9 4017 fi
alpar@9 4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
alpar@9 4019 $as_echo "$ac_cv_path_GREP" >&6; }
alpar@9 4020 GREP="$ac_cv_path_GREP"
alpar@9 4021
alpar@9 4022
alpar@9 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
alpar@9 4024 $as_echo_n "checking for egrep... " >&6; }
alpar@9 4025 if test "${ac_cv_path_EGREP+set}" = set; then :
alpar@9 4026 $as_echo_n "(cached) " >&6
alpar@9 4027 else
alpar@9 4028 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
alpar@9 4029 then ac_cv_path_EGREP="$GREP -E"
alpar@9 4030 else
alpar@9 4031 if test -z "$EGREP"; then
alpar@9 4032 ac_path_EGREP_found=false
alpar@9 4033 # Loop through the user's path and test for each of PROGNAME-LIST
alpar@9 4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 4035 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
alpar@9 4036 do
alpar@9 4037 IFS=$as_save_IFS
alpar@9 4038 test -z "$as_dir" && as_dir=.
alpar@9 4039 for ac_prog in egrep; do
alpar@9 4040 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 4041 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
alpar@9 4042 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
alpar@9 4043 # Check for GNU ac_path_EGREP and select it if it is found.
alpar@9 4044 # Check for GNU $ac_path_EGREP
alpar@9 4045 case `"$ac_path_EGREP" --version 2>&1` in
alpar@9 4046 *GNU*)
alpar@9 4047 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
alpar@9 4048 *)
alpar@9 4049 ac_count=0
alpar@9 4050 $as_echo_n 0123456789 >"conftest.in"
alpar@9 4051 while :
alpar@9 4052 do
alpar@9 4053 cat "conftest.in" "conftest.in" >"conftest.tmp"
alpar@9 4054 mv "conftest.tmp" "conftest.in"
alpar@9 4055 cp "conftest.in" "conftest.nl"
alpar@9 4056 $as_echo 'EGREP' >> "conftest.nl"
alpar@9 4057 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
alpar@9 4058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
alpar@9 4059 as_fn_arith $ac_count + 1 && ac_count=$as_val
alpar@9 4060 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
alpar@9 4061 # Best one so far, save it but keep looking for a better one
alpar@9 4062 ac_cv_path_EGREP="$ac_path_EGREP"
alpar@9 4063 ac_path_EGREP_max=$ac_count
alpar@9 4064 fi
alpar@9 4065 # 10*(2^10) chars as input seems more than enough
alpar@9 4066 test $ac_count -gt 10 && break
alpar@9 4067 done
alpar@9 4068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
alpar@9 4069 esac
alpar@9 4070
alpar@9 4071 $ac_path_EGREP_found && break 3
alpar@9 4072 done
alpar@9 4073 done
alpar@9 4074 done
alpar@9 4075 IFS=$as_save_IFS
alpar@9 4076 if test -z "$ac_cv_path_EGREP"; then
alpar@9 4077 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
alpar@9 4078 fi
alpar@9 4079 else
alpar@9 4080 ac_cv_path_EGREP=$EGREP
alpar@9 4081 fi
alpar@9 4082
alpar@9 4083 fi
alpar@9 4084 fi
alpar@9 4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
alpar@9 4086 $as_echo "$ac_cv_path_EGREP" >&6; }
alpar@9 4087 EGREP="$ac_cv_path_EGREP"
alpar@9 4088
alpar@9 4089
alpar@9 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
alpar@9 4091 $as_echo_n "checking for fgrep... " >&6; }
alpar@9 4092 if test "${ac_cv_path_FGREP+set}" = set; then :
alpar@9 4093 $as_echo_n "(cached) " >&6
alpar@9 4094 else
alpar@9 4095 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
alpar@9 4096 then ac_cv_path_FGREP="$GREP -F"
alpar@9 4097 else
alpar@9 4098 if test -z "$FGREP"; then
alpar@9 4099 ac_path_FGREP_found=false
alpar@9 4100 # Loop through the user's path and test for each of PROGNAME-LIST
alpar@9 4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 4102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
alpar@9 4103 do
alpar@9 4104 IFS=$as_save_IFS
alpar@9 4105 test -z "$as_dir" && as_dir=.
alpar@9 4106 for ac_prog in fgrep; do
alpar@9 4107 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 4108 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
alpar@9 4109 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
alpar@9 4110 # Check for GNU ac_path_FGREP and select it if it is found.
alpar@9 4111 # Check for GNU $ac_path_FGREP
alpar@9 4112 case `"$ac_path_FGREP" --version 2>&1` in
alpar@9 4113 *GNU*)
alpar@9 4114 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
alpar@9 4115 *)
alpar@9 4116 ac_count=0
alpar@9 4117 $as_echo_n 0123456789 >"conftest.in"
alpar@9 4118 while :
alpar@9 4119 do
alpar@9 4120 cat "conftest.in" "conftest.in" >"conftest.tmp"
alpar@9 4121 mv "conftest.tmp" "conftest.in"
alpar@9 4122 cp "conftest.in" "conftest.nl"
alpar@9 4123 $as_echo 'FGREP' >> "conftest.nl"
alpar@9 4124 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
alpar@9 4125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
alpar@9 4126 as_fn_arith $ac_count + 1 && ac_count=$as_val
alpar@9 4127 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
alpar@9 4128 # Best one so far, save it but keep looking for a better one
alpar@9 4129 ac_cv_path_FGREP="$ac_path_FGREP"
alpar@9 4130 ac_path_FGREP_max=$ac_count
alpar@9 4131 fi
alpar@9 4132 # 10*(2^10) chars as input seems more than enough
alpar@9 4133 test $ac_count -gt 10 && break
alpar@9 4134 done
alpar@9 4135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
alpar@9 4136 esac
alpar@9 4137
alpar@9 4138 $ac_path_FGREP_found && break 3
alpar@9 4139 done
alpar@9 4140 done
alpar@9 4141 done
alpar@9 4142 IFS=$as_save_IFS
alpar@9 4143 if test -z "$ac_cv_path_FGREP"; then
alpar@9 4144 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
alpar@9 4145 fi
alpar@9 4146 else
alpar@9 4147 ac_cv_path_FGREP=$FGREP
alpar@9 4148 fi
alpar@9 4149
alpar@9 4150 fi
alpar@9 4151 fi
alpar@9 4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
alpar@9 4153 $as_echo "$ac_cv_path_FGREP" >&6; }
alpar@9 4154 FGREP="$ac_cv_path_FGREP"
alpar@9 4155
alpar@9 4156
alpar@9 4157 test -z "$GREP" && GREP=grep
alpar@9 4158
alpar@9 4159
alpar@9 4160
alpar@9 4161
alpar@9 4162
alpar@9 4163
alpar@9 4164
alpar@9 4165
alpar@9 4166
alpar@9 4167
alpar@9 4168
alpar@9 4169
alpar@9 4170
alpar@9 4171
alpar@9 4172
alpar@9 4173
alpar@9 4174
alpar@9 4175
alpar@9 4176
alpar@9 4177 # Check whether --with-gnu-ld was given.
alpar@9 4178 if test "${with_gnu_ld+set}" = set; then :
alpar@9 4179 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
alpar@9 4180 else
alpar@9 4181 with_gnu_ld=no
alpar@9 4182 fi
alpar@9 4183
alpar@9 4184 ac_prog=ld
alpar@9 4185 if test "$GCC" = yes; then
alpar@9 4186 # Check if gcc -print-prog-name=ld gives a path.
alpar@9 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
alpar@9 4188 $as_echo_n "checking for ld used by $CC... " >&6; }
alpar@9 4189 case $host in
alpar@9 4190 *-*-mingw*)
alpar@9 4191 # gcc leaves a trailing carriage return which upsets mingw
alpar@9 4192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
alpar@9 4193 *)
alpar@9 4194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
alpar@9 4195 esac
alpar@9 4196 case $ac_prog in
alpar@9 4197 # Accept absolute paths.
alpar@9 4198 [\\/]* | ?:[\\/]*)
alpar@9 4199 re_direlt='/[^/][^/]*/\.\./'
alpar@9 4200 # Canonicalize the pathname of ld
alpar@9 4201 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
alpar@9 4202 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
alpar@9 4203 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
alpar@9 4204 done
alpar@9 4205 test -z "$LD" && LD="$ac_prog"
alpar@9 4206 ;;
alpar@9 4207 "")
alpar@9 4208 # If it fails, then pretend we aren't using GCC.
alpar@9 4209 ac_prog=ld
alpar@9 4210 ;;
alpar@9 4211 *)
alpar@9 4212 # If it is relative, then search for the first ld in PATH.
alpar@9 4213 with_gnu_ld=unknown
alpar@9 4214 ;;
alpar@9 4215 esac
alpar@9 4216 elif test "$with_gnu_ld" = yes; then
alpar@9 4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
alpar@9 4218 $as_echo_n "checking for GNU ld... " >&6; }
alpar@9 4219 else
alpar@9 4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
alpar@9 4221 $as_echo_n "checking for non-GNU ld... " >&6; }
alpar@9 4222 fi
alpar@9 4223 if test "${lt_cv_path_LD+set}" = set; then :
alpar@9 4224 $as_echo_n "(cached) " >&6
alpar@9 4225 else
alpar@9 4226 if test -z "$LD"; then
alpar@9 4227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
alpar@9 4228 for ac_dir in $PATH; do
alpar@9 4229 IFS="$lt_save_ifs"
alpar@9 4230 test -z "$ac_dir" && ac_dir=.
alpar@9 4231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
alpar@9 4232 lt_cv_path_LD="$ac_dir/$ac_prog"
alpar@9 4233 # Check to see if the program is GNU ld. I'd rather use --version,
alpar@9 4234 # but apparently some variants of GNU ld only accept -v.
alpar@9 4235 # Break only if it was the GNU/non-GNU ld that we prefer.
alpar@9 4236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
alpar@9 4237 *GNU* | *'with BFD'*)
alpar@9 4238 test "$with_gnu_ld" != no && break
alpar@9 4239 ;;
alpar@9 4240 *)
alpar@9 4241 test "$with_gnu_ld" != yes && break
alpar@9 4242 ;;
alpar@9 4243 esac
alpar@9 4244 fi
alpar@9 4245 done
alpar@9 4246 IFS="$lt_save_ifs"
alpar@9 4247 else
alpar@9 4248 lt_cv_path_LD="$LD" # Let the user override the test with a path.
alpar@9 4249 fi
alpar@9 4250 fi
alpar@9 4251
alpar@9 4252 LD="$lt_cv_path_LD"
alpar@9 4253 if test -n "$LD"; then
alpar@9 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
alpar@9 4255 $as_echo "$LD" >&6; }
alpar@9 4256 else
alpar@9 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 4258 $as_echo "no" >&6; }
alpar@9 4259 fi
alpar@9 4260 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
alpar@9 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
alpar@9 4262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
alpar@9 4263 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
alpar@9 4264 $as_echo_n "(cached) " >&6
alpar@9 4265 else
alpar@9 4266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
alpar@9 4267 case `$LD -v 2>&1 </dev/null` in
alpar@9 4268 *GNU* | *'with BFD'*)
alpar@9 4269 lt_cv_prog_gnu_ld=yes
alpar@9 4270 ;;
alpar@9 4271 *)
alpar@9 4272 lt_cv_prog_gnu_ld=no
alpar@9 4273 ;;
alpar@9 4274 esac
alpar@9 4275 fi
alpar@9 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
alpar@9 4277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
alpar@9 4278 with_gnu_ld=$lt_cv_prog_gnu_ld
alpar@9 4279
alpar@9 4280
alpar@9 4281
alpar@9 4282
alpar@9 4283
alpar@9 4284
alpar@9 4285
alpar@9 4286
alpar@9 4287
alpar@9 4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
alpar@9 4289 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
alpar@9 4290 if test "${lt_cv_path_NM+set}" = set; then :
alpar@9 4291 $as_echo_n "(cached) " >&6
alpar@9 4292 else
alpar@9 4293 if test -n "$NM"; then
alpar@9 4294 # Let the user override the test.
alpar@9 4295 lt_cv_path_NM="$NM"
alpar@9 4296 else
alpar@9 4297 lt_nm_to_check="${ac_tool_prefix}nm"
alpar@9 4298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
alpar@9 4299 lt_nm_to_check="$lt_nm_to_check nm"
alpar@9 4300 fi
alpar@9 4301 for lt_tmp_nm in $lt_nm_to_check; do
alpar@9 4302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
alpar@9 4303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
alpar@9 4304 IFS="$lt_save_ifs"
alpar@9 4305 test -z "$ac_dir" && ac_dir=.
alpar@9 4306 tmp_nm="$ac_dir/$lt_tmp_nm"
alpar@9 4307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
alpar@9 4308 # Check to see if the nm accepts a BSD-compat flag.
alpar@9 4309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
alpar@9 4310 # nm: unknown option "B" ignored
alpar@9 4311 # Tru64's nm complains that /dev/null is an invalid object file
alpar@9 4312 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
alpar@9 4313 */dev/null* | *'Invalid file or object type'*)
alpar@9 4314 lt_cv_path_NM="$tmp_nm -B"
alpar@9 4315 break
alpar@9 4316 ;;
alpar@9 4317 *)
alpar@9 4318 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
alpar@9 4319 */dev/null*)
alpar@9 4320 lt_cv_path_NM="$tmp_nm -p"
alpar@9 4321 break
alpar@9 4322 ;;
alpar@9 4323 *)
alpar@9 4324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
alpar@9 4325 continue # so that we can try to find one that supports BSD flags
alpar@9 4326 ;;
alpar@9 4327 esac
alpar@9 4328 ;;
alpar@9 4329 esac
alpar@9 4330 fi
alpar@9 4331 done
alpar@9 4332 IFS="$lt_save_ifs"
alpar@9 4333 done
alpar@9 4334 : ${lt_cv_path_NM=no}
alpar@9 4335 fi
alpar@9 4336 fi
alpar@9 4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
alpar@9 4338 $as_echo "$lt_cv_path_NM" >&6; }
alpar@9 4339 if test "$lt_cv_path_NM" != "no"; then
alpar@9 4340 NM="$lt_cv_path_NM"
alpar@9 4341 else
alpar@9 4342 # Didn't find any BSD compatible name lister, look for dumpbin.
alpar@9 4343 if test -n "$DUMPBIN"; then :
alpar@9 4344 # Let the user override the test.
alpar@9 4345 else
alpar@9 4346 if test -n "$ac_tool_prefix"; then
alpar@9 4347 for ac_prog in dumpbin "link -dump"
alpar@9 4348 do
alpar@9 4349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
alpar@9 4350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
alpar@9 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 4352 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 4353 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
alpar@9 4354 $as_echo_n "(cached) " >&6
alpar@9 4355 else
alpar@9 4356 if test -n "$DUMPBIN"; then
alpar@9 4357 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
alpar@9 4358 else
alpar@9 4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 4360 for as_dir in $PATH
alpar@9 4361 do
alpar@9 4362 IFS=$as_save_IFS
alpar@9 4363 test -z "$as_dir" && as_dir=.
alpar@9 4364 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 4366 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
alpar@9 4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 4368 break 2
alpar@9 4369 fi
alpar@9 4370 done
alpar@9 4371 done
alpar@9 4372 IFS=$as_save_IFS
alpar@9 4373
alpar@9 4374 fi
alpar@9 4375 fi
alpar@9 4376 DUMPBIN=$ac_cv_prog_DUMPBIN
alpar@9 4377 if test -n "$DUMPBIN"; then
alpar@9 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
alpar@9 4379 $as_echo "$DUMPBIN" >&6; }
alpar@9 4380 else
alpar@9 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 4382 $as_echo "no" >&6; }
alpar@9 4383 fi
alpar@9 4384
alpar@9 4385
alpar@9 4386 test -n "$DUMPBIN" && break
alpar@9 4387 done
alpar@9 4388 fi
alpar@9 4389 if test -z "$DUMPBIN"; then
alpar@9 4390 ac_ct_DUMPBIN=$DUMPBIN
alpar@9 4391 for ac_prog in dumpbin "link -dump"
alpar@9 4392 do
alpar@9 4393 # Extract the first word of "$ac_prog", so it can be a program name with args.
alpar@9 4394 set dummy $ac_prog; ac_word=$2
alpar@9 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 4396 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 4397 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
alpar@9 4398 $as_echo_n "(cached) " >&6
alpar@9 4399 else
alpar@9 4400 if test -n "$ac_ct_DUMPBIN"; then
alpar@9 4401 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
alpar@9 4402 else
alpar@9 4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 4404 for as_dir in $PATH
alpar@9 4405 do
alpar@9 4406 IFS=$as_save_IFS
alpar@9 4407 test -z "$as_dir" && as_dir=.
alpar@9 4408 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 4410 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
alpar@9 4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 4412 break 2
alpar@9 4413 fi
alpar@9 4414 done
alpar@9 4415 done
alpar@9 4416 IFS=$as_save_IFS
alpar@9 4417
alpar@9 4418 fi
alpar@9 4419 fi
alpar@9 4420 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
alpar@9 4421 if test -n "$ac_ct_DUMPBIN"; then
alpar@9 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
alpar@9 4423 $as_echo "$ac_ct_DUMPBIN" >&6; }
alpar@9 4424 else
alpar@9 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 4426 $as_echo "no" >&6; }
alpar@9 4427 fi
alpar@9 4428
alpar@9 4429
alpar@9 4430 test -n "$ac_ct_DUMPBIN" && break
alpar@9 4431 done
alpar@9 4432
alpar@9 4433 if test "x$ac_ct_DUMPBIN" = x; then
alpar@9 4434 DUMPBIN=":"
alpar@9 4435 else
alpar@9 4436 case $cross_compiling:$ac_tool_warned in
alpar@9 4437 yes:)
alpar@9 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 4439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 4440 ac_tool_warned=yes ;;
alpar@9 4441 esac
alpar@9 4442 DUMPBIN=$ac_ct_DUMPBIN
alpar@9 4443 fi
alpar@9 4444 fi
alpar@9 4445
alpar@9 4446 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
alpar@9 4447 *COFF*)
alpar@9 4448 DUMPBIN="$DUMPBIN -symbols"
alpar@9 4449 ;;
alpar@9 4450 *)
alpar@9 4451 DUMPBIN=:
alpar@9 4452 ;;
alpar@9 4453 esac
alpar@9 4454 fi
alpar@9 4455
alpar@9 4456 if test "$DUMPBIN" != ":"; then
alpar@9 4457 NM="$DUMPBIN"
alpar@9 4458 fi
alpar@9 4459 fi
alpar@9 4460 test -z "$NM" && NM=nm
alpar@9 4461
alpar@9 4462
alpar@9 4463
alpar@9 4464
alpar@9 4465
alpar@9 4466
alpar@9 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
alpar@9 4468 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
alpar@9 4469 if test "${lt_cv_nm_interface+set}" = set; then :
alpar@9 4470 $as_echo_n "(cached) " >&6
alpar@9 4471 else
alpar@9 4472 lt_cv_nm_interface="BSD nm"
alpar@9 4473 echo "int some_variable = 0;" > conftest.$ac_ext
alpar@9 4474 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
alpar@9 4475 (eval "$ac_compile" 2>conftest.err)
alpar@9 4476 cat conftest.err >&5
alpar@9 4477 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
alpar@9 4478 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
alpar@9 4479 cat conftest.err >&5
alpar@9 4480 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
alpar@9 4481 cat conftest.out >&5
alpar@9 4482 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
alpar@9 4483 lt_cv_nm_interface="MS dumpbin"
alpar@9 4484 fi
alpar@9 4485 rm -f conftest*
alpar@9 4486 fi
alpar@9 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
alpar@9 4488 $as_echo "$lt_cv_nm_interface" >&6; }
alpar@9 4489
alpar@9 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
alpar@9 4491 $as_echo_n "checking whether ln -s works... " >&6; }
alpar@9 4492 LN_S=$as_ln_s
alpar@9 4493 if test "$LN_S" = "ln -s"; then
alpar@9 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
alpar@9 4495 $as_echo "yes" >&6; }
alpar@9 4496 else
alpar@9 4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
alpar@9 4498 $as_echo "no, using $LN_S" >&6; }
alpar@9 4499 fi
alpar@9 4500
alpar@9 4501 # find the maximum length of command line arguments
alpar@9 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
alpar@9 4503 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
alpar@9 4504 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
alpar@9 4505 $as_echo_n "(cached) " >&6
alpar@9 4506 else
alpar@9 4507 i=0
alpar@9 4508 teststring="ABCD"
alpar@9 4509
alpar@9 4510 case $build_os in
alpar@9 4511 msdosdjgpp*)
alpar@9 4512 # On DJGPP, this test can blow up pretty badly due to problems in libc
alpar@9 4513 # (any single argument exceeding 2000 bytes causes a buffer overrun
alpar@9 4514 # during glob expansion). Even if it were fixed, the result of this
alpar@9 4515 # check would be larger than it should be.
alpar@9 4516 lt_cv_sys_max_cmd_len=12288; # 12K is about right
alpar@9 4517 ;;
alpar@9 4518
alpar@9 4519 gnu*)
alpar@9 4520 # Under GNU Hurd, this test is not required because there is
alpar@9 4521 # no limit to the length of command line arguments.
alpar@9 4522 # Libtool will interpret -1 as no limit whatsoever
alpar@9 4523 lt_cv_sys_max_cmd_len=-1;
alpar@9 4524 ;;
alpar@9 4525
alpar@9 4526 cygwin* | mingw* | cegcc*)
alpar@9 4527 # On Win9x/ME, this test blows up -- it succeeds, but takes
alpar@9 4528 # about 5 minutes as the teststring grows exponentially.
alpar@9 4529 # Worse, since 9x/ME are not pre-emptively multitasking,
alpar@9 4530 # you end up with a "frozen" computer, even though with patience
alpar@9 4531 # the test eventually succeeds (with a max line length of 256k).
alpar@9 4532 # Instead, let's just punt: use the minimum linelength reported by
alpar@9 4533 # all of the supported platforms: 8192 (on NT/2K/XP).
alpar@9 4534 lt_cv_sys_max_cmd_len=8192;
alpar@9 4535 ;;
alpar@9 4536
alpar@9 4537 mint*)
alpar@9 4538 # On MiNT this can take a long time and run out of memory.
alpar@9 4539 lt_cv_sys_max_cmd_len=8192;
alpar@9 4540 ;;
alpar@9 4541
alpar@9 4542 amigaos*)
alpar@9 4543 # On AmigaOS with pdksh, this test takes hours, literally.
alpar@9 4544 # So we just punt and use a minimum line length of 8192.
alpar@9 4545 lt_cv_sys_max_cmd_len=8192;
alpar@9 4546 ;;
alpar@9 4547
alpar@9 4548 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
alpar@9 4549 # This has been around since 386BSD, at least. Likely further.
alpar@9 4550 if test -x /sbin/sysctl; then
alpar@9 4551 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
alpar@9 4552 elif test -x /usr/sbin/sysctl; then
alpar@9 4553 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
alpar@9 4554 else
alpar@9 4555 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
alpar@9 4556 fi
alpar@9 4557 # And add a safety zone
alpar@9 4558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
alpar@9 4559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
alpar@9 4560 ;;
alpar@9 4561
alpar@9 4562 interix*)
alpar@9 4563 # We know the value 262144 and hardcode it with a safety zone (like BSD)
alpar@9 4564 lt_cv_sys_max_cmd_len=196608
alpar@9 4565 ;;
alpar@9 4566
alpar@9 4567 osf*)
alpar@9 4568 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
alpar@9 4569 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
alpar@9 4570 # nice to cause kernel panics so lets avoid the loop below.
alpar@9 4571 # First set a reasonable default.
alpar@9 4572 lt_cv_sys_max_cmd_len=16384
alpar@9 4573 #
alpar@9 4574 if test -x /sbin/sysconfig; then
alpar@9 4575 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
alpar@9 4576 *1*) lt_cv_sys_max_cmd_len=-1 ;;
alpar@9 4577 esac
alpar@9 4578 fi
alpar@9 4579 ;;
alpar@9 4580 sco3.2v5*)
alpar@9 4581 lt_cv_sys_max_cmd_len=102400
alpar@9 4582 ;;
alpar@9 4583 sysv5* | sco5v6* | sysv4.2uw2*)
alpar@9 4584 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
alpar@9 4585 if test -n "$kargmax"; then
alpar@9 4586 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
alpar@9 4587 else
alpar@9 4588 lt_cv_sys_max_cmd_len=32768
alpar@9 4589 fi
alpar@9 4590 ;;
alpar@9 4591 *)
alpar@9 4592 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
alpar@9 4593 if test -n "$lt_cv_sys_max_cmd_len"; then
alpar@9 4594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
alpar@9 4595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
alpar@9 4596 else
alpar@9 4597 # Make teststring a little bigger before we do anything with it.
alpar@9 4598 # a 1K string should be a reasonable start.
alpar@9 4599 for i in 1 2 3 4 5 6 7 8 ; do
alpar@9 4600 teststring=$teststring$teststring
alpar@9 4601 done
alpar@9 4602 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
alpar@9 4603 # If test is not a shell built-in, we'll probably end up computing a
alpar@9 4604 # maximum length that is only half of the actual maximum length, but
alpar@9 4605 # we can't tell.
alpar@9 4606 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
alpar@9 4607 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
alpar@9 4608 test $i != 17 # 1/2 MB should be enough
alpar@9 4609 do
alpar@9 4610 i=`expr $i + 1`
alpar@9 4611 teststring=$teststring$teststring
alpar@9 4612 done
alpar@9 4613 # Only check the string length outside the loop.
alpar@9 4614 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
alpar@9 4615 teststring=
alpar@9 4616 # Add a significant safety factor because C++ compilers can tack on
alpar@9 4617 # massive amounts of additional arguments before passing them to the
alpar@9 4618 # linker. It appears as though 1/2 is a usable value.
alpar@9 4619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
alpar@9 4620 fi
alpar@9 4621 ;;
alpar@9 4622 esac
alpar@9 4623
alpar@9 4624 fi
alpar@9 4625
alpar@9 4626 if test -n $lt_cv_sys_max_cmd_len ; then
alpar@9 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
alpar@9 4628 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
alpar@9 4629 else
alpar@9 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
alpar@9 4631 $as_echo "none" >&6; }
alpar@9 4632 fi
alpar@9 4633 max_cmd_len=$lt_cv_sys_max_cmd_len
alpar@9 4634
alpar@9 4635
alpar@9 4636
alpar@9 4637
alpar@9 4638
alpar@9 4639
alpar@9 4640 : ${CP="cp -f"}
alpar@9 4641 : ${MV="mv -f"}
alpar@9 4642 : ${RM="rm -f"}
alpar@9 4643
alpar@9 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
alpar@9 4645 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
alpar@9 4646 # Try some XSI features
alpar@9 4647 xsi_shell=no
alpar@9 4648 ( _lt_dummy="a/b/c"
alpar@9 4649 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
alpar@9 4650 = c,a/b,, \
alpar@9 4651 && eval 'test $(( 1 + 1 )) -eq 2 \
alpar@9 4652 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
alpar@9 4653 && xsi_shell=yes
alpar@9 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
alpar@9 4655 $as_echo "$xsi_shell" >&6; }
alpar@9 4656
alpar@9 4657
alpar@9 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
alpar@9 4659 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
alpar@9 4660 lt_shell_append=no
alpar@9 4661 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
alpar@9 4662 >/dev/null 2>&1 \
alpar@9 4663 && lt_shell_append=yes
alpar@9 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
alpar@9 4665 $as_echo "$lt_shell_append" >&6; }
alpar@9 4666
alpar@9 4667
alpar@9 4668 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
alpar@9 4669 lt_unset=unset
alpar@9 4670 else
alpar@9 4671 lt_unset=false
alpar@9 4672 fi
alpar@9 4673
alpar@9 4674
alpar@9 4675
alpar@9 4676
alpar@9 4677
alpar@9 4678 # test EBCDIC or ASCII
alpar@9 4679 case `echo X|tr X '\101'` in
alpar@9 4680 A) # ASCII based system
alpar@9 4681 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
alpar@9 4682 lt_SP2NL='tr \040 \012'
alpar@9 4683 lt_NL2SP='tr \015\012 \040\040'
alpar@9 4684 ;;
alpar@9 4685 *) # EBCDIC based system
alpar@9 4686 lt_SP2NL='tr \100 \n'
alpar@9 4687 lt_NL2SP='tr \r\n \100\100'
alpar@9 4688 ;;
alpar@9 4689 esac
alpar@9 4690
alpar@9 4691
alpar@9 4692
alpar@9 4693
alpar@9 4694
alpar@9 4695
alpar@9 4696
alpar@9 4697
alpar@9 4698
alpar@9 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build paths to $host format" >&5
alpar@9 4700 $as_echo_n "checking how to convert $build paths to $host format... " >&6; }
alpar@9 4701 if test "${lt_cv_to_host_path_cmd+set}" = set; then :
alpar@9 4702 $as_echo_n "(cached) " >&6
alpar@9 4703 else
alpar@9 4704 case $host in
alpar@9 4705 *mingw* )
alpar@9 4706 case $build in
alpar@9 4707 *mingw* ) # actually msys
alpar@9 4708 lt_cv_to_host_path_cmd=func_msys_to_mingw_path_convert
alpar@9 4709 ;;
alpar@9 4710 *cygwin* )
alpar@9 4711 lt_cv_to_host_path_cmd=func_cygwin_to_mingw_path_convert
alpar@9 4712 ;;
alpar@9 4713 * ) # otherwise, assume *nix
alpar@9 4714 lt_cv_to_host_path_cmd=func_nix_to_mingw_path_convert
alpar@9 4715 ;;
alpar@9 4716 esac
alpar@9 4717 ;;
alpar@9 4718 *cygwin* )
alpar@9 4719 case $build in
alpar@9 4720 *mingw* ) # actually msys
alpar@9 4721 lt_cv_to_host_path_cmd=func_msys_to_cygwin_path_convert
alpar@9 4722 ;;
alpar@9 4723 *cygwin* )
alpar@9 4724 lt_cv_to_host_path_cmd=func_noop_path_convert
alpar@9 4725 ;;
alpar@9 4726 * ) # otherwise, assume *nix
alpar@9 4727 lt_cv_to_host_path_cmd=func_nix_to_cygwin_path_convert
alpar@9 4728 ;;
alpar@9 4729 esac
alpar@9 4730 ;;
alpar@9 4731 * ) # unhandled hosts (and "normal" native builds)
alpar@9 4732 lt_cv_to_host_path_cmd=func_noop_path_convert
alpar@9 4733 ;;
alpar@9 4734 esac
alpar@9 4735
alpar@9 4736 fi
alpar@9 4737
alpar@9 4738 to_host_path_cmd=$lt_cv_to_host_path_cmd
alpar@9 4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_path_cmd" >&5
alpar@9 4740 $as_echo "$lt_cv_to_host_path_cmd" >&6; }
alpar@9 4741
alpar@9 4742
alpar@9 4743
alpar@9 4744
alpar@9 4745
alpar@9 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
alpar@9 4747 $as_echo_n "checking for $LD option to reload object files... " >&6; }
alpar@9 4748 if test "${lt_cv_ld_reload_flag+set}" = set; then :
alpar@9 4749 $as_echo_n "(cached) " >&6
alpar@9 4750 else
alpar@9 4751 lt_cv_ld_reload_flag='-r'
alpar@9 4752 fi
alpar@9 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
alpar@9 4754 $as_echo "$lt_cv_ld_reload_flag" >&6; }
alpar@9 4755 reload_flag=$lt_cv_ld_reload_flag
alpar@9 4756 case $reload_flag in
alpar@9 4757 "" | " "*) ;;
alpar@9 4758 *) reload_flag=" $reload_flag" ;;
alpar@9 4759 esac
alpar@9 4760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
alpar@9 4761 case $host_os in
alpar@9 4762 darwin*)
alpar@9 4763 if test "$GCC" = yes; then
alpar@9 4764 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
alpar@9 4765 else
alpar@9 4766 reload_cmds='$LD$reload_flag -o $output$reload_objs'
alpar@9 4767 fi
alpar@9 4768 ;;
alpar@9 4769 esac
alpar@9 4770
alpar@9 4771
alpar@9 4772
alpar@9 4773
alpar@9 4774
alpar@9 4775
alpar@9 4776
alpar@9 4777
alpar@9 4778
alpar@9 4779 if test -n "$ac_tool_prefix"; then
alpar@9 4780 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
alpar@9 4781 set dummy ${ac_tool_prefix}objdump; ac_word=$2
alpar@9 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 4783 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 4784 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
alpar@9 4785 $as_echo_n "(cached) " >&6
alpar@9 4786 else
alpar@9 4787 if test -n "$OBJDUMP"; then
alpar@9 4788 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
alpar@9 4789 else
alpar@9 4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 4791 for as_dir in $PATH
alpar@9 4792 do
alpar@9 4793 IFS=$as_save_IFS
alpar@9 4794 test -z "$as_dir" && as_dir=.
alpar@9 4795 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 4797 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
alpar@9 4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 4799 break 2
alpar@9 4800 fi
alpar@9 4801 done
alpar@9 4802 done
alpar@9 4803 IFS=$as_save_IFS
alpar@9 4804
alpar@9 4805 fi
alpar@9 4806 fi
alpar@9 4807 OBJDUMP=$ac_cv_prog_OBJDUMP
alpar@9 4808 if test -n "$OBJDUMP"; then
alpar@9 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
alpar@9 4810 $as_echo "$OBJDUMP" >&6; }
alpar@9 4811 else
alpar@9 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 4813 $as_echo "no" >&6; }
alpar@9 4814 fi
alpar@9 4815
alpar@9 4816
alpar@9 4817 fi
alpar@9 4818 if test -z "$ac_cv_prog_OBJDUMP"; then
alpar@9 4819 ac_ct_OBJDUMP=$OBJDUMP
alpar@9 4820 # Extract the first word of "objdump", so it can be a program name with args.
alpar@9 4821 set dummy objdump; ac_word=$2
alpar@9 4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 4823 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 4824 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
alpar@9 4825 $as_echo_n "(cached) " >&6
alpar@9 4826 else
alpar@9 4827 if test -n "$ac_ct_OBJDUMP"; then
alpar@9 4828 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
alpar@9 4829 else
alpar@9 4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 4831 for as_dir in $PATH
alpar@9 4832 do
alpar@9 4833 IFS=$as_save_IFS
alpar@9 4834 test -z "$as_dir" && as_dir=.
alpar@9 4835 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 4837 ac_cv_prog_ac_ct_OBJDUMP="objdump"
alpar@9 4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 4839 break 2
alpar@9 4840 fi
alpar@9 4841 done
alpar@9 4842 done
alpar@9 4843 IFS=$as_save_IFS
alpar@9 4844
alpar@9 4845 fi
alpar@9 4846 fi
alpar@9 4847 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
alpar@9 4848 if test -n "$ac_ct_OBJDUMP"; then
alpar@9 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
alpar@9 4850 $as_echo "$ac_ct_OBJDUMP" >&6; }
alpar@9 4851 else
alpar@9 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 4853 $as_echo "no" >&6; }
alpar@9 4854 fi
alpar@9 4855
alpar@9 4856 if test "x$ac_ct_OBJDUMP" = x; then
alpar@9 4857 OBJDUMP="false"
alpar@9 4858 else
alpar@9 4859 case $cross_compiling:$ac_tool_warned in
alpar@9 4860 yes:)
alpar@9 4861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 4862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 4863 ac_tool_warned=yes ;;
alpar@9 4864 esac
alpar@9 4865 OBJDUMP=$ac_ct_OBJDUMP
alpar@9 4866 fi
alpar@9 4867 else
alpar@9 4868 OBJDUMP="$ac_cv_prog_OBJDUMP"
alpar@9 4869 fi
alpar@9 4870
alpar@9 4871 test -z "$OBJDUMP" && OBJDUMP=objdump
alpar@9 4872
alpar@9 4873
alpar@9 4874
alpar@9 4875
alpar@9 4876
alpar@9 4877
alpar@9 4878
alpar@9 4879
alpar@9 4880
alpar@9 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
alpar@9 4882 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
alpar@9 4883 if test "${lt_cv_deplibs_check_method+set}" = set; then :
alpar@9 4884 $as_echo_n "(cached) " >&6
alpar@9 4885 else
alpar@9 4886 lt_cv_file_magic_cmd='$MAGIC_CMD'
alpar@9 4887 lt_cv_file_magic_test_file=
alpar@9 4888 lt_cv_deplibs_check_method='unknown'
alpar@9 4889 # Need to set the preceding variable on all platforms that support
alpar@9 4890 # interlibrary dependencies.
alpar@9 4891 # 'none' -- dependencies not supported.
alpar@9 4892 # `unknown' -- same as none, but documents that we really don't know.
alpar@9 4893 # 'pass_all' -- all dependencies passed with no checks.
alpar@9 4894 # 'test_compile' -- check by making test program.
alpar@9 4895 # 'file_magic [[regex]]' -- check by looking for files in library path
alpar@9 4896 # which responds to the $file_magic_cmd with a given extended regex.
alpar@9 4897 # If you have `file' or equivalent on your system and you're not sure
alpar@9 4898 # whether `pass_all' will *always* work, you probably want this one.
alpar@9 4899
alpar@9 4900 case $host_os in
alpar@9 4901 aix[4-9]*)
alpar@9 4902 lt_cv_deplibs_check_method=pass_all
alpar@9 4903 ;;
alpar@9 4904
alpar@9 4905 beos*)
alpar@9 4906 lt_cv_deplibs_check_method=pass_all
alpar@9 4907 ;;
alpar@9 4908
alpar@9 4909 bsdi[45]*)
alpar@9 4910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
alpar@9 4911 lt_cv_file_magic_cmd='/usr/bin/file -L'
alpar@9 4912 lt_cv_file_magic_test_file=/shlib/libc.so
alpar@9 4913 ;;
alpar@9 4914
alpar@9 4915 cygwin*)
alpar@9 4916 # func_win32_libid is a shell function defined in ltmain.sh
alpar@9 4917 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
alpar@9 4918 lt_cv_file_magic_cmd='func_win32_libid'
alpar@9 4919 ;;
alpar@9 4920
alpar@9 4921 mingw* | pw32*)
alpar@9 4922 # Base MSYS/MinGW do not provide the 'file' command needed by
alpar@9 4923 # func_win32_libid shell function, so use a weaker test based on 'objdump',
alpar@9 4924 # unless we find 'file', for example because we are cross-compiling.
alpar@9 4925 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
alpar@9 4926 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
alpar@9 4927 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
alpar@9 4928 lt_cv_file_magic_cmd='func_win32_libid'
alpar@9 4929 else
alpar@9 4930 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
alpar@9 4931 lt_cv_file_magic_cmd='$OBJDUMP -f'
alpar@9 4932 fi
alpar@9 4933 ;;
alpar@9 4934
alpar@9 4935 cegcc*)
alpar@9 4936 # use the weaker test based on 'objdump'. See mingw*.
alpar@9 4937 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
alpar@9 4938 lt_cv_file_magic_cmd='$OBJDUMP -f'
alpar@9 4939 ;;
alpar@9 4940
alpar@9 4941 darwin* | rhapsody*)
alpar@9 4942 lt_cv_deplibs_check_method=pass_all
alpar@9 4943 ;;
alpar@9 4944
alpar@9 4945 freebsd* | dragonfly*)
alpar@9 4946 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
alpar@9 4947 case $host_cpu in
alpar@9 4948 i*86 )
alpar@9 4949 # Not sure whether the presence of OpenBSD here was a mistake.
alpar@9 4950 # Let's accept both of them until this is cleared up.
alpar@9 4951 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
alpar@9 4952 lt_cv_file_magic_cmd=/usr/bin/file
alpar@9 4953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
alpar@9 4954 ;;
alpar@9 4955 esac
alpar@9 4956 else
alpar@9 4957 lt_cv_deplibs_check_method=pass_all
alpar@9 4958 fi
alpar@9 4959 ;;
alpar@9 4960
alpar@9 4961 gnu*)
alpar@9 4962 lt_cv_deplibs_check_method=pass_all
alpar@9 4963 ;;
alpar@9 4964
alpar@9 4965 haiku*)
alpar@9 4966 lt_cv_deplibs_check_method=pass_all
alpar@9 4967 ;;
alpar@9 4968
alpar@9 4969 hpux10.20* | hpux11*)
alpar@9 4970 lt_cv_file_magic_cmd=/usr/bin/file
alpar@9 4971 case $host_cpu in
alpar@9 4972 ia64*)
alpar@9 4973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
alpar@9 4974 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
alpar@9 4975 ;;
alpar@9 4976 hppa*64*)
alpar@9 4977 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
alpar@9 4978 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
alpar@9 4979 ;;
alpar@9 4980 *)
alpar@9 4981 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
alpar@9 4982 lt_cv_file_magic_test_file=/usr/lib/libc.sl
alpar@9 4983 ;;
alpar@9 4984 esac
alpar@9 4985 ;;
alpar@9 4986
alpar@9 4987 interix[3-9]*)
alpar@9 4988 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
alpar@9 4989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
alpar@9 4990 ;;
alpar@9 4991
alpar@9 4992 irix5* | irix6* | nonstopux*)
alpar@9 4993 case $LD in
alpar@9 4994 *-32|*"-32 ") libmagic=32-bit;;
alpar@9 4995 *-n32|*"-n32 ") libmagic=N32;;
alpar@9 4996 *-64|*"-64 ") libmagic=64-bit;;
alpar@9 4997 *) libmagic=never-match;;
alpar@9 4998 esac
alpar@9 4999 lt_cv_deplibs_check_method=pass_all
alpar@9 5000 ;;
alpar@9 5001
alpar@9 5002 # This must be Linux ELF.
alpar@9 5003 linux* | k*bsd*-gnu | kopensolaris*-gnu)
alpar@9 5004 lt_cv_deplibs_check_method=pass_all
alpar@9 5005 ;;
alpar@9 5006
alpar@9 5007 netbsd*)
alpar@9 5008 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
alpar@9 5009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
alpar@9 5010 else
alpar@9 5011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
alpar@9 5012 fi
alpar@9 5013 ;;
alpar@9 5014
alpar@9 5015 newos6*)
alpar@9 5016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
alpar@9 5017 lt_cv_file_magic_cmd=/usr/bin/file
alpar@9 5018 lt_cv_file_magic_test_file=/usr/lib/libnls.so
alpar@9 5019 ;;
alpar@9 5020
alpar@9 5021 *nto* | *qnx*)
alpar@9 5022 lt_cv_deplibs_check_method=pass_all
alpar@9 5023 ;;
alpar@9 5024
alpar@9 5025 openbsd*)
alpar@9 5026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
alpar@9 5027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
alpar@9 5028 else
alpar@9 5029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
alpar@9 5030 fi
alpar@9 5031 ;;
alpar@9 5032
alpar@9 5033 osf3* | osf4* | osf5*)
alpar@9 5034 lt_cv_deplibs_check_method=pass_all
alpar@9 5035 ;;
alpar@9 5036
alpar@9 5037 rdos*)
alpar@9 5038 lt_cv_deplibs_check_method=pass_all
alpar@9 5039 ;;
alpar@9 5040
alpar@9 5041 solaris*)
alpar@9 5042 lt_cv_deplibs_check_method=pass_all
alpar@9 5043 ;;
alpar@9 5044
alpar@9 5045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
alpar@9 5046 lt_cv_deplibs_check_method=pass_all
alpar@9 5047 ;;
alpar@9 5048
alpar@9 5049 sysv4 | sysv4.3*)
alpar@9 5050 case $host_vendor in
alpar@9 5051 motorola)
alpar@9 5052 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]'
alpar@9 5053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
alpar@9 5054 ;;
alpar@9 5055 ncr)
alpar@9 5056 lt_cv_deplibs_check_method=pass_all
alpar@9 5057 ;;
alpar@9 5058 sequent)
alpar@9 5059 lt_cv_file_magic_cmd='/bin/file'
alpar@9 5060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
alpar@9 5061 ;;
alpar@9 5062 sni)
alpar@9 5063 lt_cv_file_magic_cmd='/bin/file'
alpar@9 5064 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
alpar@9 5065 lt_cv_file_magic_test_file=/lib/libc.so
alpar@9 5066 ;;
alpar@9 5067 siemens)
alpar@9 5068 lt_cv_deplibs_check_method=pass_all
alpar@9 5069 ;;
alpar@9 5070 pc)
alpar@9 5071 lt_cv_deplibs_check_method=pass_all
alpar@9 5072 ;;
alpar@9 5073 esac
alpar@9 5074 ;;
alpar@9 5075
alpar@9 5076 tpf*)
alpar@9 5077 lt_cv_deplibs_check_method=pass_all
alpar@9 5078 ;;
alpar@9 5079 esac
alpar@9 5080
alpar@9 5081 fi
alpar@9 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
alpar@9 5083 $as_echo "$lt_cv_deplibs_check_method" >&6; }
alpar@9 5084 file_magic_cmd=$lt_cv_file_magic_cmd
alpar@9 5085 deplibs_check_method=$lt_cv_deplibs_check_method
alpar@9 5086 test -z "$deplibs_check_method" && deplibs_check_method=unknown
alpar@9 5087
alpar@9 5088
alpar@9 5089
alpar@9 5090
alpar@9 5091
alpar@9 5092
alpar@9 5093
alpar@9 5094
alpar@9 5095
alpar@9 5096
alpar@9 5097
alpar@9 5098
alpar@9 5099 if test -n "$ac_tool_prefix"; then
alpar@9 5100 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
alpar@9 5101 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
alpar@9 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 5103 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 5104 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
alpar@9 5105 $as_echo_n "(cached) " >&6
alpar@9 5106 else
alpar@9 5107 if test -n "$DLLTOOL"; then
alpar@9 5108 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
alpar@9 5109 else
alpar@9 5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 5111 for as_dir in $PATH
alpar@9 5112 do
alpar@9 5113 IFS=$as_save_IFS
alpar@9 5114 test -z "$as_dir" && as_dir=.
alpar@9 5115 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 5117 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
alpar@9 5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 5119 break 2
alpar@9 5120 fi
alpar@9 5121 done
alpar@9 5122 done
alpar@9 5123 IFS=$as_save_IFS
alpar@9 5124
alpar@9 5125 fi
alpar@9 5126 fi
alpar@9 5127 DLLTOOL=$ac_cv_prog_DLLTOOL
alpar@9 5128 if test -n "$DLLTOOL"; then
alpar@9 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
alpar@9 5130 $as_echo "$DLLTOOL" >&6; }
alpar@9 5131 else
alpar@9 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 5133 $as_echo "no" >&6; }
alpar@9 5134 fi
alpar@9 5135
alpar@9 5136
alpar@9 5137 fi
alpar@9 5138 if test -z "$ac_cv_prog_DLLTOOL"; then
alpar@9 5139 ac_ct_DLLTOOL=$DLLTOOL
alpar@9 5140 # Extract the first word of "dlltool", so it can be a program name with args.
alpar@9 5141 set dummy dlltool; ac_word=$2
alpar@9 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 5143 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 5144 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
alpar@9 5145 $as_echo_n "(cached) " >&6
alpar@9 5146 else
alpar@9 5147 if test -n "$ac_ct_DLLTOOL"; then
alpar@9 5148 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
alpar@9 5149 else
alpar@9 5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 5151 for as_dir in $PATH
alpar@9 5152 do
alpar@9 5153 IFS=$as_save_IFS
alpar@9 5154 test -z "$as_dir" && as_dir=.
alpar@9 5155 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 5157 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
alpar@9 5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 5159 break 2
alpar@9 5160 fi
alpar@9 5161 done
alpar@9 5162 done
alpar@9 5163 IFS=$as_save_IFS
alpar@9 5164
alpar@9 5165 fi
alpar@9 5166 fi
alpar@9 5167 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
alpar@9 5168 if test -n "$ac_ct_DLLTOOL"; then
alpar@9 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
alpar@9 5170 $as_echo "$ac_ct_DLLTOOL" >&6; }
alpar@9 5171 else
alpar@9 5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 5173 $as_echo "no" >&6; }
alpar@9 5174 fi
alpar@9 5175
alpar@9 5176 if test "x$ac_ct_DLLTOOL" = x; then
alpar@9 5177 DLLTOOL="false"
alpar@9 5178 else
alpar@9 5179 case $cross_compiling:$ac_tool_warned in
alpar@9 5180 yes:)
alpar@9 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 5182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 5183 ac_tool_warned=yes ;;
alpar@9 5184 esac
alpar@9 5185 DLLTOOL=$ac_ct_DLLTOOL
alpar@9 5186 fi
alpar@9 5187 else
alpar@9 5188 DLLTOOL="$ac_cv_prog_DLLTOOL"
alpar@9 5189 fi
alpar@9 5190
alpar@9 5191 test -z "$DLLTOOL" && DLLTOOL=dlltool
alpar@9 5192
alpar@9 5193
alpar@9 5194
alpar@9 5195
alpar@9 5196
alpar@9 5197
alpar@9 5198
alpar@9 5199
alpar@9 5200
alpar@9 5201
alpar@9 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
alpar@9 5203 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
alpar@9 5204 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
alpar@9 5205 $as_echo_n "(cached) " >&6
alpar@9 5206 else
alpar@9 5207 lt_cv_sharedlib_from_linklib_cmd='unknown'
alpar@9 5208
alpar@9 5209 case $host_os in
alpar@9 5210 cygwin* | mingw* | pw32* | cegcc*)
alpar@9 5211 # two different shell functions defined in ltmain.sh
alpar@9 5212 # decide which to use based on capabilities of $DLLTOOL
alpar@9 5213 case `$DLLTOOL --help 2>&1` in
alpar@9 5214 *--identify-strict*)
alpar@9 5215 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
alpar@9 5216 ;;
alpar@9 5217 *)
alpar@9 5218 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
alpar@9 5219 ;;
alpar@9 5220 esac
alpar@9 5221 ;;
alpar@9 5222 *)
alpar@9 5223 # fallback: assume linklib IS sharedlib
alpar@9 5224 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
alpar@9 5225 ;;
alpar@9 5226 esac
alpar@9 5227
alpar@9 5228 fi
alpar@9 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
alpar@9 5230 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
alpar@9 5231 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
alpar@9 5232 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
alpar@9 5233
alpar@9 5234
alpar@9 5235
alpar@9 5236
alpar@9 5237
alpar@9 5238
alpar@9 5239
alpar@9 5240 if test -n "$ac_tool_prefix"; then
alpar@9 5241 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
alpar@9 5242 set dummy ${ac_tool_prefix}ar; ac_word=$2
alpar@9 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 5244 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 5245 if test "${ac_cv_prog_AR+set}" = set; then :
alpar@9 5246 $as_echo_n "(cached) " >&6
alpar@9 5247 else
alpar@9 5248 if test -n "$AR"; then
alpar@9 5249 ac_cv_prog_AR="$AR" # Let the user override the test.
alpar@9 5250 else
alpar@9 5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 5252 for as_dir in $PATH
alpar@9 5253 do
alpar@9 5254 IFS=$as_save_IFS
alpar@9 5255 test -z "$as_dir" && as_dir=.
alpar@9 5256 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 5258 ac_cv_prog_AR="${ac_tool_prefix}ar"
alpar@9 5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 5260 break 2
alpar@9 5261 fi
alpar@9 5262 done
alpar@9 5263 done
alpar@9 5264 IFS=$as_save_IFS
alpar@9 5265
alpar@9 5266 fi
alpar@9 5267 fi
alpar@9 5268 AR=$ac_cv_prog_AR
alpar@9 5269 if test -n "$AR"; then
alpar@9 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
alpar@9 5271 $as_echo "$AR" >&6; }
alpar@9 5272 else
alpar@9 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 5274 $as_echo "no" >&6; }
alpar@9 5275 fi
alpar@9 5276
alpar@9 5277
alpar@9 5278 fi
alpar@9 5279 if test -z "$ac_cv_prog_AR"; then
alpar@9 5280 ac_ct_AR=$AR
alpar@9 5281 # Extract the first word of "ar", so it can be a program name with args.
alpar@9 5282 set dummy ar; ac_word=$2
alpar@9 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 5284 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 5285 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
alpar@9 5286 $as_echo_n "(cached) " >&6
alpar@9 5287 else
alpar@9 5288 if test -n "$ac_ct_AR"; then
alpar@9 5289 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
alpar@9 5290 else
alpar@9 5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 5292 for as_dir in $PATH
alpar@9 5293 do
alpar@9 5294 IFS=$as_save_IFS
alpar@9 5295 test -z "$as_dir" && as_dir=.
alpar@9 5296 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 5298 ac_cv_prog_ac_ct_AR="ar"
alpar@9 5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 5300 break 2
alpar@9 5301 fi
alpar@9 5302 done
alpar@9 5303 done
alpar@9 5304 IFS=$as_save_IFS
alpar@9 5305
alpar@9 5306 fi
alpar@9 5307 fi
alpar@9 5308 ac_ct_AR=$ac_cv_prog_ac_ct_AR
alpar@9 5309 if test -n "$ac_ct_AR"; then
alpar@9 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
alpar@9 5311 $as_echo "$ac_ct_AR" >&6; }
alpar@9 5312 else
alpar@9 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 5314 $as_echo "no" >&6; }
alpar@9 5315 fi
alpar@9 5316
alpar@9 5317 if test "x$ac_ct_AR" = x; then
alpar@9 5318 AR="false"
alpar@9 5319 else
alpar@9 5320 case $cross_compiling:$ac_tool_warned in
alpar@9 5321 yes:)
alpar@9 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 5323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 5324 ac_tool_warned=yes ;;
alpar@9 5325 esac
alpar@9 5326 AR=$ac_ct_AR
alpar@9 5327 fi
alpar@9 5328 else
alpar@9 5329 AR="$ac_cv_prog_AR"
alpar@9 5330 fi
alpar@9 5331
alpar@9 5332 test -z "$AR" && AR=ar
alpar@9 5333 test -z "$AR_FLAGS" && AR_FLAGS=cru
alpar@9 5334
alpar@9 5335
alpar@9 5336
alpar@9 5337
alpar@9 5338
alpar@9 5339
alpar@9 5340
alpar@9 5341
alpar@9 5342
alpar@9 5343
alpar@9 5344
alpar@9 5345 if test -n "$ac_tool_prefix"; then
alpar@9 5346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
alpar@9 5347 set dummy ${ac_tool_prefix}strip; ac_word=$2
alpar@9 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 5349 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 5350 if test "${ac_cv_prog_STRIP+set}" = set; then :
alpar@9 5351 $as_echo_n "(cached) " >&6
alpar@9 5352 else
alpar@9 5353 if test -n "$STRIP"; then
alpar@9 5354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
alpar@9 5355 else
alpar@9 5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 5357 for as_dir in $PATH
alpar@9 5358 do
alpar@9 5359 IFS=$as_save_IFS
alpar@9 5360 test -z "$as_dir" && as_dir=.
alpar@9 5361 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 5363 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
alpar@9 5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 5365 break 2
alpar@9 5366 fi
alpar@9 5367 done
alpar@9 5368 done
alpar@9 5369 IFS=$as_save_IFS
alpar@9 5370
alpar@9 5371 fi
alpar@9 5372 fi
alpar@9 5373 STRIP=$ac_cv_prog_STRIP
alpar@9 5374 if test -n "$STRIP"; then
alpar@9 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
alpar@9 5376 $as_echo "$STRIP" >&6; }
alpar@9 5377 else
alpar@9 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 5379 $as_echo "no" >&6; }
alpar@9 5380 fi
alpar@9 5381
alpar@9 5382
alpar@9 5383 fi
alpar@9 5384 if test -z "$ac_cv_prog_STRIP"; then
alpar@9 5385 ac_ct_STRIP=$STRIP
alpar@9 5386 # Extract the first word of "strip", so it can be a program name with args.
alpar@9 5387 set dummy strip; ac_word=$2
alpar@9 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 5389 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 5390 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
alpar@9 5391 $as_echo_n "(cached) " >&6
alpar@9 5392 else
alpar@9 5393 if test -n "$ac_ct_STRIP"; then
alpar@9 5394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
alpar@9 5395 else
alpar@9 5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 5397 for as_dir in $PATH
alpar@9 5398 do
alpar@9 5399 IFS=$as_save_IFS
alpar@9 5400 test -z "$as_dir" && as_dir=.
alpar@9 5401 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 5403 ac_cv_prog_ac_ct_STRIP="strip"
alpar@9 5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 5405 break 2
alpar@9 5406 fi
alpar@9 5407 done
alpar@9 5408 done
alpar@9 5409 IFS=$as_save_IFS
alpar@9 5410
alpar@9 5411 fi
alpar@9 5412 fi
alpar@9 5413 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
alpar@9 5414 if test -n "$ac_ct_STRIP"; then
alpar@9 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
alpar@9 5416 $as_echo "$ac_ct_STRIP" >&6; }
alpar@9 5417 else
alpar@9 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 5419 $as_echo "no" >&6; }
alpar@9 5420 fi
alpar@9 5421
alpar@9 5422 if test "x$ac_ct_STRIP" = x; then
alpar@9 5423 STRIP=":"
alpar@9 5424 else
alpar@9 5425 case $cross_compiling:$ac_tool_warned in
alpar@9 5426 yes:)
alpar@9 5427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 5428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 5429 ac_tool_warned=yes ;;
alpar@9 5430 esac
alpar@9 5431 STRIP=$ac_ct_STRIP
alpar@9 5432 fi
alpar@9 5433 else
alpar@9 5434 STRIP="$ac_cv_prog_STRIP"
alpar@9 5435 fi
alpar@9 5436
alpar@9 5437 test -z "$STRIP" && STRIP=:
alpar@9 5438
alpar@9 5439
alpar@9 5440
alpar@9 5441
alpar@9 5442
alpar@9 5443
alpar@9 5444 if test -n "$ac_tool_prefix"; then
alpar@9 5445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
alpar@9 5446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
alpar@9 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 5448 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 5449 if test "${ac_cv_prog_RANLIB+set}" = set; then :
alpar@9 5450 $as_echo_n "(cached) " >&6
alpar@9 5451 else
alpar@9 5452 if test -n "$RANLIB"; then
alpar@9 5453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
alpar@9 5454 else
alpar@9 5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 5456 for as_dir in $PATH
alpar@9 5457 do
alpar@9 5458 IFS=$as_save_IFS
alpar@9 5459 test -z "$as_dir" && as_dir=.
alpar@9 5460 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 5461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 5462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
alpar@9 5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 5464 break 2
alpar@9 5465 fi
alpar@9 5466 done
alpar@9 5467 done
alpar@9 5468 IFS=$as_save_IFS
alpar@9 5469
alpar@9 5470 fi
alpar@9 5471 fi
alpar@9 5472 RANLIB=$ac_cv_prog_RANLIB
alpar@9 5473 if test -n "$RANLIB"; then
alpar@9 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
alpar@9 5475 $as_echo "$RANLIB" >&6; }
alpar@9 5476 else
alpar@9 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 5478 $as_echo "no" >&6; }
alpar@9 5479 fi
alpar@9 5480
alpar@9 5481
alpar@9 5482 fi
alpar@9 5483 if test -z "$ac_cv_prog_RANLIB"; then
alpar@9 5484 ac_ct_RANLIB=$RANLIB
alpar@9 5485 # Extract the first word of "ranlib", so it can be a program name with args.
alpar@9 5486 set dummy ranlib; ac_word=$2
alpar@9 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 5488 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 5489 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
alpar@9 5490 $as_echo_n "(cached) " >&6
alpar@9 5491 else
alpar@9 5492 if test -n "$ac_ct_RANLIB"; then
alpar@9 5493 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
alpar@9 5494 else
alpar@9 5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 5496 for as_dir in $PATH
alpar@9 5497 do
alpar@9 5498 IFS=$as_save_IFS
alpar@9 5499 test -z "$as_dir" && as_dir=.
alpar@9 5500 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 5502 ac_cv_prog_ac_ct_RANLIB="ranlib"
alpar@9 5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 5504 break 2
alpar@9 5505 fi
alpar@9 5506 done
alpar@9 5507 done
alpar@9 5508 IFS=$as_save_IFS
alpar@9 5509
alpar@9 5510 fi
alpar@9 5511 fi
alpar@9 5512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
alpar@9 5513 if test -n "$ac_ct_RANLIB"; then
alpar@9 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
alpar@9 5515 $as_echo "$ac_ct_RANLIB" >&6; }
alpar@9 5516 else
alpar@9 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 5518 $as_echo "no" >&6; }
alpar@9 5519 fi
alpar@9 5520
alpar@9 5521 if test "x$ac_ct_RANLIB" = x; then
alpar@9 5522 RANLIB=":"
alpar@9 5523 else
alpar@9 5524 case $cross_compiling:$ac_tool_warned in
alpar@9 5525 yes:)
alpar@9 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 5527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 5528 ac_tool_warned=yes ;;
alpar@9 5529 esac
alpar@9 5530 RANLIB=$ac_ct_RANLIB
alpar@9 5531 fi
alpar@9 5532 else
alpar@9 5533 RANLIB="$ac_cv_prog_RANLIB"
alpar@9 5534 fi
alpar@9 5535
alpar@9 5536 test -z "$RANLIB" && RANLIB=:
alpar@9 5537
alpar@9 5538
alpar@9 5539
alpar@9 5540
alpar@9 5541
alpar@9 5542
alpar@9 5543 # Determine commands to create old-style static archives.
alpar@9 5544 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
alpar@9 5545 old_postinstall_cmds='chmod 644 $oldlib'
alpar@9 5546 old_postuninstall_cmds=
alpar@9 5547
alpar@9 5548 if test -n "$RANLIB"; then
alpar@9 5549 case $host_os in
alpar@9 5550 openbsd*)
alpar@9 5551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
alpar@9 5552 ;;
alpar@9 5553 *)
alpar@9 5554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
alpar@9 5555 ;;
alpar@9 5556 esac
alpar@9 5557 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
alpar@9 5558 fi
alpar@9 5559
alpar@9 5560 case $host_os in
alpar@9 5561 darwin*)
alpar@9 5562 lock_old_archive_extraction=yes ;;
alpar@9 5563 *)
alpar@9 5564 lock_old_archive_extraction=no ;;
alpar@9 5565 esac
alpar@9 5566
alpar@9 5567
alpar@9 5568
alpar@9 5569
alpar@9 5570
alpar@9 5571
alpar@9 5572
alpar@9 5573
alpar@9 5574
alpar@9 5575
alpar@9 5576
alpar@9 5577
alpar@9 5578
alpar@9 5579
alpar@9 5580
alpar@9 5581
alpar@9 5582
alpar@9 5583
alpar@9 5584
alpar@9 5585
alpar@9 5586
alpar@9 5587
alpar@9 5588
alpar@9 5589
alpar@9 5590
alpar@9 5591
alpar@9 5592
alpar@9 5593
alpar@9 5594
alpar@9 5595
alpar@9 5596
alpar@9 5597
alpar@9 5598
alpar@9 5599
alpar@9 5600
alpar@9 5601
alpar@9 5602
alpar@9 5603
alpar@9 5604
alpar@9 5605 # If no C compiler was specified, use CC.
alpar@9 5606 LTCC=${LTCC-"$CC"}
alpar@9 5607
alpar@9 5608 # If no C compiler flags were specified, use CFLAGS.
alpar@9 5609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
alpar@9 5610
alpar@9 5611 # Allow CC to be a program name with arguments.
alpar@9 5612 compiler=$CC
alpar@9 5613
alpar@9 5614
alpar@9 5615 # Check for command to grab the raw symbol name followed by C symbol from nm.
alpar@9 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
alpar@9 5617 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
alpar@9 5618 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
alpar@9 5619 $as_echo_n "(cached) " >&6
alpar@9 5620 else
alpar@9 5621
alpar@9 5622 # These are sane defaults that work on at least a few old systems.
alpar@9 5623 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
alpar@9 5624
alpar@9 5625 # Character class describing NM global symbol codes.
alpar@9 5626 symcode='[BCDEGRST]'
alpar@9 5627
alpar@9 5628 # Regexp to match symbols that can be accessed directly from C.
alpar@9 5629 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
alpar@9 5630
alpar@9 5631 # Define system-specific variables.
alpar@9 5632 case $host_os in
alpar@9 5633 aix*)
alpar@9 5634 symcode='[BCDT]'
alpar@9 5635 ;;
alpar@9 5636 cygwin* | mingw* | pw32* | cegcc*)
alpar@9 5637 symcode='[ABCDGISTW]'
alpar@9 5638 ;;
alpar@9 5639 hpux*)
alpar@9 5640 if test "$host_cpu" = ia64; then
alpar@9 5641 symcode='[ABCDEGRST]'
alpar@9 5642 fi
alpar@9 5643 ;;
alpar@9 5644 irix* | nonstopux*)
alpar@9 5645 symcode='[BCDEGRST]'
alpar@9 5646 ;;
alpar@9 5647 osf*)
alpar@9 5648 symcode='[BCDEGQRST]'
alpar@9 5649 ;;
alpar@9 5650 solaris*)
alpar@9 5651 symcode='[BDRT]'
alpar@9 5652 ;;
alpar@9 5653 sco3.2v5*)
alpar@9 5654 symcode='[DT]'
alpar@9 5655 ;;
alpar@9 5656 sysv4.2uw2*)
alpar@9 5657 symcode='[DT]'
alpar@9 5658 ;;
alpar@9 5659 sysv5* | sco5v6* | unixware* | OpenUNIX*)
alpar@9 5660 symcode='[ABDT]'
alpar@9 5661 ;;
alpar@9 5662 sysv4)
alpar@9 5663 symcode='[DFNSTU]'
alpar@9 5664 ;;
alpar@9 5665 esac
alpar@9 5666
alpar@9 5667 # If we're using GNU nm, then use its standard symbol codes.
alpar@9 5668 case `$NM -V 2>&1` in
alpar@9 5669 *GNU* | *'with BFD'*)
alpar@9 5670 symcode='[ABCDGIRSTW]' ;;
alpar@9 5671 esac
alpar@9 5672
alpar@9 5673 # Transform an extracted symbol line into a proper C declaration.
alpar@9 5674 # Some systems (esp. on ia64) link data and code symbols differently,
alpar@9 5675 # so use this general approach.
alpar@9 5676 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
alpar@9 5677
alpar@9 5678 # Transform an extracted symbol line into symbol name and symbol address
alpar@9 5679 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
alpar@9 5680 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'"
alpar@9 5681
alpar@9 5682 # Handle CRLF in mingw tool chain
alpar@9 5683 opt_cr=
alpar@9 5684 case $build_os in
alpar@9 5685 mingw*)
alpar@9 5686 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
alpar@9 5687 ;;
alpar@9 5688 esac
alpar@9 5689
alpar@9 5690 # Try without a prefix underscore, then with it.
alpar@9 5691 for ac_symprfx in "" "_"; do
alpar@9 5692
alpar@9 5693 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
alpar@9 5694 symxfrm="\\1 $ac_symprfx\\2 \\2"
alpar@9 5695
alpar@9 5696 # Write the raw and C identifiers.
alpar@9 5697 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
alpar@9 5698 # Fake it for dumpbin and say T for any non-static function
alpar@9 5699 # and D for any global variable.
alpar@9 5700 # Also find C++ and __fastcall symbols from MSVC++,
alpar@9 5701 # which start with @ or ?.
alpar@9 5702 lt_cv_sys_global_symbol_pipe="$AWK '"\
alpar@9 5703 " {last_section=section; section=\$ 3};"\
alpar@9 5704 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
alpar@9 5705 " \$ 0!~/External *\|/{next};"\
alpar@9 5706 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
alpar@9 5707 " {if(hide[section]) next};"\
alpar@9 5708 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
alpar@9 5709 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
alpar@9 5710 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
alpar@9 5711 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
alpar@9 5712 " ' prfx=^$ac_symprfx"
alpar@9 5713 else
alpar@9 5714 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
alpar@9 5715 fi
alpar@9 5716
alpar@9 5717 # Check to see that the pipe works correctly.
alpar@9 5718 pipe_works=no
alpar@9 5719
alpar@9 5720 rm -f conftest*
alpar@9 5721 cat > conftest.$ac_ext <<_LT_EOF
alpar@9 5722 #ifdef __cplusplus
alpar@9 5723 extern "C" {
alpar@9 5724 #endif
alpar@9 5725 char nm_test_var;
alpar@9 5726 void nm_test_func(void);
alpar@9 5727 void nm_test_func(void){}
alpar@9 5728 #ifdef __cplusplus
alpar@9 5729 }
alpar@9 5730 #endif
alpar@9 5731 int main(){nm_test_var='a';nm_test_func();return(0);}
alpar@9 5732 _LT_EOF
alpar@9 5733
alpar@9 5734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
alpar@9 5735 (eval $ac_compile) 2>&5
alpar@9 5736 ac_status=$?
alpar@9 5737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 5738 test $ac_status = 0; }; then
alpar@9 5739 # Now try to grab the symbols.
alpar@9 5740 nlist=conftest.nm
alpar@9 5741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
alpar@9 5742 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
alpar@9 5743 ac_status=$?
alpar@9 5744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 5745 test $ac_status = 0; } && test -s "$nlist"; then
alpar@9 5746 # Try sorting and uniquifying the output.
alpar@9 5747 if sort "$nlist" | uniq > "$nlist"T; then
alpar@9 5748 mv -f "$nlist"T "$nlist"
alpar@9 5749 else
alpar@9 5750 rm -f "$nlist"T
alpar@9 5751 fi
alpar@9 5752
alpar@9 5753 # Make sure that we snagged all the symbols we need.
alpar@9 5754 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
alpar@9 5755 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
alpar@9 5756 cat <<_LT_EOF > conftest.$ac_ext
alpar@9 5757 #ifdef __cplusplus
alpar@9 5758 extern "C" {
alpar@9 5759 #endif
alpar@9 5760
alpar@9 5761 _LT_EOF
alpar@9 5762 # Now generate the symbol file.
alpar@9 5763 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
alpar@9 5764
alpar@9 5765 cat <<_LT_EOF >> conftest.$ac_ext
alpar@9 5766
alpar@9 5767 /* The mapping between symbol names and symbols. */
alpar@9 5768 const struct {
alpar@9 5769 const char *name;
alpar@9 5770 void *address;
alpar@9 5771 }
alpar@9 5772 lt__PROGRAM__LTX_preloaded_symbols[] =
alpar@9 5773 {
alpar@9 5774 { "@PROGRAM@", (void *) 0 },
alpar@9 5775 _LT_EOF
alpar@9 5776 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
alpar@9 5777 cat <<\_LT_EOF >> conftest.$ac_ext
alpar@9 5778 {0, (void *) 0}
alpar@9 5779 };
alpar@9 5780
alpar@9 5781 /* This works around a problem in FreeBSD linker */
alpar@9 5782 #ifdef FREEBSD_WORKAROUND
alpar@9 5783 static const void *lt_preloaded_setup() {
alpar@9 5784 return lt__PROGRAM__LTX_preloaded_symbols;
alpar@9 5785 }
alpar@9 5786 #endif
alpar@9 5787
alpar@9 5788 #ifdef __cplusplus
alpar@9 5789 }
alpar@9 5790 #endif
alpar@9 5791 _LT_EOF
alpar@9 5792 # Now try linking the two files.
alpar@9 5793 mv conftest.$ac_objext conftstm.$ac_objext
alpar@9 5794 lt_save_LIBS="$LIBS"
alpar@9 5795 lt_save_CFLAGS="$CFLAGS"
alpar@9 5796 LIBS="conftstm.$ac_objext"
alpar@9 5797 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
alpar@9 5798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
alpar@9 5799 (eval $ac_link) 2>&5
alpar@9 5800 ac_status=$?
alpar@9 5801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 5802 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
alpar@9 5803 pipe_works=yes
alpar@9 5804 fi
alpar@9 5805 LIBS="$lt_save_LIBS"
alpar@9 5806 CFLAGS="$lt_save_CFLAGS"
alpar@9 5807 else
alpar@9 5808 echo "cannot find nm_test_func in $nlist" >&5
alpar@9 5809 fi
alpar@9 5810 else
alpar@9 5811 echo "cannot find nm_test_var in $nlist" >&5
alpar@9 5812 fi
alpar@9 5813 else
alpar@9 5814 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
alpar@9 5815 fi
alpar@9 5816 else
alpar@9 5817 echo "$progname: failed program was:" >&5
alpar@9 5818 cat conftest.$ac_ext >&5
alpar@9 5819 fi
alpar@9 5820 rm -rf conftest* conftst*
alpar@9 5821
alpar@9 5822 # Do not use the global_symbol_pipe unless it works.
alpar@9 5823 if test "$pipe_works" = yes; then
alpar@9 5824 break
alpar@9 5825 else
alpar@9 5826 lt_cv_sys_global_symbol_pipe=
alpar@9 5827 fi
alpar@9 5828 done
alpar@9 5829
alpar@9 5830 fi
alpar@9 5831
alpar@9 5832 if test -z "$lt_cv_sys_global_symbol_pipe"; then
alpar@9 5833 lt_cv_sys_global_symbol_to_cdecl=
alpar@9 5834 fi
alpar@9 5835 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
alpar@9 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
alpar@9 5837 $as_echo "failed" >&6; }
alpar@9 5838 else
alpar@9 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
alpar@9 5840 $as_echo "ok" >&6; }
alpar@9 5841 fi
alpar@9 5842
alpar@9 5843
alpar@9 5844
alpar@9 5845
alpar@9 5846
alpar@9 5847
alpar@9 5848
alpar@9 5849
alpar@9 5850
alpar@9 5851
alpar@9 5852
alpar@9 5853
alpar@9 5854
alpar@9 5855
alpar@9 5856
alpar@9 5857
alpar@9 5858
alpar@9 5859
alpar@9 5860
alpar@9 5861
alpar@9 5862
alpar@9 5863
alpar@9 5864
alpar@9 5865 # Check whether --enable-libtool-lock was given.
alpar@9 5866 if test "${enable_libtool_lock+set}" = set; then :
alpar@9 5867 enableval=$enable_libtool_lock;
alpar@9 5868 fi
alpar@9 5869
alpar@9 5870 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
alpar@9 5871
alpar@9 5872 # Some flags need to be propagated to the compiler or linker for good
alpar@9 5873 # libtool support.
alpar@9 5874 case $host in
alpar@9 5875 ia64-*-hpux*)
alpar@9 5876 # Find out which ABI we are using.
alpar@9 5877 echo 'int i;' > conftest.$ac_ext
alpar@9 5878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
alpar@9 5879 (eval $ac_compile) 2>&5
alpar@9 5880 ac_status=$?
alpar@9 5881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 5882 test $ac_status = 0; }; then
alpar@9 5883 case `/usr/bin/file conftest.$ac_objext` in
alpar@9 5884 *ELF-32*)
alpar@9 5885 HPUX_IA64_MODE="32"
alpar@9 5886 ;;
alpar@9 5887 *ELF-64*)
alpar@9 5888 HPUX_IA64_MODE="64"
alpar@9 5889 ;;
alpar@9 5890 esac
alpar@9 5891 fi
alpar@9 5892 rm -rf conftest*
alpar@9 5893 ;;
alpar@9 5894 *-*-irix6*)
alpar@9 5895 # Find out which ABI we are using.
alpar@9 5896 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
alpar@9 5897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
alpar@9 5898 (eval $ac_compile) 2>&5
alpar@9 5899 ac_status=$?
alpar@9 5900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 5901 test $ac_status = 0; }; then
alpar@9 5902 if test "$lt_cv_prog_gnu_ld" = yes; then
alpar@9 5903 case `/usr/bin/file conftest.$ac_objext` in
alpar@9 5904 *32-bit*)
alpar@9 5905 LD="${LD-ld} -melf32bsmip"
alpar@9 5906 ;;
alpar@9 5907 *N32*)
alpar@9 5908 LD="${LD-ld} -melf32bmipn32"
alpar@9 5909 ;;
alpar@9 5910 *64-bit*)
alpar@9 5911 LD="${LD-ld} -melf64bmip"
alpar@9 5912 ;;
alpar@9 5913 esac
alpar@9 5914 else
alpar@9 5915 case `/usr/bin/file conftest.$ac_objext` in
alpar@9 5916 *32-bit*)
alpar@9 5917 LD="${LD-ld} -32"
alpar@9 5918 ;;
alpar@9 5919 *N32*)
alpar@9 5920 LD="${LD-ld} -n32"
alpar@9 5921 ;;
alpar@9 5922 *64-bit*)
alpar@9 5923 LD="${LD-ld} -64"
alpar@9 5924 ;;
alpar@9 5925 esac
alpar@9 5926 fi
alpar@9 5927 fi
alpar@9 5928 rm -rf conftest*
alpar@9 5929 ;;
alpar@9 5930
alpar@9 5931 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
alpar@9 5932 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
alpar@9 5933 # Find out which ABI we are using.
alpar@9 5934 echo 'int i;' > conftest.$ac_ext
alpar@9 5935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
alpar@9 5936 (eval $ac_compile) 2>&5
alpar@9 5937 ac_status=$?
alpar@9 5938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 5939 test $ac_status = 0; }; then
alpar@9 5940 case `/usr/bin/file conftest.o` in
alpar@9 5941 *32-bit*)
alpar@9 5942 case $host in
alpar@9 5943 x86_64-*kfreebsd*-gnu)
alpar@9 5944 LD="${LD-ld} -m elf_i386_fbsd"
alpar@9 5945 ;;
alpar@9 5946 x86_64-*linux*)
alpar@9 5947 LD="${LD-ld} -m elf_i386"
alpar@9 5948 ;;
alpar@9 5949 ppc64-*linux*|powerpc64-*linux*)
alpar@9 5950 LD="${LD-ld} -m elf32ppclinux"
alpar@9 5951 ;;
alpar@9 5952 s390x-*linux*)
alpar@9 5953 LD="${LD-ld} -m elf_s390"
alpar@9 5954 ;;
alpar@9 5955 sparc64-*linux*)
alpar@9 5956 LD="${LD-ld} -m elf32_sparc"
alpar@9 5957 ;;
alpar@9 5958 esac
alpar@9 5959 ;;
alpar@9 5960 *64-bit*)
alpar@9 5961 case $host in
alpar@9 5962 x86_64-*kfreebsd*-gnu)
alpar@9 5963 LD="${LD-ld} -m elf_x86_64_fbsd"
alpar@9 5964 ;;
alpar@9 5965 x86_64-*linux*)
alpar@9 5966 LD="${LD-ld} -m elf_x86_64"
alpar@9 5967 ;;
alpar@9 5968 ppc*-*linux*|powerpc*-*linux*)
alpar@9 5969 LD="${LD-ld} -m elf64ppc"
alpar@9 5970 ;;
alpar@9 5971 s390*-*linux*|s390*-*tpf*)
alpar@9 5972 LD="${LD-ld} -m elf64_s390"
alpar@9 5973 ;;
alpar@9 5974 sparc*-*linux*)
alpar@9 5975 LD="${LD-ld} -m elf64_sparc"
alpar@9 5976 ;;
alpar@9 5977 esac
alpar@9 5978 ;;
alpar@9 5979 esac
alpar@9 5980 fi
alpar@9 5981 rm -rf conftest*
alpar@9 5982 ;;
alpar@9 5983
alpar@9 5984 *-*-sco3.2v5*)
alpar@9 5985 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
alpar@9 5986 SAVE_CFLAGS="$CFLAGS"
alpar@9 5987 CFLAGS="$CFLAGS -belf"
alpar@9 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
alpar@9 5989 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
alpar@9 5990 if test "${lt_cv_cc_needs_belf+set}" = set; then :
alpar@9 5991 $as_echo_n "(cached) " >&6
alpar@9 5992 else
alpar@9 5993 ac_ext=c
alpar@9 5994 ac_cpp='$CPP $CPPFLAGS'
alpar@9 5995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
alpar@9 5996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
alpar@9 5997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
alpar@9 5998
alpar@9 5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 6000 /* end confdefs.h. */
alpar@9 6001
alpar@9 6002 int
alpar@9 6003 main ()
alpar@9 6004 {
alpar@9 6005
alpar@9 6006 ;
alpar@9 6007 return 0;
alpar@9 6008 }
alpar@9 6009 _ACEOF
alpar@9 6010 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 6011 lt_cv_cc_needs_belf=yes
alpar@9 6012 else
alpar@9 6013 lt_cv_cc_needs_belf=no
alpar@9 6014 fi
alpar@9 6015 rm -f core conftest.err conftest.$ac_objext \
alpar@9 6016 conftest$ac_exeext conftest.$ac_ext
alpar@9 6017 ac_ext=c
alpar@9 6018 ac_cpp='$CPP $CPPFLAGS'
alpar@9 6019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
alpar@9 6020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
alpar@9 6021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
alpar@9 6022
alpar@9 6023 fi
alpar@9 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
alpar@9 6025 $as_echo "$lt_cv_cc_needs_belf" >&6; }
alpar@9 6026 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
alpar@9 6027 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
alpar@9 6028 CFLAGS="$SAVE_CFLAGS"
alpar@9 6029 fi
alpar@9 6030 ;;
alpar@9 6031 sparc*-*solaris*)
alpar@9 6032 # Find out which ABI we are using.
alpar@9 6033 echo 'int i;' > conftest.$ac_ext
alpar@9 6034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
alpar@9 6035 (eval $ac_compile) 2>&5
alpar@9 6036 ac_status=$?
alpar@9 6037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 6038 test $ac_status = 0; }; then
alpar@9 6039 case `/usr/bin/file conftest.o` in
alpar@9 6040 *64-bit*)
alpar@9 6041 case $lt_cv_prog_gnu_ld in
alpar@9 6042 yes*) LD="${LD-ld} -m elf64_sparc" ;;
alpar@9 6043 *)
alpar@9 6044 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
alpar@9 6045 LD="${LD-ld} -64"
alpar@9 6046 fi
alpar@9 6047 ;;
alpar@9 6048 esac
alpar@9 6049 ;;
alpar@9 6050 esac
alpar@9 6051 fi
alpar@9 6052 rm -rf conftest*
alpar@9 6053 ;;
alpar@9 6054 esac
alpar@9 6055
alpar@9 6056 need_locks="$enable_libtool_lock"
alpar@9 6057
alpar@9 6058
alpar@9 6059 case $host_os in
alpar@9 6060 rhapsody* | darwin*)
alpar@9 6061 if test -n "$ac_tool_prefix"; then
alpar@9 6062 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
alpar@9 6063 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
alpar@9 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 6065 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 6066 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
alpar@9 6067 $as_echo_n "(cached) " >&6
alpar@9 6068 else
alpar@9 6069 if test -n "$DSYMUTIL"; then
alpar@9 6070 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
alpar@9 6071 else
alpar@9 6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 6073 for as_dir in $PATH
alpar@9 6074 do
alpar@9 6075 IFS=$as_save_IFS
alpar@9 6076 test -z "$as_dir" && as_dir=.
alpar@9 6077 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 6079 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
alpar@9 6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 6081 break 2
alpar@9 6082 fi
alpar@9 6083 done
alpar@9 6084 done
alpar@9 6085 IFS=$as_save_IFS
alpar@9 6086
alpar@9 6087 fi
alpar@9 6088 fi
alpar@9 6089 DSYMUTIL=$ac_cv_prog_DSYMUTIL
alpar@9 6090 if test -n "$DSYMUTIL"; then
alpar@9 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
alpar@9 6092 $as_echo "$DSYMUTIL" >&6; }
alpar@9 6093 else
alpar@9 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 6095 $as_echo "no" >&6; }
alpar@9 6096 fi
alpar@9 6097
alpar@9 6098
alpar@9 6099 fi
alpar@9 6100 if test -z "$ac_cv_prog_DSYMUTIL"; then
alpar@9 6101 ac_ct_DSYMUTIL=$DSYMUTIL
alpar@9 6102 # Extract the first word of "dsymutil", so it can be a program name with args.
alpar@9 6103 set dummy dsymutil; ac_word=$2
alpar@9 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 6105 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 6106 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
alpar@9 6107 $as_echo_n "(cached) " >&6
alpar@9 6108 else
alpar@9 6109 if test -n "$ac_ct_DSYMUTIL"; then
alpar@9 6110 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
alpar@9 6111 else
alpar@9 6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 6113 for as_dir in $PATH
alpar@9 6114 do
alpar@9 6115 IFS=$as_save_IFS
alpar@9 6116 test -z "$as_dir" && as_dir=.
alpar@9 6117 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 6118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 6119 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
alpar@9 6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 6121 break 2
alpar@9 6122 fi
alpar@9 6123 done
alpar@9 6124 done
alpar@9 6125 IFS=$as_save_IFS
alpar@9 6126
alpar@9 6127 fi
alpar@9 6128 fi
alpar@9 6129 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
alpar@9 6130 if test -n "$ac_ct_DSYMUTIL"; then
alpar@9 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
alpar@9 6132 $as_echo "$ac_ct_DSYMUTIL" >&6; }
alpar@9 6133 else
alpar@9 6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 6135 $as_echo "no" >&6; }
alpar@9 6136 fi
alpar@9 6137
alpar@9 6138 if test "x$ac_ct_DSYMUTIL" = x; then
alpar@9 6139 DSYMUTIL=":"
alpar@9 6140 else
alpar@9 6141 case $cross_compiling:$ac_tool_warned in
alpar@9 6142 yes:)
alpar@9 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 6144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 6145 ac_tool_warned=yes ;;
alpar@9 6146 esac
alpar@9 6147 DSYMUTIL=$ac_ct_DSYMUTIL
alpar@9 6148 fi
alpar@9 6149 else
alpar@9 6150 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
alpar@9 6151 fi
alpar@9 6152
alpar@9 6153 if test -n "$ac_tool_prefix"; then
alpar@9 6154 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
alpar@9 6155 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
alpar@9 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 6157 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 6158 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
alpar@9 6159 $as_echo_n "(cached) " >&6
alpar@9 6160 else
alpar@9 6161 if test -n "$NMEDIT"; then
alpar@9 6162 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
alpar@9 6163 else
alpar@9 6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 6165 for as_dir in $PATH
alpar@9 6166 do
alpar@9 6167 IFS=$as_save_IFS
alpar@9 6168 test -z "$as_dir" && as_dir=.
alpar@9 6169 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 6171 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
alpar@9 6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 6173 break 2
alpar@9 6174 fi
alpar@9 6175 done
alpar@9 6176 done
alpar@9 6177 IFS=$as_save_IFS
alpar@9 6178
alpar@9 6179 fi
alpar@9 6180 fi
alpar@9 6181 NMEDIT=$ac_cv_prog_NMEDIT
alpar@9 6182 if test -n "$NMEDIT"; then
alpar@9 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
alpar@9 6184 $as_echo "$NMEDIT" >&6; }
alpar@9 6185 else
alpar@9 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 6187 $as_echo "no" >&6; }
alpar@9 6188 fi
alpar@9 6189
alpar@9 6190
alpar@9 6191 fi
alpar@9 6192 if test -z "$ac_cv_prog_NMEDIT"; then
alpar@9 6193 ac_ct_NMEDIT=$NMEDIT
alpar@9 6194 # Extract the first word of "nmedit", so it can be a program name with args.
alpar@9 6195 set dummy nmedit; ac_word=$2
alpar@9 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 6197 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 6198 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
alpar@9 6199 $as_echo_n "(cached) " >&6
alpar@9 6200 else
alpar@9 6201 if test -n "$ac_ct_NMEDIT"; then
alpar@9 6202 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
alpar@9 6203 else
alpar@9 6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 6205 for as_dir in $PATH
alpar@9 6206 do
alpar@9 6207 IFS=$as_save_IFS
alpar@9 6208 test -z "$as_dir" && as_dir=.
alpar@9 6209 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 6211 ac_cv_prog_ac_ct_NMEDIT="nmedit"
alpar@9 6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 6213 break 2
alpar@9 6214 fi
alpar@9 6215 done
alpar@9 6216 done
alpar@9 6217 IFS=$as_save_IFS
alpar@9 6218
alpar@9 6219 fi
alpar@9 6220 fi
alpar@9 6221 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
alpar@9 6222 if test -n "$ac_ct_NMEDIT"; then
alpar@9 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
alpar@9 6224 $as_echo "$ac_ct_NMEDIT" >&6; }
alpar@9 6225 else
alpar@9 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 6227 $as_echo "no" >&6; }
alpar@9 6228 fi
alpar@9 6229
alpar@9 6230 if test "x$ac_ct_NMEDIT" = x; then
alpar@9 6231 NMEDIT=":"
alpar@9 6232 else
alpar@9 6233 case $cross_compiling:$ac_tool_warned in
alpar@9 6234 yes:)
alpar@9 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 6236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 6237 ac_tool_warned=yes ;;
alpar@9 6238 esac
alpar@9 6239 NMEDIT=$ac_ct_NMEDIT
alpar@9 6240 fi
alpar@9 6241 else
alpar@9 6242 NMEDIT="$ac_cv_prog_NMEDIT"
alpar@9 6243 fi
alpar@9 6244
alpar@9 6245 if test -n "$ac_tool_prefix"; then
alpar@9 6246 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
alpar@9 6247 set dummy ${ac_tool_prefix}lipo; ac_word=$2
alpar@9 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 6249 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 6250 if test "${ac_cv_prog_LIPO+set}" = set; then :
alpar@9 6251 $as_echo_n "(cached) " >&6
alpar@9 6252 else
alpar@9 6253 if test -n "$LIPO"; then
alpar@9 6254 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
alpar@9 6255 else
alpar@9 6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 6257 for as_dir in $PATH
alpar@9 6258 do
alpar@9 6259 IFS=$as_save_IFS
alpar@9 6260 test -z "$as_dir" && as_dir=.
alpar@9 6261 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 6263 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
alpar@9 6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 6265 break 2
alpar@9 6266 fi
alpar@9 6267 done
alpar@9 6268 done
alpar@9 6269 IFS=$as_save_IFS
alpar@9 6270
alpar@9 6271 fi
alpar@9 6272 fi
alpar@9 6273 LIPO=$ac_cv_prog_LIPO
alpar@9 6274 if test -n "$LIPO"; then
alpar@9 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
alpar@9 6276 $as_echo "$LIPO" >&6; }
alpar@9 6277 else
alpar@9 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 6279 $as_echo "no" >&6; }
alpar@9 6280 fi
alpar@9 6281
alpar@9 6282
alpar@9 6283 fi
alpar@9 6284 if test -z "$ac_cv_prog_LIPO"; then
alpar@9 6285 ac_ct_LIPO=$LIPO
alpar@9 6286 # Extract the first word of "lipo", so it can be a program name with args.
alpar@9 6287 set dummy lipo; ac_word=$2
alpar@9 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 6289 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 6290 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
alpar@9 6291 $as_echo_n "(cached) " >&6
alpar@9 6292 else
alpar@9 6293 if test -n "$ac_ct_LIPO"; then
alpar@9 6294 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
alpar@9 6295 else
alpar@9 6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 6297 for as_dir in $PATH
alpar@9 6298 do
alpar@9 6299 IFS=$as_save_IFS
alpar@9 6300 test -z "$as_dir" && as_dir=.
alpar@9 6301 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 6303 ac_cv_prog_ac_ct_LIPO="lipo"
alpar@9 6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 6305 break 2
alpar@9 6306 fi
alpar@9 6307 done
alpar@9 6308 done
alpar@9 6309 IFS=$as_save_IFS
alpar@9 6310
alpar@9 6311 fi
alpar@9 6312 fi
alpar@9 6313 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
alpar@9 6314 if test -n "$ac_ct_LIPO"; then
alpar@9 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
alpar@9 6316 $as_echo "$ac_ct_LIPO" >&6; }
alpar@9 6317 else
alpar@9 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 6319 $as_echo "no" >&6; }
alpar@9 6320 fi
alpar@9 6321
alpar@9 6322 if test "x$ac_ct_LIPO" = x; then
alpar@9 6323 LIPO=":"
alpar@9 6324 else
alpar@9 6325 case $cross_compiling:$ac_tool_warned in
alpar@9 6326 yes:)
alpar@9 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 6328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 6329 ac_tool_warned=yes ;;
alpar@9 6330 esac
alpar@9 6331 LIPO=$ac_ct_LIPO
alpar@9 6332 fi
alpar@9 6333 else
alpar@9 6334 LIPO="$ac_cv_prog_LIPO"
alpar@9 6335 fi
alpar@9 6336
alpar@9 6337 if test -n "$ac_tool_prefix"; then
alpar@9 6338 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
alpar@9 6339 set dummy ${ac_tool_prefix}otool; ac_word=$2
alpar@9 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 6341 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 6342 if test "${ac_cv_prog_OTOOL+set}" = set; then :
alpar@9 6343 $as_echo_n "(cached) " >&6
alpar@9 6344 else
alpar@9 6345 if test -n "$OTOOL"; then
alpar@9 6346 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
alpar@9 6347 else
alpar@9 6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 6349 for as_dir in $PATH
alpar@9 6350 do
alpar@9 6351 IFS=$as_save_IFS
alpar@9 6352 test -z "$as_dir" && as_dir=.
alpar@9 6353 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 6355 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
alpar@9 6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 6357 break 2
alpar@9 6358 fi
alpar@9 6359 done
alpar@9 6360 done
alpar@9 6361 IFS=$as_save_IFS
alpar@9 6362
alpar@9 6363 fi
alpar@9 6364 fi
alpar@9 6365 OTOOL=$ac_cv_prog_OTOOL
alpar@9 6366 if test -n "$OTOOL"; then
alpar@9 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
alpar@9 6368 $as_echo "$OTOOL" >&6; }
alpar@9 6369 else
alpar@9 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 6371 $as_echo "no" >&6; }
alpar@9 6372 fi
alpar@9 6373
alpar@9 6374
alpar@9 6375 fi
alpar@9 6376 if test -z "$ac_cv_prog_OTOOL"; then
alpar@9 6377 ac_ct_OTOOL=$OTOOL
alpar@9 6378 # Extract the first word of "otool", so it can be a program name with args.
alpar@9 6379 set dummy otool; ac_word=$2
alpar@9 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 6381 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 6382 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
alpar@9 6383 $as_echo_n "(cached) " >&6
alpar@9 6384 else
alpar@9 6385 if test -n "$ac_ct_OTOOL"; then
alpar@9 6386 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
alpar@9 6387 else
alpar@9 6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 6389 for as_dir in $PATH
alpar@9 6390 do
alpar@9 6391 IFS=$as_save_IFS
alpar@9 6392 test -z "$as_dir" && as_dir=.
alpar@9 6393 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 6395 ac_cv_prog_ac_ct_OTOOL="otool"
alpar@9 6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 6397 break 2
alpar@9 6398 fi
alpar@9 6399 done
alpar@9 6400 done
alpar@9 6401 IFS=$as_save_IFS
alpar@9 6402
alpar@9 6403 fi
alpar@9 6404 fi
alpar@9 6405 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
alpar@9 6406 if test -n "$ac_ct_OTOOL"; then
alpar@9 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
alpar@9 6408 $as_echo "$ac_ct_OTOOL" >&6; }
alpar@9 6409 else
alpar@9 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 6411 $as_echo "no" >&6; }
alpar@9 6412 fi
alpar@9 6413
alpar@9 6414 if test "x$ac_ct_OTOOL" = x; then
alpar@9 6415 OTOOL=":"
alpar@9 6416 else
alpar@9 6417 case $cross_compiling:$ac_tool_warned in
alpar@9 6418 yes:)
alpar@9 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 6420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 6421 ac_tool_warned=yes ;;
alpar@9 6422 esac
alpar@9 6423 OTOOL=$ac_ct_OTOOL
alpar@9 6424 fi
alpar@9 6425 else
alpar@9 6426 OTOOL="$ac_cv_prog_OTOOL"
alpar@9 6427 fi
alpar@9 6428
alpar@9 6429 if test -n "$ac_tool_prefix"; then
alpar@9 6430 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
alpar@9 6431 set dummy ${ac_tool_prefix}otool64; ac_word=$2
alpar@9 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 6433 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 6434 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
alpar@9 6435 $as_echo_n "(cached) " >&6
alpar@9 6436 else
alpar@9 6437 if test -n "$OTOOL64"; then
alpar@9 6438 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
alpar@9 6439 else
alpar@9 6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 6441 for as_dir in $PATH
alpar@9 6442 do
alpar@9 6443 IFS=$as_save_IFS
alpar@9 6444 test -z "$as_dir" && as_dir=.
alpar@9 6445 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 6447 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
alpar@9 6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 6449 break 2
alpar@9 6450 fi
alpar@9 6451 done
alpar@9 6452 done
alpar@9 6453 IFS=$as_save_IFS
alpar@9 6454
alpar@9 6455 fi
alpar@9 6456 fi
alpar@9 6457 OTOOL64=$ac_cv_prog_OTOOL64
alpar@9 6458 if test -n "$OTOOL64"; then
alpar@9 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
alpar@9 6460 $as_echo "$OTOOL64" >&6; }
alpar@9 6461 else
alpar@9 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 6463 $as_echo "no" >&6; }
alpar@9 6464 fi
alpar@9 6465
alpar@9 6466
alpar@9 6467 fi
alpar@9 6468 if test -z "$ac_cv_prog_OTOOL64"; then
alpar@9 6469 ac_ct_OTOOL64=$OTOOL64
alpar@9 6470 # Extract the first word of "otool64", so it can be a program name with args.
alpar@9 6471 set dummy otool64; ac_word=$2
alpar@9 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
alpar@9 6473 $as_echo_n "checking for $ac_word... " >&6; }
alpar@9 6474 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
alpar@9 6475 $as_echo_n "(cached) " >&6
alpar@9 6476 else
alpar@9 6477 if test -n "$ac_ct_OTOOL64"; then
alpar@9 6478 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
alpar@9 6479 else
alpar@9 6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 6481 for as_dir in $PATH
alpar@9 6482 do
alpar@9 6483 IFS=$as_save_IFS
alpar@9 6484 test -z "$as_dir" && as_dir=.
alpar@9 6485 for ac_exec_ext in '' $ac_executable_extensions; do
alpar@9 6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
alpar@9 6487 ac_cv_prog_ac_ct_OTOOL64="otool64"
alpar@9 6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
alpar@9 6489 break 2
alpar@9 6490 fi
alpar@9 6491 done
alpar@9 6492 done
alpar@9 6493 IFS=$as_save_IFS
alpar@9 6494
alpar@9 6495 fi
alpar@9 6496 fi
alpar@9 6497 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
alpar@9 6498 if test -n "$ac_ct_OTOOL64"; then
alpar@9 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
alpar@9 6500 $as_echo "$ac_ct_OTOOL64" >&6; }
alpar@9 6501 else
alpar@9 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 6503 $as_echo "no" >&6; }
alpar@9 6504 fi
alpar@9 6505
alpar@9 6506 if test "x$ac_ct_OTOOL64" = x; then
alpar@9 6507 OTOOL64=":"
alpar@9 6508 else
alpar@9 6509 case $cross_compiling:$ac_tool_warned in
alpar@9 6510 yes:)
alpar@9 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
alpar@9 6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
alpar@9 6513 ac_tool_warned=yes ;;
alpar@9 6514 esac
alpar@9 6515 OTOOL64=$ac_ct_OTOOL64
alpar@9 6516 fi
alpar@9 6517 else
alpar@9 6518 OTOOL64="$ac_cv_prog_OTOOL64"
alpar@9 6519 fi
alpar@9 6520
alpar@9 6521
alpar@9 6522
alpar@9 6523
alpar@9 6524
alpar@9 6525
alpar@9 6526
alpar@9 6527
alpar@9 6528
alpar@9 6529
alpar@9 6530
alpar@9 6531
alpar@9 6532
alpar@9 6533
alpar@9 6534
alpar@9 6535
alpar@9 6536
alpar@9 6537
alpar@9 6538
alpar@9 6539
alpar@9 6540
alpar@9 6541
alpar@9 6542
alpar@9 6543
alpar@9 6544
alpar@9 6545
alpar@9 6546
alpar@9 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
alpar@9 6548 $as_echo_n "checking for -single_module linker flag... " >&6; }
alpar@9 6549 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
alpar@9 6550 $as_echo_n "(cached) " >&6
alpar@9 6551 else
alpar@9 6552 lt_cv_apple_cc_single_mod=no
alpar@9 6553 if test -z "${LT_MULTI_MODULE}"; then
alpar@9 6554 # By default we will add the -single_module flag. You can override
alpar@9 6555 # by either setting the environment variable LT_MULTI_MODULE
alpar@9 6556 # non-empty at configure time, or by adding -multi_module to the
alpar@9 6557 # link flags.
alpar@9 6558 rm -rf libconftest.dylib*
alpar@9 6559 echo "int foo(void){return 1;}" > conftest.c
alpar@9 6560 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
alpar@9 6561 -dynamiclib -Wl,-single_module conftest.c" >&5
alpar@9 6562 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
alpar@9 6563 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
alpar@9 6564 _lt_result=$?
alpar@9 6565 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
alpar@9 6566 lt_cv_apple_cc_single_mod=yes
alpar@9 6567 else
alpar@9 6568 cat conftest.err >&5
alpar@9 6569 fi
alpar@9 6570 rm -rf libconftest.dylib*
alpar@9 6571 rm -f conftest.*
alpar@9 6572 fi
alpar@9 6573 fi
alpar@9 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
alpar@9 6575 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
alpar@9 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
alpar@9 6577 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
alpar@9 6578 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
alpar@9 6579 $as_echo_n "(cached) " >&6
alpar@9 6580 else
alpar@9 6581 lt_cv_ld_exported_symbols_list=no
alpar@9 6582 save_LDFLAGS=$LDFLAGS
alpar@9 6583 echo "_main" > conftest.sym
alpar@9 6584 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
alpar@9 6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 6586 /* end confdefs.h. */
alpar@9 6587
alpar@9 6588 int
alpar@9 6589 main ()
alpar@9 6590 {
alpar@9 6591
alpar@9 6592 ;
alpar@9 6593 return 0;
alpar@9 6594 }
alpar@9 6595 _ACEOF
alpar@9 6596 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 6597 lt_cv_ld_exported_symbols_list=yes
alpar@9 6598 else
alpar@9 6599 lt_cv_ld_exported_symbols_list=no
alpar@9 6600 fi
alpar@9 6601 rm -f core conftest.err conftest.$ac_objext \
alpar@9 6602 conftest$ac_exeext conftest.$ac_ext
alpar@9 6603 LDFLAGS="$save_LDFLAGS"
alpar@9 6604
alpar@9 6605 fi
alpar@9 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
alpar@9 6607 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
alpar@9 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
alpar@9 6609 $as_echo_n "checking for -force_load linker flag... " >&6; }
alpar@9 6610 if test "${lt_cv_ld_force_load+set}" = set; then :
alpar@9 6611 $as_echo_n "(cached) " >&6
alpar@9 6612 else
alpar@9 6613 lt_cv_ld_force_load=no
alpar@9 6614 cat > conftest.c << _LT_EOF
alpar@9 6615 int forced_loaded() { return 2;}
alpar@9 6616 _LT_EOF
alpar@9 6617 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
alpar@9 6618 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
alpar@9 6619 echo "$AR cru libconftest.a conftest.o" >&5
alpar@9 6620 $AR cru libconftest.a conftest.o 2>&5
alpar@9 6621 cat > conftest.c << _LT_EOF
alpar@9 6622 int main() { return 0;}
alpar@9 6623 _LT_EOF
alpar@9 6624 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
alpar@9 6625 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
alpar@9 6626 _lt_result=$?
alpar@9 6627 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
alpar@9 6628 lt_cv_ld_force_load=yes
alpar@9 6629 else
alpar@9 6630 cat conftest.err >&5
alpar@9 6631 fi
alpar@9 6632 rm -f conftest.err libconftest.a conftest conftest.c
alpar@9 6633 rm -rf conftest.dSYM
alpar@9 6634
alpar@9 6635 fi
alpar@9 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
alpar@9 6637 $as_echo "$lt_cv_ld_force_load" >&6; }
alpar@9 6638 case $host_os in
alpar@9 6639 rhapsody* | darwin1.[012])
alpar@9 6640 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
alpar@9 6641 darwin1.*)
alpar@9 6642 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
alpar@9 6643 darwin*) # darwin 5.x on
alpar@9 6644 # if running on 10.5 or later, the deployment target defaults
alpar@9 6645 # to the OS version, if on x86, and 10.4, the deployment
alpar@9 6646 # target defaults to 10.4. Don't you love it?
alpar@9 6647 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
alpar@9 6648 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
alpar@9 6649 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
alpar@9 6650 10.[012]*)
alpar@9 6651 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
alpar@9 6652 10.*)
alpar@9 6653 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
alpar@9 6654 esac
alpar@9 6655 ;;
alpar@9 6656 esac
alpar@9 6657 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
alpar@9 6658 _lt_dar_single_mod='$single_module'
alpar@9 6659 fi
alpar@9 6660 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
alpar@9 6661 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
alpar@9 6662 else
alpar@9 6663 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
alpar@9 6664 fi
alpar@9 6665 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
alpar@9 6666 _lt_dsymutil='~$DSYMUTIL $lib || :'
alpar@9 6667 else
alpar@9 6668 _lt_dsymutil=
alpar@9 6669 fi
alpar@9 6670 ;;
alpar@9 6671 esac
alpar@9 6672
alpar@9 6673 ac_ext=c
alpar@9 6674 ac_cpp='$CPP $CPPFLAGS'
alpar@9 6675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
alpar@9 6676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
alpar@9 6677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
alpar@9 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
alpar@9 6679 $as_echo_n "checking how to run the C preprocessor... " >&6; }
alpar@9 6680 # On Suns, sometimes $CPP names a directory.
alpar@9 6681 if test -n "$CPP" && test -d "$CPP"; then
alpar@9 6682 CPP=
alpar@9 6683 fi
alpar@9 6684 if test -z "$CPP"; then
alpar@9 6685 if test "${ac_cv_prog_CPP+set}" = set; then :
alpar@9 6686 $as_echo_n "(cached) " >&6
alpar@9 6687 else
alpar@9 6688 # Double quotes because CPP needs to be expanded
alpar@9 6689 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
alpar@9 6690 do
alpar@9 6691 ac_preproc_ok=false
alpar@9 6692 for ac_c_preproc_warn_flag in '' yes
alpar@9 6693 do
alpar@9 6694 # Use a header file that comes with gcc, so configuring glibc
alpar@9 6695 # with a fresh cross-compiler works.
alpar@9 6696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
alpar@9 6697 # <limits.h> exists even on freestanding compilers.
alpar@9 6698 # On the NeXT, cc -E runs the code through the compiler's parser,
alpar@9 6699 # not just through cpp. "Syntax error" is here to catch this case.
alpar@9 6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 6701 /* end confdefs.h. */
alpar@9 6702 #ifdef __STDC__
alpar@9 6703 # include <limits.h>
alpar@9 6704 #else
alpar@9 6705 # include <assert.h>
alpar@9 6706 #endif
alpar@9 6707 Syntax error
alpar@9 6708 _ACEOF
alpar@9 6709 if ac_fn_c_try_cpp "$LINENO"; then :
alpar@9 6710
alpar@9 6711 else
alpar@9 6712 # Broken: fails on valid input.
alpar@9 6713 continue
alpar@9 6714 fi
alpar@9 6715 rm -f conftest.err conftest.$ac_ext
alpar@9 6716
alpar@9 6717 # OK, works on sane cases. Now check whether nonexistent headers
alpar@9 6718 # can be detected and how.
alpar@9 6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 6720 /* end confdefs.h. */
alpar@9 6721 #include <ac_nonexistent.h>
alpar@9 6722 _ACEOF
alpar@9 6723 if ac_fn_c_try_cpp "$LINENO"; then :
alpar@9 6724 # Broken: success on invalid input.
alpar@9 6725 continue
alpar@9 6726 else
alpar@9 6727 # Passes both tests.
alpar@9 6728 ac_preproc_ok=:
alpar@9 6729 break
alpar@9 6730 fi
alpar@9 6731 rm -f conftest.err conftest.$ac_ext
alpar@9 6732
alpar@9 6733 done
alpar@9 6734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
alpar@9 6735 rm -f conftest.err conftest.$ac_ext
alpar@9 6736 if $ac_preproc_ok; then :
alpar@9 6737 break
alpar@9 6738 fi
alpar@9 6739
alpar@9 6740 done
alpar@9 6741 ac_cv_prog_CPP=$CPP
alpar@9 6742
alpar@9 6743 fi
alpar@9 6744 CPP=$ac_cv_prog_CPP
alpar@9 6745 else
alpar@9 6746 ac_cv_prog_CPP=$CPP
alpar@9 6747 fi
alpar@9 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
alpar@9 6749 $as_echo "$CPP" >&6; }
alpar@9 6750 ac_preproc_ok=false
alpar@9 6751 for ac_c_preproc_warn_flag in '' yes
alpar@9 6752 do
alpar@9 6753 # Use a header file that comes with gcc, so configuring glibc
alpar@9 6754 # with a fresh cross-compiler works.
alpar@9 6755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
alpar@9 6756 # <limits.h> exists even on freestanding compilers.
alpar@9 6757 # On the NeXT, cc -E runs the code through the compiler's parser,
alpar@9 6758 # not just through cpp. "Syntax error" is here to catch this case.
alpar@9 6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 6760 /* end confdefs.h. */
alpar@9 6761 #ifdef __STDC__
alpar@9 6762 # include <limits.h>
alpar@9 6763 #else
alpar@9 6764 # include <assert.h>
alpar@9 6765 #endif
alpar@9 6766 Syntax error
alpar@9 6767 _ACEOF
alpar@9 6768 if ac_fn_c_try_cpp "$LINENO"; then :
alpar@9 6769
alpar@9 6770 else
alpar@9 6771 # Broken: fails on valid input.
alpar@9 6772 continue
alpar@9 6773 fi
alpar@9 6774 rm -f conftest.err conftest.$ac_ext
alpar@9 6775
alpar@9 6776 # OK, works on sane cases. Now check whether nonexistent headers
alpar@9 6777 # can be detected and how.
alpar@9 6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 6779 /* end confdefs.h. */
alpar@9 6780 #include <ac_nonexistent.h>
alpar@9 6781 _ACEOF
alpar@9 6782 if ac_fn_c_try_cpp "$LINENO"; then :
alpar@9 6783 # Broken: success on invalid input.
alpar@9 6784 continue
alpar@9 6785 else
alpar@9 6786 # Passes both tests.
alpar@9 6787 ac_preproc_ok=:
alpar@9 6788 break
alpar@9 6789 fi
alpar@9 6790 rm -f conftest.err conftest.$ac_ext
alpar@9 6791
alpar@9 6792 done
alpar@9 6793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
alpar@9 6794 rm -f conftest.err conftest.$ac_ext
alpar@9 6795 if $ac_preproc_ok; then :
alpar@9 6796
alpar@9 6797 else
alpar@9 6798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
alpar@9 6799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
alpar@9 6800 as_fn_error "C preprocessor \"$CPP\" fails sanity check
alpar@9 6801 See \`config.log' for more details." "$LINENO" 5; }
alpar@9 6802 fi
alpar@9 6803
alpar@9 6804 ac_ext=c
alpar@9 6805 ac_cpp='$CPP $CPPFLAGS'
alpar@9 6806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
alpar@9 6807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
alpar@9 6808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
alpar@9 6809
alpar@9 6810
alpar@9 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
alpar@9 6812 $as_echo_n "checking for ANSI C header files... " >&6; }
alpar@9 6813 if test "${ac_cv_header_stdc+set}" = set; then :
alpar@9 6814 $as_echo_n "(cached) " >&6
alpar@9 6815 else
alpar@9 6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 6817 /* end confdefs.h. */
alpar@9 6818 #include <stdlib.h>
alpar@9 6819 #include <stdarg.h>
alpar@9 6820 #include <string.h>
alpar@9 6821 #include <float.h>
alpar@9 6822
alpar@9 6823 int
alpar@9 6824 main ()
alpar@9 6825 {
alpar@9 6826
alpar@9 6827 ;
alpar@9 6828 return 0;
alpar@9 6829 }
alpar@9 6830 _ACEOF
alpar@9 6831 if ac_fn_c_try_compile "$LINENO"; then :
alpar@9 6832 ac_cv_header_stdc=yes
alpar@9 6833 else
alpar@9 6834 ac_cv_header_stdc=no
alpar@9 6835 fi
alpar@9 6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
alpar@9 6837
alpar@9 6838 if test $ac_cv_header_stdc = yes; then
alpar@9 6839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
alpar@9 6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 6841 /* end confdefs.h. */
alpar@9 6842 #include <string.h>
alpar@9 6843
alpar@9 6844 _ACEOF
alpar@9 6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
alpar@9 6846 $EGREP "memchr" >/dev/null 2>&1; then :
alpar@9 6847
alpar@9 6848 else
alpar@9 6849 ac_cv_header_stdc=no
alpar@9 6850 fi
alpar@9 6851 rm -f conftest*
alpar@9 6852
alpar@9 6853 fi
alpar@9 6854
alpar@9 6855 if test $ac_cv_header_stdc = yes; then
alpar@9 6856 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
alpar@9 6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 6858 /* end confdefs.h. */
alpar@9 6859 #include <stdlib.h>
alpar@9 6860
alpar@9 6861 _ACEOF
alpar@9 6862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
alpar@9 6863 $EGREP "free" >/dev/null 2>&1; then :
alpar@9 6864
alpar@9 6865 else
alpar@9 6866 ac_cv_header_stdc=no
alpar@9 6867 fi
alpar@9 6868 rm -f conftest*
alpar@9 6869
alpar@9 6870 fi
alpar@9 6871
alpar@9 6872 if test $ac_cv_header_stdc = yes; then
alpar@9 6873 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
alpar@9 6874 if test "$cross_compiling" = yes; then :
alpar@9 6875 :
alpar@9 6876 else
alpar@9 6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 6878 /* end confdefs.h. */
alpar@9 6879 #include <ctype.h>
alpar@9 6880 #include <stdlib.h>
alpar@9 6881 #if ((' ' & 0x0FF) == 0x020)
alpar@9 6882 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
alpar@9 6883 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
alpar@9 6884 #else
alpar@9 6885 # define ISLOWER(c) \
alpar@9 6886 (('a' <= (c) && (c) <= 'i') \
alpar@9 6887 || ('j' <= (c) && (c) <= 'r') \
alpar@9 6888 || ('s' <= (c) && (c) <= 'z'))
alpar@9 6889 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
alpar@9 6890 #endif
alpar@9 6891
alpar@9 6892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
alpar@9 6893 int
alpar@9 6894 main ()
alpar@9 6895 {
alpar@9 6896 int i;
alpar@9 6897 for (i = 0; i < 256; i++)
alpar@9 6898 if (XOR (islower (i), ISLOWER (i))
alpar@9 6899 || toupper (i) != TOUPPER (i))
alpar@9 6900 return 2;
alpar@9 6901 return 0;
alpar@9 6902 }
alpar@9 6903 _ACEOF
alpar@9 6904 if ac_fn_c_try_run "$LINENO"; then :
alpar@9 6905
alpar@9 6906 else
alpar@9 6907 ac_cv_header_stdc=no
alpar@9 6908 fi
alpar@9 6909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
alpar@9 6910 conftest.$ac_objext conftest.beam conftest.$ac_ext
alpar@9 6911 fi
alpar@9 6912
alpar@9 6913 fi
alpar@9 6914 fi
alpar@9 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
alpar@9 6916 $as_echo "$ac_cv_header_stdc" >&6; }
alpar@9 6917 if test $ac_cv_header_stdc = yes; then
alpar@9 6918
alpar@9 6919 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
alpar@9 6920
alpar@9 6921 fi
alpar@9 6922
alpar@9 6923 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
alpar@9 6924 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
alpar@9 6925 inttypes.h stdint.h unistd.h
alpar@9 6926 do :
alpar@9 6927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
alpar@9 6928 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
alpar@9 6929 "
alpar@9 6930 eval as_val=\$$as_ac_Header
alpar@9 6931 if test "x$as_val" = x""yes; then :
alpar@9 6932 cat >>confdefs.h <<_ACEOF
alpar@9 6933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
alpar@9 6934 _ACEOF
alpar@9 6935
alpar@9 6936 fi
alpar@9 6937
alpar@9 6938 done
alpar@9 6939
alpar@9 6940
alpar@9 6941 for ac_header in dlfcn.h
alpar@9 6942 do :
alpar@9 6943 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
alpar@9 6944 "
alpar@9 6945 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
alpar@9 6946 cat >>confdefs.h <<_ACEOF
alpar@9 6947 #define HAVE_DLFCN_H 1
alpar@9 6948 _ACEOF
alpar@9 6949
alpar@9 6950 fi
alpar@9 6951
alpar@9 6952 done
alpar@9 6953
alpar@9 6954
alpar@9 6955
alpar@9 6956
alpar@9 6957
alpar@9 6958 # Set options
alpar@9 6959
alpar@9 6960
alpar@9 6961
alpar@9 6962 enable_dlopen=no
alpar@9 6963
alpar@9 6964
alpar@9 6965 enable_win32_dll=no
alpar@9 6966
alpar@9 6967
alpar@9 6968 # Check whether --enable-shared was given.
alpar@9 6969 if test "${enable_shared+set}" = set; then :
alpar@9 6970 enableval=$enable_shared; p=${PACKAGE-default}
alpar@9 6971 case $enableval in
alpar@9 6972 yes) enable_shared=yes ;;
alpar@9 6973 no) enable_shared=no ;;
alpar@9 6974 *)
alpar@9 6975 enable_shared=no
alpar@9 6976 # Look at the argument we got. We use all the common list separators.
alpar@9 6977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
alpar@9 6978 for pkg in $enableval; do
alpar@9 6979 IFS="$lt_save_ifs"
alpar@9 6980 if test "X$pkg" = "X$p"; then
alpar@9 6981 enable_shared=yes
alpar@9 6982 fi
alpar@9 6983 done
alpar@9 6984 IFS="$lt_save_ifs"
alpar@9 6985 ;;
alpar@9 6986 esac
alpar@9 6987 else
alpar@9 6988 enable_shared=yes
alpar@9 6989 fi
alpar@9 6990
alpar@9 6991
alpar@9 6992
alpar@9 6993
alpar@9 6994
alpar@9 6995
alpar@9 6996
alpar@9 6997
alpar@9 6998
alpar@9 6999 # Check whether --enable-static was given.
alpar@9 7000 if test "${enable_static+set}" = set; then :
alpar@9 7001 enableval=$enable_static; p=${PACKAGE-default}
alpar@9 7002 case $enableval in
alpar@9 7003 yes) enable_static=yes ;;
alpar@9 7004 no) enable_static=no ;;
alpar@9 7005 *)
alpar@9 7006 enable_static=no
alpar@9 7007 # Look at the argument we got. We use all the common list separators.
alpar@9 7008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
alpar@9 7009 for pkg in $enableval; do
alpar@9 7010 IFS="$lt_save_ifs"
alpar@9 7011 if test "X$pkg" = "X$p"; then
alpar@9 7012 enable_static=yes
alpar@9 7013 fi
alpar@9 7014 done
alpar@9 7015 IFS="$lt_save_ifs"
alpar@9 7016 ;;
alpar@9 7017 esac
alpar@9 7018 else
alpar@9 7019 enable_static=yes
alpar@9 7020 fi
alpar@9 7021
alpar@9 7022
alpar@9 7023
alpar@9 7024
alpar@9 7025
alpar@9 7026
alpar@9 7027
alpar@9 7028
alpar@9 7029
alpar@9 7030
alpar@9 7031 # Check whether --with-pic was given.
alpar@9 7032 if test "${with_pic+set}" = set; then :
alpar@9 7033 withval=$with_pic; pic_mode="$withval"
alpar@9 7034 else
alpar@9 7035 pic_mode=default
alpar@9 7036 fi
alpar@9 7037
alpar@9 7038
alpar@9 7039 test -z "$pic_mode" && pic_mode=default
alpar@9 7040
alpar@9 7041
alpar@9 7042
alpar@9 7043
alpar@9 7044
alpar@9 7045
alpar@9 7046
alpar@9 7047 # Check whether --enable-fast-install was given.
alpar@9 7048 if test "${enable_fast_install+set}" = set; then :
alpar@9 7049 enableval=$enable_fast_install; p=${PACKAGE-default}
alpar@9 7050 case $enableval in
alpar@9 7051 yes) enable_fast_install=yes ;;
alpar@9 7052 no) enable_fast_install=no ;;
alpar@9 7053 *)
alpar@9 7054 enable_fast_install=no
alpar@9 7055 # Look at the argument we got. We use all the common list separators.
alpar@9 7056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
alpar@9 7057 for pkg in $enableval; do
alpar@9 7058 IFS="$lt_save_ifs"
alpar@9 7059 if test "X$pkg" = "X$p"; then
alpar@9 7060 enable_fast_install=yes
alpar@9 7061 fi
alpar@9 7062 done
alpar@9 7063 IFS="$lt_save_ifs"
alpar@9 7064 ;;
alpar@9 7065 esac
alpar@9 7066 else
alpar@9 7067 enable_fast_install=yes
alpar@9 7068 fi
alpar@9 7069
alpar@9 7070
alpar@9 7071
alpar@9 7072
alpar@9 7073
alpar@9 7074
alpar@9 7075
alpar@9 7076
alpar@9 7077
alpar@9 7078
alpar@9 7079
alpar@9 7080 # This can be used to rebuild libtool when needed
alpar@9 7081 LIBTOOL_DEPS="$ltmain"
alpar@9 7082
alpar@9 7083 # Always use our own libtool.
alpar@9 7084 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
alpar@9 7085
alpar@9 7086
alpar@9 7087
alpar@9 7088
alpar@9 7089
alpar@9 7090
alpar@9 7091
alpar@9 7092
alpar@9 7093
alpar@9 7094
alpar@9 7095
alpar@9 7096
alpar@9 7097
alpar@9 7098
alpar@9 7099
alpar@9 7100
alpar@9 7101
alpar@9 7102
alpar@9 7103
alpar@9 7104
alpar@9 7105
alpar@9 7106
alpar@9 7107
alpar@9 7108
alpar@9 7109
alpar@9 7110
alpar@9 7111 test -z "$LN_S" && LN_S="ln -s"
alpar@9 7112
alpar@9 7113
alpar@9 7114
alpar@9 7115
alpar@9 7116
alpar@9 7117
alpar@9 7118
alpar@9 7119
alpar@9 7120
alpar@9 7121
alpar@9 7122
alpar@9 7123
alpar@9 7124
alpar@9 7125
alpar@9 7126 if test -n "${ZSH_VERSION+set}" ; then
alpar@9 7127 setopt NO_GLOB_SUBST
alpar@9 7128 fi
alpar@9 7129
alpar@9 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
alpar@9 7131 $as_echo_n "checking for objdir... " >&6; }
alpar@9 7132 if test "${lt_cv_objdir+set}" = set; then :
alpar@9 7133 $as_echo_n "(cached) " >&6
alpar@9 7134 else
alpar@9 7135 rm -f .libs 2>/dev/null
alpar@9 7136 mkdir .libs 2>/dev/null
alpar@9 7137 if test -d .libs; then
alpar@9 7138 lt_cv_objdir=.libs
alpar@9 7139 else
alpar@9 7140 # MS-DOS does not allow filenames that begin with a dot.
alpar@9 7141 lt_cv_objdir=_libs
alpar@9 7142 fi
alpar@9 7143 rmdir .libs 2>/dev/null
alpar@9 7144 fi
alpar@9 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
alpar@9 7146 $as_echo "$lt_cv_objdir" >&6; }
alpar@9 7147 objdir=$lt_cv_objdir
alpar@9 7148
alpar@9 7149
alpar@9 7150
alpar@9 7151
alpar@9 7152
alpar@9 7153 cat >>confdefs.h <<_ACEOF
alpar@9 7154 #define LT_OBJDIR "$lt_cv_objdir/"
alpar@9 7155 _ACEOF
alpar@9 7156
alpar@9 7157
alpar@9 7158
alpar@9 7159
alpar@9 7160 case $host_os in
alpar@9 7161 aix3*)
alpar@9 7162 # AIX sometimes has problems with the GCC collect2 program. For some
alpar@9 7163 # reason, if we set the COLLECT_NAMES environment variable, the problems
alpar@9 7164 # vanish in a puff of smoke.
alpar@9 7165 if test "X${COLLECT_NAMES+set}" != Xset; then
alpar@9 7166 COLLECT_NAMES=
alpar@9 7167 export COLLECT_NAMES
alpar@9 7168 fi
alpar@9 7169 ;;
alpar@9 7170 esac
alpar@9 7171
alpar@9 7172 # Global variables:
alpar@9 7173 ofile=libtool
alpar@9 7174 can_build_shared=yes
alpar@9 7175
alpar@9 7176 # All known linkers require a `.a' archive for static linking (except MSVC,
alpar@9 7177 # which needs '.lib').
alpar@9 7178 libext=a
alpar@9 7179
alpar@9 7180 with_gnu_ld="$lt_cv_prog_gnu_ld"
alpar@9 7181
alpar@9 7182 old_CC="$CC"
alpar@9 7183 old_CFLAGS="$CFLAGS"
alpar@9 7184
alpar@9 7185 # Set sane defaults for various variables
alpar@9 7186 test -z "$CC" && CC=cc
alpar@9 7187 test -z "$LTCC" && LTCC=$CC
alpar@9 7188 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
alpar@9 7189 test -z "$LD" && LD=ld
alpar@9 7190 test -z "$ac_objext" && ac_objext=o
alpar@9 7191
alpar@9 7192 for cc_temp in $compiler""; do
alpar@9 7193 case $cc_temp in
alpar@9 7194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
alpar@9 7195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
alpar@9 7196 \-*) ;;
alpar@9 7197 *) break;;
alpar@9 7198 esac
alpar@9 7199 done
alpar@9 7200 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
alpar@9 7201
alpar@9 7202
alpar@9 7203 # Only perform the check for file, if the check method requires it
alpar@9 7204 test -z "$MAGIC_CMD" && MAGIC_CMD=file
alpar@9 7205 case $deplibs_check_method in
alpar@9 7206 file_magic*)
alpar@9 7207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
alpar@9 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
alpar@9 7209 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
alpar@9 7210 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
alpar@9 7211 $as_echo_n "(cached) " >&6
alpar@9 7212 else
alpar@9 7213 case $MAGIC_CMD in
alpar@9 7214 [\\/*] | ?:[\\/]*)
alpar@9 7215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
alpar@9 7216 ;;
alpar@9 7217 *)
alpar@9 7218 lt_save_MAGIC_CMD="$MAGIC_CMD"
alpar@9 7219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
alpar@9 7220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
alpar@9 7221 for ac_dir in $ac_dummy; do
alpar@9 7222 IFS="$lt_save_ifs"
alpar@9 7223 test -z "$ac_dir" && ac_dir=.
alpar@9 7224 if test -f $ac_dir/${ac_tool_prefix}file; then
alpar@9 7225 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
alpar@9 7226 if test -n "$file_magic_test_file"; then
alpar@9 7227 case $deplibs_check_method in
alpar@9 7228 "file_magic "*)
alpar@9 7229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
alpar@9 7230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
alpar@9 7231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
alpar@9 7232 $EGREP "$file_magic_regex" > /dev/null; then
alpar@9 7233 :
alpar@9 7234 else
alpar@9 7235 cat <<_LT_EOF 1>&2
alpar@9 7236
alpar@9 7237 *** Warning: the command libtool uses to detect shared libraries,
alpar@9 7238 *** $file_magic_cmd, produces output that libtool cannot recognize.
alpar@9 7239 *** The result is that libtool may fail to recognize shared libraries
alpar@9 7240 *** as such. This will affect the creation of libtool libraries that
alpar@9 7241 *** depend on shared libraries, but programs linked with such libtool
alpar@9 7242 *** libraries will work regardless of this problem. Nevertheless, you
alpar@9 7243 *** may want to report the problem to your system manager and/or to
alpar@9 7244 *** bug-libtool@gnu.org
alpar@9 7245
alpar@9 7246 _LT_EOF
alpar@9 7247 fi ;;
alpar@9 7248 esac
alpar@9 7249 fi
alpar@9 7250 break
alpar@9 7251 fi
alpar@9 7252 done
alpar@9 7253 IFS="$lt_save_ifs"
alpar@9 7254 MAGIC_CMD="$lt_save_MAGIC_CMD"
alpar@9 7255 ;;
alpar@9 7256 esac
alpar@9 7257 fi
alpar@9 7258
alpar@9 7259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
alpar@9 7260 if test -n "$MAGIC_CMD"; then
alpar@9 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
alpar@9 7262 $as_echo "$MAGIC_CMD" >&6; }
alpar@9 7263 else
alpar@9 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 7265 $as_echo "no" >&6; }
alpar@9 7266 fi
alpar@9 7267
alpar@9 7268
alpar@9 7269
alpar@9 7270
alpar@9 7271
alpar@9 7272 if test -z "$lt_cv_path_MAGIC_CMD"; then
alpar@9 7273 if test -n "$ac_tool_prefix"; then
alpar@9 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
alpar@9 7275 $as_echo_n "checking for file... " >&6; }
alpar@9 7276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
alpar@9 7277 $as_echo_n "(cached) " >&6
alpar@9 7278 else
alpar@9 7279 case $MAGIC_CMD in
alpar@9 7280 [\\/*] | ?:[\\/]*)
alpar@9 7281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
alpar@9 7282 ;;
alpar@9 7283 *)
alpar@9 7284 lt_save_MAGIC_CMD="$MAGIC_CMD"
alpar@9 7285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
alpar@9 7286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
alpar@9 7287 for ac_dir in $ac_dummy; do
alpar@9 7288 IFS="$lt_save_ifs"
alpar@9 7289 test -z "$ac_dir" && ac_dir=.
alpar@9 7290 if test -f $ac_dir/file; then
alpar@9 7291 lt_cv_path_MAGIC_CMD="$ac_dir/file"
alpar@9 7292 if test -n "$file_magic_test_file"; then
alpar@9 7293 case $deplibs_check_method in
alpar@9 7294 "file_magic "*)
alpar@9 7295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
alpar@9 7296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
alpar@9 7297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
alpar@9 7298 $EGREP "$file_magic_regex" > /dev/null; then
alpar@9 7299 :
alpar@9 7300 else
alpar@9 7301 cat <<_LT_EOF 1>&2
alpar@9 7302
alpar@9 7303 *** Warning: the command libtool uses to detect shared libraries,
alpar@9 7304 *** $file_magic_cmd, produces output that libtool cannot recognize.
alpar@9 7305 *** The result is that libtool may fail to recognize shared libraries
alpar@9 7306 *** as such. This will affect the creation of libtool libraries that
alpar@9 7307 *** depend on shared libraries, but programs linked with such libtool
alpar@9 7308 *** libraries will work regardless of this problem. Nevertheless, you
alpar@9 7309 *** may want to report the problem to your system manager and/or to
alpar@9 7310 *** bug-libtool@gnu.org
alpar@9 7311
alpar@9 7312 _LT_EOF
alpar@9 7313 fi ;;
alpar@9 7314 esac
alpar@9 7315 fi
alpar@9 7316 break
alpar@9 7317 fi
alpar@9 7318 done
alpar@9 7319 IFS="$lt_save_ifs"
alpar@9 7320 MAGIC_CMD="$lt_save_MAGIC_CMD"
alpar@9 7321 ;;
alpar@9 7322 esac
alpar@9 7323 fi
alpar@9 7324
alpar@9 7325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
alpar@9 7326 if test -n "$MAGIC_CMD"; then
alpar@9 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
alpar@9 7328 $as_echo "$MAGIC_CMD" >&6; }
alpar@9 7329 else
alpar@9 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 7331 $as_echo "no" >&6; }
alpar@9 7332 fi
alpar@9 7333
alpar@9 7334
alpar@9 7335 else
alpar@9 7336 MAGIC_CMD=:
alpar@9 7337 fi
alpar@9 7338 fi
alpar@9 7339
alpar@9 7340 fi
alpar@9 7341 ;;
alpar@9 7342 esac
alpar@9 7343
alpar@9 7344 # Use C for the default configuration in the libtool script
alpar@9 7345
alpar@9 7346 lt_save_CC="$CC"
alpar@9 7347 ac_ext=c
alpar@9 7348 ac_cpp='$CPP $CPPFLAGS'
alpar@9 7349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
alpar@9 7350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
alpar@9 7351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
alpar@9 7352
alpar@9 7353
alpar@9 7354 # Source file extension for C test sources.
alpar@9 7355 ac_ext=c
alpar@9 7356
alpar@9 7357 # Object file extension for compiled C test sources.
alpar@9 7358 objext=o
alpar@9 7359 objext=$objext
alpar@9 7360
alpar@9 7361 # Code to be used in simple compile tests
alpar@9 7362 lt_simple_compile_test_code="int some_variable = 0;"
alpar@9 7363
alpar@9 7364 # Code to be used in simple link tests
alpar@9 7365 lt_simple_link_test_code='int main(){return(0);}'
alpar@9 7366
alpar@9 7367
alpar@9 7368
alpar@9 7369
alpar@9 7370
alpar@9 7371
alpar@9 7372
alpar@9 7373 # If no C compiler was specified, use CC.
alpar@9 7374 LTCC=${LTCC-"$CC"}
alpar@9 7375
alpar@9 7376 # If no C compiler flags were specified, use CFLAGS.
alpar@9 7377 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
alpar@9 7378
alpar@9 7379 # Allow CC to be a program name with arguments.
alpar@9 7380 compiler=$CC
alpar@9 7381
alpar@9 7382 # Save the default compiler, since it gets overwritten when the other
alpar@9 7383 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
alpar@9 7384 compiler_DEFAULT=$CC
alpar@9 7385
alpar@9 7386 # save warnings/boilerplate of simple test code
alpar@9 7387 ac_outfile=conftest.$ac_objext
alpar@9 7388 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
alpar@9 7389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
alpar@9 7390 _lt_compiler_boilerplate=`cat conftest.err`
alpar@9 7391 $RM conftest*
alpar@9 7392
alpar@9 7393 ac_outfile=conftest.$ac_objext
alpar@9 7394 echo "$lt_simple_link_test_code" >conftest.$ac_ext
alpar@9 7395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
alpar@9 7396 _lt_linker_boilerplate=`cat conftest.err`
alpar@9 7397 $RM -r conftest*
alpar@9 7398
alpar@9 7399
alpar@9 7400 ## CAVEAT EMPTOR:
alpar@9 7401 ## There is no encapsulation within the following macros, do not change
alpar@9 7402 ## the running order or otherwise move them around unless you know exactly
alpar@9 7403 ## what you are doing...
alpar@9 7404 if test -n "$compiler"; then
alpar@9 7405
alpar@9 7406 lt_prog_compiler_no_builtin_flag=
alpar@9 7407
alpar@9 7408 if test "$GCC" = yes; then
alpar@9 7409 case $cc_basename in
alpar@9 7410 nvcc*)
alpar@9 7411 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
alpar@9 7412 *)
alpar@9 7413 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
alpar@9 7414 esac
alpar@9 7415
alpar@9 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
alpar@9 7417 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
alpar@9 7418 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
alpar@9 7419 $as_echo_n "(cached) " >&6
alpar@9 7420 else
alpar@9 7421 lt_cv_prog_compiler_rtti_exceptions=no
alpar@9 7422 ac_outfile=conftest.$ac_objext
alpar@9 7423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
alpar@9 7424 lt_compiler_flag="-fno-rtti -fno-exceptions"
alpar@9 7425 # Insert the option either (1) after the last *FLAGS variable, or
alpar@9 7426 # (2) before a word containing "conftest.", or (3) at the end.
alpar@9 7427 # Note that $ac_compile itself does not contain backslashes and begins
alpar@9 7428 # with a dollar sign (not a hyphen), so the echo should work correctly.
alpar@9 7429 # The option is referenced via a variable to avoid confusing sed.
alpar@9 7430 lt_compile=`echo "$ac_compile" | $SED \
alpar@9 7431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
alpar@9 7432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
alpar@9 7433 -e 's:$: $lt_compiler_flag:'`
alpar@9 7434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
alpar@9 7435 (eval "$lt_compile" 2>conftest.err)
alpar@9 7436 ac_status=$?
alpar@9 7437 cat conftest.err >&5
alpar@9 7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
alpar@9 7439 if (exit $ac_status) && test -s "$ac_outfile"; then
alpar@9 7440 # The compiler can only warn and ignore the option if not recognized
alpar@9 7441 # So say no if there are warnings other than the usual output.
alpar@9 7442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
alpar@9 7443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
alpar@9 7444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
alpar@9 7445 lt_cv_prog_compiler_rtti_exceptions=yes
alpar@9 7446 fi
alpar@9 7447 fi
alpar@9 7448 $RM conftest*
alpar@9 7449
alpar@9 7450 fi
alpar@9 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
alpar@9 7452 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
alpar@9 7453
alpar@9 7454 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
alpar@9 7455 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
alpar@9 7456 else
alpar@9 7457 :
alpar@9 7458 fi
alpar@9 7459
alpar@9 7460 fi
alpar@9 7461
alpar@9 7462
alpar@9 7463
alpar@9 7464
alpar@9 7465
alpar@9 7466
alpar@9 7467 lt_prog_compiler_wl=
alpar@9 7468 lt_prog_compiler_pic=
alpar@9 7469 lt_prog_compiler_static=
alpar@9 7470
alpar@9 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
alpar@9 7472 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
alpar@9 7473
alpar@9 7474 if test "$GCC" = yes; then
alpar@9 7475 lt_prog_compiler_wl='-Wl,'
alpar@9 7476 lt_prog_compiler_static='-static'
alpar@9 7477
alpar@9 7478 case $host_os in
alpar@9 7479 aix*)
alpar@9 7480 # All AIX code is PIC.
alpar@9 7481 if test "$host_cpu" = ia64; then
alpar@9 7482 # AIX 5 now supports IA64 processor
alpar@9 7483 lt_prog_compiler_static='-Bstatic'
alpar@9 7484 fi
alpar@9 7485 ;;
alpar@9 7486
alpar@9 7487 amigaos*)
alpar@9 7488 case $host_cpu in
alpar@9 7489 powerpc)
alpar@9 7490 # see comment about AmigaOS4 .so support
alpar@9 7491 lt_prog_compiler_pic='-fPIC'
alpar@9 7492 ;;
alpar@9 7493 m68k)
alpar@9 7494 # FIXME: we need at least 68020 code to build shared libraries, but
alpar@9 7495 # adding the `-m68020' flag to GCC prevents building anything better,
alpar@9 7496 # like `-m68040'.
alpar@9 7497 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
alpar@9 7498 ;;
alpar@9 7499 esac
alpar@9 7500 ;;
alpar@9 7501
alpar@9 7502 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
alpar@9 7503 # PIC is the default for these OSes.
alpar@9 7504 ;;
alpar@9 7505
alpar@9 7506 mingw* | cygwin* | pw32* | os2* | cegcc*)
alpar@9 7507 # This hack is so that the source file can tell whether it is being
alpar@9 7508 # built for inclusion in a dll (and should export symbols for example).
alpar@9 7509 # Although the cygwin gcc ignores -fPIC, still need this for old-style
alpar@9 7510 # (--disable-auto-import) libraries
alpar@9 7511 lt_prog_compiler_pic='-DDLL_EXPORT'
alpar@9 7512 ;;
alpar@9 7513
alpar@9 7514 darwin* | rhapsody*)
alpar@9 7515 # PIC is the default on this platform
alpar@9 7516 # Common symbols not allowed in MH_DYLIB files
alpar@9 7517 lt_prog_compiler_pic='-fno-common'
alpar@9 7518 ;;
alpar@9 7519
alpar@9 7520 haiku*)
alpar@9 7521 # PIC is the default for Haiku.
alpar@9 7522 # The "-static" flag exists, but is broken.
alpar@9 7523 lt_prog_compiler_static=
alpar@9 7524 ;;
alpar@9 7525
alpar@9 7526 hpux*)
alpar@9 7527 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
alpar@9 7528 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
alpar@9 7529 # sets the default TLS model and affects inlining.
alpar@9 7530 case $host_cpu in
alpar@9 7531 hppa*64*)
alpar@9 7532 # +Z the default
alpar@9 7533 ;;
alpar@9 7534 *)
alpar@9 7535 lt_prog_compiler_pic='-fPIC'
alpar@9 7536 ;;
alpar@9 7537 esac
alpar@9 7538 ;;
alpar@9 7539
alpar@9 7540 interix[3-9]*)
alpar@9 7541 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
alpar@9 7542 # Instead, we relocate shared libraries at runtime.
alpar@9 7543 ;;
alpar@9 7544
alpar@9 7545 msdosdjgpp*)
alpar@9 7546 # Just because we use GCC doesn't mean we suddenly get shared libraries
alpar@9 7547 # on systems that don't support them.
alpar@9 7548 lt_prog_compiler_can_build_shared=no
alpar@9 7549 enable_shared=no
alpar@9 7550 ;;
alpar@9 7551
alpar@9 7552 *nto* | *qnx*)
alpar@9 7553 # QNX uses GNU C++, but need to define -shared option too, otherwise
alpar@9 7554 # it will coredump.
alpar@9 7555 lt_prog_compiler_pic='-fPIC -shared'
alpar@9 7556 ;;
alpar@9 7557
alpar@9 7558 sysv4*MP*)
alpar@9 7559 if test -d /usr/nec; then
alpar@9 7560 lt_prog_compiler_pic=-Kconform_pic
alpar@9 7561 fi
alpar@9 7562 ;;
alpar@9 7563
alpar@9 7564 *)
alpar@9 7565 lt_prog_compiler_pic='-fPIC'
alpar@9 7566 ;;
alpar@9 7567 esac
alpar@9 7568
alpar@9 7569 case $cc_basename in
alpar@9 7570 nvcc*) # Cuda Compiler Driver 2.2
alpar@9 7571 lt_prog_compiler_wl='-Xlinker '
alpar@9 7572 lt_prog_compiler_pic='-Xcompiler -fPIC'
alpar@9 7573 ;;
alpar@9 7574 esac
alpar@9 7575 else
alpar@9 7576 # PORTME Check for flag to pass linker flags through the system compiler.
alpar@9 7577 case $host_os in
alpar@9 7578 aix*)
alpar@9 7579 lt_prog_compiler_wl='-Wl,'
alpar@9 7580 if test "$host_cpu" = ia64; then
alpar@9 7581 # AIX 5 now supports IA64 processor
alpar@9 7582 lt_prog_compiler_static='-Bstatic'
alpar@9 7583 else
alpar@9 7584 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
alpar@9 7585 fi
alpar@9 7586 ;;
alpar@9 7587
alpar@9 7588 mingw* | cygwin* | pw32* | os2* | cegcc*)
alpar@9 7589 # This hack is so that the source file can tell whether it is being
alpar@9 7590 # built for inclusion in a dll (and should export symbols for example).
alpar@9 7591 lt_prog_compiler_pic='-DDLL_EXPORT'
alpar@9 7592 ;;
alpar@9 7593
alpar@9 7594 hpux9* | hpux10* | hpux11*)
alpar@9 7595 lt_prog_compiler_wl='-Wl,'
alpar@9 7596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
alpar@9 7597 # not for PA HP-UX.
alpar@9 7598 case $host_cpu in
alpar@9 7599 hppa*64*|ia64*)
alpar@9 7600 # +Z the default
alpar@9 7601 ;;
alpar@9 7602 *)
alpar@9 7603 lt_prog_compiler_pic='+Z'
alpar@9 7604 ;;
alpar@9 7605 esac
alpar@9 7606 # Is there a better lt_prog_compiler_static that works with the bundled CC?
alpar@9 7607 lt_prog_compiler_static='${wl}-a ${wl}archive'
alpar@9 7608 ;;
alpar@9 7609
alpar@9 7610 irix5* | irix6* | nonstopux*)
alpar@9 7611 lt_prog_compiler_wl='-Wl,'
alpar@9 7612 # PIC (with -KPIC) is the default.
alpar@9 7613 lt_prog_compiler_static='-non_shared'
alpar@9 7614 ;;
alpar@9 7615
alpar@9 7616 linux* | k*bsd*-gnu | kopensolaris*-gnu)
alpar@9 7617 case $cc_basename in
alpar@9 7618 # old Intel for x86_64 which still supported -KPIC.
alpar@9 7619 ecc*)
alpar@9 7620 lt_prog_compiler_wl='-Wl,'
alpar@9 7621 lt_prog_compiler_pic='-KPIC'
alpar@9 7622 lt_prog_compiler_static='-static'
alpar@9 7623 ;;
alpar@9 7624 # icc used to be incompatible with GCC.
alpar@9 7625 # ICC 10 doesn't accept -KPIC any more.
alpar@9 7626 icc* | ifort*)
alpar@9 7627 lt_prog_compiler_wl='-Wl,'
alpar@9 7628 lt_prog_compiler_pic='-fPIC'
alpar@9 7629 lt_prog_compiler_static='-static'
alpar@9 7630 ;;
alpar@9 7631 # Lahey Fortran 8.1.
alpar@9 7632 lf95*)
alpar@9 7633 lt_prog_compiler_wl='-Wl,'
alpar@9 7634 lt_prog_compiler_pic='--shared'
alpar@9 7635 lt_prog_compiler_static='--static'
alpar@9 7636 ;;
alpar@9 7637 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
alpar@9 7638 # Portland Group compilers (*not* the Pentium gcc compiler,
alpar@9 7639 # which looks to be a dead project)
alpar@9 7640 lt_prog_compiler_wl='-Wl,'
alpar@9 7641 lt_prog_compiler_pic='-fpic'
alpar@9 7642 lt_prog_compiler_static='-Bstatic'
alpar@9 7643 ;;
alpar@9 7644 ccc*)
alpar@9 7645 lt_prog_compiler_wl='-Wl,'
alpar@9 7646 # All Alpha code is PIC.
alpar@9 7647 lt_prog_compiler_static='-non_shared'
alpar@9 7648 ;;
alpar@9 7649 xl* | bgxl* | bgf* | mpixl*)
alpar@9 7650 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
alpar@9 7651 lt_prog_compiler_wl='-Wl,'
alpar@9 7652 lt_prog_compiler_pic='-qpic'
alpar@9 7653 lt_prog_compiler_static='-qstaticlink'
alpar@9 7654 ;;
alpar@9 7655 *)
alpar@9 7656 case `$CC -V 2>&1 | sed 5q` in
alpar@9 7657 *Sun\ F* | *Sun*Fortran*)
alpar@9 7658 # Sun Fortran 8.3 passes all unrecognized flags to the linker
alpar@9 7659 lt_prog_compiler_pic='-KPIC'
alpar@9 7660 lt_prog_compiler_static='-Bstatic'
alpar@9 7661 lt_prog_compiler_wl=''
alpar@9 7662 ;;
alpar@9 7663 *Sun\ C*)
alpar@9 7664 # Sun C 5.9
alpar@9 7665 lt_prog_compiler_pic='-KPIC'
alpar@9 7666 lt_prog_compiler_static='-Bstatic'
alpar@9 7667 lt_prog_compiler_wl='-Wl,'
alpar@9 7668 ;;
alpar@9 7669 esac
alpar@9 7670 ;;
alpar@9 7671 esac
alpar@9 7672 ;;
alpar@9 7673
alpar@9 7674 newsos6)
alpar@9 7675 lt_prog_compiler_pic='-KPIC'
alpar@9 7676 lt_prog_compiler_static='-Bstatic'
alpar@9 7677 ;;
alpar@9 7678
alpar@9 7679 *nto* | *qnx*)
alpar@9 7680 # QNX uses GNU C++, but need to define -shared option too, otherwise
alpar@9 7681 # it will coredump.
alpar@9 7682 lt_prog_compiler_pic='-fPIC -shared'
alpar@9 7683 ;;
alpar@9 7684
alpar@9 7685 osf3* | osf4* | osf5*)
alpar@9 7686 lt_prog_compiler_wl='-Wl,'
alpar@9 7687 # All OSF/1 code is PIC.
alpar@9 7688 lt_prog_compiler_static='-non_shared'
alpar@9 7689 ;;
alpar@9 7690
alpar@9 7691 rdos*)
alpar@9 7692 lt_prog_compiler_static='-non_shared'
alpar@9 7693 ;;
alpar@9 7694
alpar@9 7695 solaris*)
alpar@9 7696 lt_prog_compiler_pic='-KPIC'
alpar@9 7697 lt_prog_compiler_static='-Bstatic'
alpar@9 7698 case $cc_basename in
alpar@9 7699 f77* | f90* | f95*)
alpar@9 7700 lt_prog_compiler_wl='-Qoption ld ';;
alpar@9 7701 *)
alpar@9 7702 lt_prog_compiler_wl='-Wl,';;
alpar@9 7703 esac
alpar@9 7704 ;;
alpar@9 7705
alpar@9 7706 sunos4*)
alpar@9 7707 lt_prog_compiler_wl='-Qoption ld '
alpar@9 7708 lt_prog_compiler_pic='-PIC'
alpar@9 7709 lt_prog_compiler_static='-Bstatic'
alpar@9 7710 ;;
alpar@9 7711
alpar@9 7712 sysv4 | sysv4.2uw2* | sysv4.3*)
alpar@9 7713 lt_prog_compiler_wl='-Wl,'
alpar@9 7714 lt_prog_compiler_pic='-KPIC'
alpar@9 7715 lt_prog_compiler_static='-Bstatic'
alpar@9 7716 ;;
alpar@9 7717
alpar@9 7718 sysv4*MP*)
alpar@9 7719 if test -d /usr/nec ;then
alpar@9 7720 lt_prog_compiler_pic='-Kconform_pic'
alpar@9 7721 lt_prog_compiler_static='-Bstatic'
alpar@9 7722 fi
alpar@9 7723 ;;
alpar@9 7724
alpar@9 7725 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
alpar@9 7726 lt_prog_compiler_wl='-Wl,'
alpar@9 7727 lt_prog_compiler_pic='-KPIC'
alpar@9 7728 lt_prog_compiler_static='-Bstatic'
alpar@9 7729 ;;
alpar@9 7730
alpar@9 7731 unicos*)
alpar@9 7732 lt_prog_compiler_wl='-Wl,'
alpar@9 7733 lt_prog_compiler_can_build_shared=no
alpar@9 7734 ;;
alpar@9 7735
alpar@9 7736 uts4*)
alpar@9 7737 lt_prog_compiler_pic='-pic'
alpar@9 7738 lt_prog_compiler_static='-Bstatic'
alpar@9 7739 ;;
alpar@9 7740
alpar@9 7741 *)
alpar@9 7742 lt_prog_compiler_can_build_shared=no
alpar@9 7743 ;;
alpar@9 7744 esac
alpar@9 7745 fi
alpar@9 7746
alpar@9 7747 case $host_os in
alpar@9 7748 # For platforms which do not support PIC, -DPIC is meaningless:
alpar@9 7749 *djgpp*)
alpar@9 7750 lt_prog_compiler_pic=
alpar@9 7751 ;;
alpar@9 7752 *)
alpar@9 7753 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
alpar@9 7754 ;;
alpar@9 7755 esac
alpar@9 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
alpar@9 7757 $as_echo "$lt_prog_compiler_pic" >&6; }
alpar@9 7758
alpar@9 7759
alpar@9 7760
alpar@9 7761
alpar@9 7762
alpar@9 7763
alpar@9 7764 #
alpar@9 7765 # Check to make sure the PIC flag actually works.
alpar@9 7766 #
alpar@9 7767 if test -n "$lt_prog_compiler_pic"; then
alpar@9 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
alpar@9 7769 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
alpar@9 7770 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
alpar@9 7771 $as_echo_n "(cached) " >&6
alpar@9 7772 else
alpar@9 7773 lt_cv_prog_compiler_pic_works=no
alpar@9 7774 ac_outfile=conftest.$ac_objext
alpar@9 7775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
alpar@9 7776 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
alpar@9 7777 # Insert the option either (1) after the last *FLAGS variable, or
alpar@9 7778 # (2) before a word containing "conftest.", or (3) at the end.
alpar@9 7779 # Note that $ac_compile itself does not contain backslashes and begins
alpar@9 7780 # with a dollar sign (not a hyphen), so the echo should work correctly.
alpar@9 7781 # The option is referenced via a variable to avoid confusing sed.
alpar@9 7782 lt_compile=`echo "$ac_compile" | $SED \
alpar@9 7783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
alpar@9 7784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
alpar@9 7785 -e 's:$: $lt_compiler_flag:'`
alpar@9 7786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
alpar@9 7787 (eval "$lt_compile" 2>conftest.err)
alpar@9 7788 ac_status=$?
alpar@9 7789 cat conftest.err >&5
alpar@9 7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
alpar@9 7791 if (exit $ac_status) && test -s "$ac_outfile"; then
alpar@9 7792 # The compiler can only warn and ignore the option if not recognized
alpar@9 7793 # So say no if there are warnings other than the usual output.
alpar@9 7794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
alpar@9 7795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
alpar@9 7796 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
alpar@9 7797 lt_cv_prog_compiler_pic_works=yes
alpar@9 7798 fi
alpar@9 7799 fi
alpar@9 7800 $RM conftest*
alpar@9 7801
alpar@9 7802 fi
alpar@9 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
alpar@9 7804 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
alpar@9 7805
alpar@9 7806 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
alpar@9 7807 case $lt_prog_compiler_pic in
alpar@9 7808 "" | " "*) ;;
alpar@9 7809 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
alpar@9 7810 esac
alpar@9 7811 else
alpar@9 7812 lt_prog_compiler_pic=
alpar@9 7813 lt_prog_compiler_can_build_shared=no
alpar@9 7814 fi
alpar@9 7815
alpar@9 7816 fi
alpar@9 7817
alpar@9 7818
alpar@9 7819
alpar@9 7820
alpar@9 7821
alpar@9 7822
alpar@9 7823 #
alpar@9 7824 # Check to make sure the static flag actually works.
alpar@9 7825 #
alpar@9 7826 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
alpar@9 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
alpar@9 7828 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
alpar@9 7829 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
alpar@9 7830 $as_echo_n "(cached) " >&6
alpar@9 7831 else
alpar@9 7832 lt_cv_prog_compiler_static_works=no
alpar@9 7833 save_LDFLAGS="$LDFLAGS"
alpar@9 7834 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
alpar@9 7835 echo "$lt_simple_link_test_code" > conftest.$ac_ext
alpar@9 7836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
alpar@9 7837 # The linker can only warn and ignore the option if not recognized
alpar@9 7838 # So say no if there are warnings
alpar@9 7839 if test -s conftest.err; then
alpar@9 7840 # Append any errors to the config.log.
alpar@9 7841 cat conftest.err 1>&5
alpar@9 7842 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
alpar@9 7843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
alpar@9 7844 if diff conftest.exp conftest.er2 >/dev/null; then
alpar@9 7845 lt_cv_prog_compiler_static_works=yes
alpar@9 7846 fi
alpar@9 7847 else
alpar@9 7848 lt_cv_prog_compiler_static_works=yes
alpar@9 7849 fi
alpar@9 7850 fi
alpar@9 7851 $RM -r conftest*
alpar@9 7852 LDFLAGS="$save_LDFLAGS"
alpar@9 7853
alpar@9 7854 fi
alpar@9 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
alpar@9 7856 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
alpar@9 7857
alpar@9 7858 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
alpar@9 7859 :
alpar@9 7860 else
alpar@9 7861 lt_prog_compiler_static=
alpar@9 7862 fi
alpar@9 7863
alpar@9 7864
alpar@9 7865
alpar@9 7866
alpar@9 7867
alpar@9 7868
alpar@9 7869
alpar@9 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
alpar@9 7871 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
alpar@9 7872 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
alpar@9 7873 $as_echo_n "(cached) " >&6
alpar@9 7874 else
alpar@9 7875 lt_cv_prog_compiler_c_o=no
alpar@9 7876 $RM -r conftest 2>/dev/null
alpar@9 7877 mkdir conftest
alpar@9 7878 cd conftest
alpar@9 7879 mkdir out
alpar@9 7880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
alpar@9 7881
alpar@9 7882 lt_compiler_flag="-o out/conftest2.$ac_objext"
alpar@9 7883 # Insert the option either (1) after the last *FLAGS variable, or
alpar@9 7884 # (2) before a word containing "conftest.", or (3) at the end.
alpar@9 7885 # Note that $ac_compile itself does not contain backslashes and begins
alpar@9 7886 # with a dollar sign (not a hyphen), so the echo should work correctly.
alpar@9 7887 lt_compile=`echo "$ac_compile" | $SED \
alpar@9 7888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
alpar@9 7889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
alpar@9 7890 -e 's:$: $lt_compiler_flag:'`
alpar@9 7891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
alpar@9 7892 (eval "$lt_compile" 2>out/conftest.err)
alpar@9 7893 ac_status=$?
alpar@9 7894 cat out/conftest.err >&5
alpar@9 7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
alpar@9 7896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
alpar@9 7897 then
alpar@9 7898 # The compiler can only warn and ignore the option if not recognized
alpar@9 7899 # So say no if there are warnings
alpar@9 7900 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
alpar@9 7901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
alpar@9 7902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
alpar@9 7903 lt_cv_prog_compiler_c_o=yes
alpar@9 7904 fi
alpar@9 7905 fi
alpar@9 7906 chmod u+w . 2>&5
alpar@9 7907 $RM conftest*
alpar@9 7908 # SGI C++ compiler will create directory out/ii_files/ for
alpar@9 7909 # template instantiation
alpar@9 7910 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
alpar@9 7911 $RM out/* && rmdir out
alpar@9 7912 cd ..
alpar@9 7913 $RM -r conftest
alpar@9 7914 $RM conftest*
alpar@9 7915
alpar@9 7916 fi
alpar@9 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
alpar@9 7918 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
alpar@9 7919
alpar@9 7920
alpar@9 7921
alpar@9 7922
alpar@9 7923
alpar@9 7924
alpar@9 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
alpar@9 7926 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
alpar@9 7927 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
alpar@9 7928 $as_echo_n "(cached) " >&6
alpar@9 7929 else
alpar@9 7930 lt_cv_prog_compiler_c_o=no
alpar@9 7931 $RM -r conftest 2>/dev/null
alpar@9 7932 mkdir conftest
alpar@9 7933 cd conftest
alpar@9 7934 mkdir out
alpar@9 7935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
alpar@9 7936
alpar@9 7937 lt_compiler_flag="-o out/conftest2.$ac_objext"
alpar@9 7938 # Insert the option either (1) after the last *FLAGS variable, or
alpar@9 7939 # (2) before a word containing "conftest.", or (3) at the end.
alpar@9 7940 # Note that $ac_compile itself does not contain backslashes and begins
alpar@9 7941 # with a dollar sign (not a hyphen), so the echo should work correctly.
alpar@9 7942 lt_compile=`echo "$ac_compile" | $SED \
alpar@9 7943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
alpar@9 7944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
alpar@9 7945 -e 's:$: $lt_compiler_flag:'`
alpar@9 7946 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
alpar@9 7947 (eval "$lt_compile" 2>out/conftest.err)
alpar@9 7948 ac_status=$?
alpar@9 7949 cat out/conftest.err >&5
alpar@9 7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
alpar@9 7951 if (exit $ac_status) && test -s out/conftest2.$ac_objext
alpar@9 7952 then
alpar@9 7953 # The compiler can only warn and ignore the option if not recognized
alpar@9 7954 # So say no if there are warnings
alpar@9 7955 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
alpar@9 7956 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
alpar@9 7957 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
alpar@9 7958 lt_cv_prog_compiler_c_o=yes
alpar@9 7959 fi
alpar@9 7960 fi
alpar@9 7961 chmod u+w . 2>&5
alpar@9 7962 $RM conftest*
alpar@9 7963 # SGI C++ compiler will create directory out/ii_files/ for
alpar@9 7964 # template instantiation
alpar@9 7965 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
alpar@9 7966 $RM out/* && rmdir out
alpar@9 7967 cd ..
alpar@9 7968 $RM -r conftest
alpar@9 7969 $RM conftest*
alpar@9 7970
alpar@9 7971 fi
alpar@9 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
alpar@9 7973 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
alpar@9 7974
alpar@9 7975
alpar@9 7976
alpar@9 7977
alpar@9 7978 hard_links="nottested"
alpar@9 7979 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
alpar@9 7980 # do not overwrite the value of need_locks provided by the user
alpar@9 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
alpar@9 7982 $as_echo_n "checking if we can lock with hard links... " >&6; }
alpar@9 7983 hard_links=yes
alpar@9 7984 $RM conftest*
alpar@9 7985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
alpar@9 7986 touch conftest.a
alpar@9 7987 ln conftest.a conftest.b 2>&5 || hard_links=no
alpar@9 7988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
alpar@9 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
alpar@9 7990 $as_echo "$hard_links" >&6; }
alpar@9 7991 if test "$hard_links" = no; then
alpar@9 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
alpar@9 7993 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
alpar@9 7994 need_locks=warn
alpar@9 7995 fi
alpar@9 7996 else
alpar@9 7997 need_locks=no
alpar@9 7998 fi
alpar@9 7999
alpar@9 8000
alpar@9 8001
alpar@9 8002
alpar@9 8003
alpar@9 8004
alpar@9 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
alpar@9 8006 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
alpar@9 8007
alpar@9 8008 runpath_var=
alpar@9 8009 allow_undefined_flag=
alpar@9 8010 always_export_symbols=no
alpar@9 8011 archive_cmds=
alpar@9 8012 archive_expsym_cmds=
alpar@9 8013 compiler_needs_object=no
alpar@9 8014 enable_shared_with_static_runtimes=no
alpar@9 8015 export_dynamic_flag_spec=
alpar@9 8016 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
alpar@9 8017 hardcode_automatic=no
alpar@9 8018 hardcode_direct=no
alpar@9 8019 hardcode_direct_absolute=no
alpar@9 8020 hardcode_libdir_flag_spec=
alpar@9 8021 hardcode_libdir_flag_spec_ld=
alpar@9 8022 hardcode_libdir_separator=
alpar@9 8023 hardcode_minus_L=no
alpar@9 8024 hardcode_shlibpath_var=unsupported
alpar@9 8025 inherit_rpath=no
alpar@9 8026 link_all_deplibs=unknown
alpar@9 8027 module_cmds=
alpar@9 8028 module_expsym_cmds=
alpar@9 8029 old_archive_from_new_cmds=
alpar@9 8030 old_archive_from_expsyms_cmds=
alpar@9 8031 thread_safe_flag_spec=
alpar@9 8032 whole_archive_flag_spec=
alpar@9 8033 # include_expsyms should be a list of space-separated symbols to be *always*
alpar@9 8034 # included in the symbol list
alpar@9 8035 include_expsyms=
alpar@9 8036 # exclude_expsyms can be an extended regexp of symbols to exclude
alpar@9 8037 # it will be wrapped by ` (' and `)$', so one must not match beginning or
alpar@9 8038 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
alpar@9 8039 # as well as any symbol that contains `d'.
alpar@9 8040 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
alpar@9 8041 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
alpar@9 8042 # platforms (ab)use it in PIC code, but their linkers get confused if
alpar@9 8043 # the symbol is explicitly referenced. Since portable code cannot
alpar@9 8044 # rely on this symbol name, it's probably fine to never include it in
alpar@9 8045 # preloaded symbol tables.
alpar@9 8046 # Exclude shared library initialization/finalization symbols.
alpar@9 8047 extract_expsyms_cmds=
alpar@9 8048
alpar@9 8049 case $host_os in
alpar@9 8050 cygwin* | mingw* | pw32* | cegcc*)
alpar@9 8051 # FIXME: the MSVC++ port hasn't been tested in a loooong time
alpar@9 8052 # When not using gcc, we currently assume that we are using
alpar@9 8053 # Microsoft Visual C++.
alpar@9 8054 if test "$GCC" != yes; then
alpar@9 8055 with_gnu_ld=no
alpar@9 8056 fi
alpar@9 8057 ;;
alpar@9 8058 interix*)
alpar@9 8059 # we just hope/assume this is gcc and not c89 (= MSVC++)
alpar@9 8060 with_gnu_ld=yes
alpar@9 8061 ;;
alpar@9 8062 openbsd*)
alpar@9 8063 with_gnu_ld=no
alpar@9 8064 ;;
alpar@9 8065 esac
alpar@9 8066
alpar@9 8067 ld_shlibs=yes
alpar@9 8068
alpar@9 8069 # On some targets, GNU ld is compatible enough with the native linker
alpar@9 8070 # that we're better off using the native interface for both.
alpar@9 8071 lt_use_gnu_ld_interface=no
alpar@9 8072 if test "$with_gnu_ld" = yes; then
alpar@9 8073 case $host_os in
alpar@9 8074 aix*)
alpar@9 8075 # The AIX port of GNU ld has always aspired to compatibility
alpar@9 8076 # with the native linker. However, as the warning in the GNU ld
alpar@9 8077 # block says, versions before 2.19.5* couldn't really create working
alpar@9 8078 # shared libraries, regardless of the interface used.
alpar@9 8079 case `$LD -v 2>&1` in
alpar@9 8080 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
alpar@9 8081 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
alpar@9 8082 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
alpar@9 8083 *)
alpar@9 8084 lt_use_gnu_ld_interface=yes
alpar@9 8085 ;;
alpar@9 8086 esac
alpar@9 8087 ;;
alpar@9 8088 *)
alpar@9 8089 lt_use_gnu_ld_interface=yes
alpar@9 8090 ;;
alpar@9 8091 esac
alpar@9 8092 fi
alpar@9 8093
alpar@9 8094 if test "$lt_use_gnu_ld_interface" = yes; then
alpar@9 8095 # If archive_cmds runs LD, not CC, wlarc should be empty
alpar@9 8096 wlarc='${wl}'
alpar@9 8097
alpar@9 8098 # Set some defaults for GNU ld with shared library support. These
alpar@9 8099 # are reset later if shared libraries are not supported. Putting them
alpar@9 8100 # here allows them to be overridden if necessary.
alpar@9 8101 runpath_var=LD_RUN_PATH
alpar@9 8102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
alpar@9 8103 export_dynamic_flag_spec='${wl}--export-dynamic'
alpar@9 8104 # ancient GNU ld didn't support --whole-archive et. al.
alpar@9 8105 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
alpar@9 8106 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
alpar@9 8107 else
alpar@9 8108 whole_archive_flag_spec=
alpar@9 8109 fi
alpar@9 8110 supports_anon_versioning=no
alpar@9 8111 case `$LD -v 2>&1` in
alpar@9 8112 *GNU\ gold*) supports_anon_versioning=yes ;;
alpar@9 8113 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
alpar@9 8114 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
alpar@9 8115 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
alpar@9 8116 *\ 2.11.*) ;; # other 2.11 versions
alpar@9 8117 *) supports_anon_versioning=yes ;;
alpar@9 8118 esac
alpar@9 8119
alpar@9 8120 # See if GNU ld supports shared libraries.
alpar@9 8121 case $host_os in
alpar@9 8122 aix[3-9]*)
alpar@9 8123 # On AIX/PPC, the GNU linker is very broken
alpar@9 8124 if test "$host_cpu" != ia64; then
alpar@9 8125 ld_shlibs=no
alpar@9 8126 cat <<_LT_EOF 1>&2
alpar@9 8127
alpar@9 8128 *** Warning: the GNU linker, at least up to release 2.19, is reported
alpar@9 8129 *** to be unable to reliably create shared libraries on AIX.
alpar@9 8130 *** Therefore, libtool is disabling shared libraries support. If you
alpar@9 8131 *** really care for shared libraries, you may want to install binutils
alpar@9 8132 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
alpar@9 8133 *** You will then need to restart the configuration process.
alpar@9 8134
alpar@9 8135 _LT_EOF
alpar@9 8136 fi
alpar@9 8137 ;;
alpar@9 8138
alpar@9 8139 amigaos*)
alpar@9 8140 case $host_cpu in
alpar@9 8141 powerpc)
alpar@9 8142 # see comment about AmigaOS4 .so support
alpar@9 8143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
alpar@9 8144 archive_expsym_cmds=''
alpar@9 8145 ;;
alpar@9 8146 m68k)
alpar@9 8147 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)'
alpar@9 8148 hardcode_libdir_flag_spec='-L$libdir'
alpar@9 8149 hardcode_minus_L=yes
alpar@9 8150 ;;
alpar@9 8151 esac
alpar@9 8152 ;;
alpar@9 8153
alpar@9 8154 beos*)
alpar@9 8155 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
alpar@9 8156 allow_undefined_flag=unsupported
alpar@9 8157 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
alpar@9 8158 # support --undefined. This deserves some investigation. FIXME
alpar@9 8159 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
alpar@9 8160 else
alpar@9 8161 ld_shlibs=no
alpar@9 8162 fi
alpar@9 8163 ;;
alpar@9 8164
alpar@9 8165 cygwin* | mingw* | pw32* | cegcc*)
alpar@9 8166 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
alpar@9 8167 # as there is no search path for DLLs.
alpar@9 8168 hardcode_libdir_flag_spec='-L$libdir'
alpar@9 8169 export_dynamic_flag_spec='${wl}--export-all-symbols'
alpar@9 8170 allow_undefined_flag=unsupported
alpar@9 8171 always_export_symbols=no
alpar@9 8172 enable_shared_with_static_runtimes=yes
alpar@9 8173 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
alpar@9 8174 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
alpar@9 8175
alpar@9 8176 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
alpar@9 8177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
alpar@9 8178 # If the export-symbols file already is a .def file (1st line
alpar@9 8179 # is EXPORTS), use it as is; otherwise, prepend...
alpar@9 8180 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
alpar@9 8181 cp $export_symbols $output_objdir/$soname.def;
alpar@9 8182 else
alpar@9 8183 echo EXPORTS > $output_objdir/$soname.def;
alpar@9 8184 cat $export_symbols >> $output_objdir/$soname.def;
alpar@9 8185 fi~
alpar@9 8186 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
alpar@9 8187 else
alpar@9 8188 ld_shlibs=no
alpar@9 8189 fi
alpar@9 8190 ;;
alpar@9 8191
alpar@9 8192 haiku*)
alpar@9 8193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
alpar@9 8194 link_all_deplibs=yes
alpar@9 8195 ;;
alpar@9 8196
alpar@9 8197 interix[3-9]*)
alpar@9 8198 hardcode_direct=no
alpar@9 8199 hardcode_shlibpath_var=no
alpar@9 8200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
alpar@9 8201 export_dynamic_flag_spec='${wl}-E'
alpar@9 8202 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
alpar@9 8203 # Instead, shared libraries are loaded at an image base (0x10000000 by
alpar@9 8204 # default) and relocated if they conflict, which is a slow very memory
alpar@9 8205 # consuming and fragmenting process. To avoid this, we pick a random,
alpar@9 8206 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
alpar@9 8207 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
alpar@9 8208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
alpar@9 8209 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'
alpar@9 8210 ;;
alpar@9 8211
alpar@9 8212 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
alpar@9 8213 tmp_diet=no
alpar@9 8214 if test "$host_os" = linux-dietlibc; then
alpar@9 8215 case $cc_basename in
alpar@9 8216 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
alpar@9 8217 esac
alpar@9 8218 fi
alpar@9 8219 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
alpar@9 8220 && test "$tmp_diet" = no
alpar@9 8221 then
alpar@9 8222 tmp_addflag=
alpar@9 8223 tmp_sharedflag='-shared'
alpar@9 8224 case $cc_basename,$host_cpu in
alpar@9 8225 pgcc*) # Portland Group C compiler
alpar@9 8226 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
alpar@9 8227 tmp_addflag=' $pic_flag'
alpar@9 8228 ;;
alpar@9 8229 pgf77* | pgf90* | pgf95* | pgfortran*)
alpar@9 8230 # Portland Group f77 and f90 compilers
alpar@9 8231 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
alpar@9 8232 tmp_addflag=' $pic_flag -Mnomain' ;;
alpar@9 8233 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
alpar@9 8234 tmp_addflag=' -i_dynamic' ;;
alpar@9 8235 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
alpar@9 8236 tmp_addflag=' -i_dynamic -nofor_main' ;;
alpar@9 8237 ifc* | ifort*) # Intel Fortran compiler
alpar@9 8238 tmp_addflag=' -nofor_main' ;;
alpar@9 8239 lf95*) # Lahey Fortran 8.1
alpar@9 8240 whole_archive_flag_spec=
alpar@9 8241 tmp_sharedflag='--shared' ;;
alpar@9 8242 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
alpar@9 8243 tmp_sharedflag='-qmkshrobj'
alpar@9 8244 tmp_addflag= ;;
alpar@9 8245 nvcc*) # Cuda Compiler Driver 2.2
alpar@9 8246 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
alpar@9 8247 compiler_needs_object=yes
alpar@9 8248 ;;
alpar@9 8249 esac
alpar@9 8250 case `$CC -V 2>&1 | sed 5q` in
alpar@9 8251 *Sun\ C*) # Sun C 5.9
alpar@9 8252 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
alpar@9 8253 compiler_needs_object=yes
alpar@9 8254 tmp_sharedflag='-G' ;;
alpar@9 8255 *Sun\ F*) # Sun Fortran 8.3
alpar@9 8256 tmp_sharedflag='-G' ;;
alpar@9 8257 esac
alpar@9 8258 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
alpar@9 8259
alpar@9 8260 if test "x$supports_anon_versioning" = xyes; then
alpar@9 8261 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
alpar@9 8262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
alpar@9 8263 echo "local: *; };" >> $output_objdir/$libname.ver~
alpar@9 8264 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
alpar@9 8265 fi
alpar@9 8266
alpar@9 8267 case $cc_basename in
alpar@9 8268 xlf* | bgf* | bgxlf* | mpixlf*)
alpar@9 8269 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
alpar@9 8270 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
alpar@9 8271 hardcode_libdir_flag_spec=
alpar@9 8272 hardcode_libdir_flag_spec_ld='-rpath $libdir'
alpar@9 8273 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
alpar@9 8274 if test "x$supports_anon_versioning" = xyes; then
alpar@9 8275 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
alpar@9 8276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
alpar@9 8277 echo "local: *; };" >> $output_objdir/$libname.ver~
alpar@9 8278 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
alpar@9 8279 fi
alpar@9 8280 ;;
alpar@9 8281 esac
alpar@9 8282 else
alpar@9 8283 ld_shlibs=no
alpar@9 8284 fi
alpar@9 8285 ;;
alpar@9 8286
alpar@9 8287 netbsd*)
alpar@9 8288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
alpar@9 8289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
alpar@9 8290 wlarc=
alpar@9 8291 else
alpar@9 8292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
alpar@9 8293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
alpar@9 8294 fi
alpar@9 8295 ;;
alpar@9 8296
alpar@9 8297 solaris*)
alpar@9 8298 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
alpar@9 8299 ld_shlibs=no
alpar@9 8300 cat <<_LT_EOF 1>&2
alpar@9 8301
alpar@9 8302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
alpar@9 8303 *** create shared libraries on Solaris systems. Therefore, libtool
alpar@9 8304 *** is disabling shared libraries support. We urge you to upgrade GNU
alpar@9 8305 *** binutils to release 2.9.1 or newer. Another option is to modify
alpar@9 8306 *** your PATH or compiler configuration so that the native linker is
alpar@9 8307 *** used, and then restart.
alpar@9 8308
alpar@9 8309 _LT_EOF
alpar@9 8310 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
alpar@9 8311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
alpar@9 8312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
alpar@9 8313 else
alpar@9 8314 ld_shlibs=no
alpar@9 8315 fi
alpar@9 8316 ;;
alpar@9 8317
alpar@9 8318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
alpar@9 8319 case `$LD -v 2>&1` in
alpar@9 8320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
alpar@9 8321 ld_shlibs=no
alpar@9 8322 cat <<_LT_EOF 1>&2
alpar@9 8323
alpar@9 8324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
alpar@9 8325 *** reliably create shared libraries on SCO systems. Therefore, libtool
alpar@9 8326 *** is disabling shared libraries support. We urge you to upgrade GNU
alpar@9 8327 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
alpar@9 8328 *** your PATH or compiler configuration so that the native linker is
alpar@9 8329 *** used, and then restart.
alpar@9 8330
alpar@9 8331 _LT_EOF
alpar@9 8332 ;;
alpar@9 8333 *)
alpar@9 8334 # For security reasons, it is highly recommended that you always
alpar@9 8335 # use absolute paths for naming shared libraries, and exclude the
alpar@9 8336 # DT_RUNPATH tag from executables and libraries. But doing so
alpar@9 8337 # requires that you compile everything twice, which is a pain.
alpar@9 8338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
alpar@9 8339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
alpar@9 8340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
alpar@9 8341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
alpar@9 8342 else
alpar@9 8343 ld_shlibs=no
alpar@9 8344 fi
alpar@9 8345 ;;
alpar@9 8346 esac
alpar@9 8347 ;;
alpar@9 8348
alpar@9 8349 sunos4*)
alpar@9 8350 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
alpar@9 8351 wlarc=
alpar@9 8352 hardcode_direct=yes
alpar@9 8353 hardcode_shlibpath_var=no
alpar@9 8354 ;;
alpar@9 8355
alpar@9 8356 *)
alpar@9 8357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
alpar@9 8358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
alpar@9 8359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
alpar@9 8360 else
alpar@9 8361 ld_shlibs=no
alpar@9 8362 fi
alpar@9 8363 ;;
alpar@9 8364 esac
alpar@9 8365
alpar@9 8366 if test "$ld_shlibs" = no; then
alpar@9 8367 runpath_var=
alpar@9 8368 hardcode_libdir_flag_spec=
alpar@9 8369 export_dynamic_flag_spec=
alpar@9 8370 whole_archive_flag_spec=
alpar@9 8371 fi
alpar@9 8372 else
alpar@9 8373 # PORTME fill in a description of your system's linker (not GNU ld)
alpar@9 8374 case $host_os in
alpar@9 8375 aix3*)
alpar@9 8376 allow_undefined_flag=unsupported
alpar@9 8377 always_export_symbols=yes
alpar@9 8378 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'
alpar@9 8379 # Note: this linker hardcodes the directories in LIBPATH if there
alpar@9 8380 # are no directories specified by -L.
alpar@9 8381 hardcode_minus_L=yes
alpar@9 8382 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
alpar@9 8383 # Neither direct hardcoding nor static linking is supported with a
alpar@9 8384 # broken collect2.
alpar@9 8385 hardcode_direct=unsupported
alpar@9 8386 fi
alpar@9 8387 ;;
alpar@9 8388
alpar@9 8389 aix[4-9]*)
alpar@9 8390 if test "$host_cpu" = ia64; then
alpar@9 8391 # On IA64, the linker does run time linking by default, so we don't
alpar@9 8392 # have to do anything special.
alpar@9 8393 aix_use_runtimelinking=no
alpar@9 8394 exp_sym_flag='-Bexport'
alpar@9 8395 no_entry_flag=""
alpar@9 8396 else
alpar@9 8397 # If we're using GNU nm, then we don't want the "-C" option.
alpar@9 8398 # -C means demangle to AIX nm, but means don't demangle with GNU nm
alpar@9 8399 # Also, AIX nm treats weak defined symbols like other global
alpar@9 8400 # defined symbols, whereas GNU nm marks them as "W".
alpar@9 8401 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
alpar@9 8402 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
alpar@9 8403 else
alpar@9 8404 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'
alpar@9 8405 fi
alpar@9 8406 aix_use_runtimelinking=no
alpar@9 8407
alpar@9 8408 # Test if we are trying to use run time linking or normal
alpar@9 8409 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
alpar@9 8410 # need to do runtime linking.
alpar@9 8411 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
alpar@9 8412 for ld_flag in $LDFLAGS; do
alpar@9 8413 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
alpar@9 8414 aix_use_runtimelinking=yes
alpar@9 8415 break
alpar@9 8416 fi
alpar@9 8417 done
alpar@9 8418 ;;
alpar@9 8419 esac
alpar@9 8420
alpar@9 8421 exp_sym_flag='-bexport'
alpar@9 8422 no_entry_flag='-bnoentry'
alpar@9 8423 fi
alpar@9 8424
alpar@9 8425 # When large executables or shared objects are built, AIX ld can
alpar@9 8426 # have problems creating the table of contents. If linking a library
alpar@9 8427 # or program results in "error TOC overflow" add -mminimal-toc to
alpar@9 8428 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
alpar@9 8429 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
alpar@9 8430
alpar@9 8431 archive_cmds=''
alpar@9 8432 hardcode_direct=yes
alpar@9 8433 hardcode_direct_absolute=yes
alpar@9 8434 hardcode_libdir_separator=':'
alpar@9 8435 link_all_deplibs=yes
alpar@9 8436 file_list_spec='${wl}-f,'
alpar@9 8437
alpar@9 8438 if test "$GCC" = yes; then
alpar@9 8439 case $host_os in aix4.[012]|aix4.[012].*)
alpar@9 8440 # We only want to do this on AIX 4.2 and lower, the check
alpar@9 8441 # below for broken collect2 doesn't work under 4.3+
alpar@9 8442 collect2name=`${CC} -print-prog-name=collect2`
alpar@9 8443 if test -f "$collect2name" &&
alpar@9 8444 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
alpar@9 8445 then
alpar@9 8446 # We have reworked collect2
alpar@9 8447 :
alpar@9 8448 else
alpar@9 8449 # We have old collect2
alpar@9 8450 hardcode_direct=unsupported
alpar@9 8451 # It fails to find uninstalled libraries when the uninstalled
alpar@9 8452 # path is not listed in the libpath. Setting hardcode_minus_L
alpar@9 8453 # to unsupported forces relinking
alpar@9 8454 hardcode_minus_L=yes
alpar@9 8455 hardcode_libdir_flag_spec='-L$libdir'
alpar@9 8456 hardcode_libdir_separator=
alpar@9 8457 fi
alpar@9 8458 ;;
alpar@9 8459 esac
alpar@9 8460 shared_flag='-shared'
alpar@9 8461 if test "$aix_use_runtimelinking" = yes; then
alpar@9 8462 shared_flag="$shared_flag "'${wl}-G'
alpar@9 8463 fi
alpar@9 8464 else
alpar@9 8465 # not using gcc
alpar@9 8466 if test "$host_cpu" = ia64; then
alpar@9 8467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
alpar@9 8468 # chokes on -Wl,-G. The following line is correct:
alpar@9 8469 shared_flag='-G'
alpar@9 8470 else
alpar@9 8471 if test "$aix_use_runtimelinking" = yes; then
alpar@9 8472 shared_flag='${wl}-G'
alpar@9 8473 else
alpar@9 8474 shared_flag='${wl}-bM:SRE'
alpar@9 8475 fi
alpar@9 8476 fi
alpar@9 8477 fi
alpar@9 8478
alpar@9 8479 export_dynamic_flag_spec='${wl}-bexpall'
alpar@9 8480 # It seems that -bexpall does not export symbols beginning with
alpar@9 8481 # underscore (_), so it is better to generate a list of symbols to export.
alpar@9 8482 always_export_symbols=yes
alpar@9 8483 if test "$aix_use_runtimelinking" = yes; then
alpar@9 8484 # Warning - without using the other runtime loading flags (-brtl),
alpar@9 8485 # -berok will link without error, but may produce a broken library.
alpar@9 8486 allow_undefined_flag='-berok'
alpar@9 8487 # Determine the default libpath from the value encoded in an
alpar@9 8488 # empty executable.
alpar@9 8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 8490 /* end confdefs.h. */
alpar@9 8491
alpar@9 8492 int
alpar@9 8493 main ()
alpar@9 8494 {
alpar@9 8495
alpar@9 8496 ;
alpar@9 8497 return 0;
alpar@9 8498 }
alpar@9 8499 _ACEOF
alpar@9 8500 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 8501
alpar@9 8502 lt_aix_libpath_sed='
alpar@9 8503 /Import File Strings/,/^$/ {
alpar@9 8504 /^0/ {
alpar@9 8505 s/^0 *\(.*\)$/\1/
alpar@9 8506 p
alpar@9 8507 }
alpar@9 8508 }'
alpar@9 8509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
alpar@9 8510 # Check for a 64-bit object if we didn't find anything.
alpar@9 8511 if test -z "$aix_libpath"; then
alpar@9 8512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
alpar@9 8513 fi
alpar@9 8514 fi
alpar@9 8515 rm -f core conftest.err conftest.$ac_objext \
alpar@9 8516 conftest$ac_exeext conftest.$ac_ext
alpar@9 8517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
alpar@9 8518
alpar@9 8519 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
alpar@9 8520 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
alpar@9 8521 else
alpar@9 8522 if test "$host_cpu" = ia64; then
alpar@9 8523 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
alpar@9 8524 allow_undefined_flag="-z nodefs"
alpar@9 8525 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"
alpar@9 8526 else
alpar@9 8527 # Determine the default libpath from the value encoded in an
alpar@9 8528 # empty executable.
alpar@9 8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 8530 /* end confdefs.h. */
alpar@9 8531
alpar@9 8532 int
alpar@9 8533 main ()
alpar@9 8534 {
alpar@9 8535
alpar@9 8536 ;
alpar@9 8537 return 0;
alpar@9 8538 }
alpar@9 8539 _ACEOF
alpar@9 8540 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 8541
alpar@9 8542 lt_aix_libpath_sed='
alpar@9 8543 /Import File Strings/,/^$/ {
alpar@9 8544 /^0/ {
alpar@9 8545 s/^0 *\(.*\)$/\1/
alpar@9 8546 p
alpar@9 8547 }
alpar@9 8548 }'
alpar@9 8549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
alpar@9 8550 # Check for a 64-bit object if we didn't find anything.
alpar@9 8551 if test -z "$aix_libpath"; then
alpar@9 8552 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
alpar@9 8553 fi
alpar@9 8554 fi
alpar@9 8555 rm -f core conftest.err conftest.$ac_objext \
alpar@9 8556 conftest$ac_exeext conftest.$ac_ext
alpar@9 8557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
alpar@9 8558
alpar@9 8559 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
alpar@9 8560 # Warning - without using the other run time loading flags,
alpar@9 8561 # -berok will link without error, but may produce a broken library.
alpar@9 8562 no_undefined_flag=' ${wl}-bernotok'
alpar@9 8563 allow_undefined_flag=' ${wl}-berok'
alpar@9 8564 if test "$with_gnu_ld" = yes; then
alpar@9 8565 # We only use this code for GNU lds that support --whole-archive.
alpar@9 8566 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
alpar@9 8567 else
alpar@9 8568 # Exported symbols can be pulled into shared objects from archives
alpar@9 8569 whole_archive_flag_spec='$convenience'
alpar@9 8570 fi
alpar@9 8571 archive_cmds_need_lc=yes
alpar@9 8572 # This is similar to how AIX traditionally builds its shared libraries.
alpar@9 8573 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'
alpar@9 8574 fi
alpar@9 8575 fi
alpar@9 8576 ;;
alpar@9 8577
alpar@9 8578 amigaos*)
alpar@9 8579 case $host_cpu in
alpar@9 8580 powerpc)
alpar@9 8581 # see comment about AmigaOS4 .so support
alpar@9 8582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
alpar@9 8583 archive_expsym_cmds=''
alpar@9 8584 ;;
alpar@9 8585 m68k)
alpar@9 8586 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)'
alpar@9 8587 hardcode_libdir_flag_spec='-L$libdir'
alpar@9 8588 hardcode_minus_L=yes
alpar@9 8589 ;;
alpar@9 8590 esac
alpar@9 8591 ;;
alpar@9 8592
alpar@9 8593 bsdi[45]*)
alpar@9 8594 export_dynamic_flag_spec=-rdynamic
alpar@9 8595 ;;
alpar@9 8596
alpar@9 8597 cygwin* | mingw* | pw32* | cegcc*)
alpar@9 8598 # When not using gcc, we currently assume that we are using
alpar@9 8599 # Microsoft Visual C++.
alpar@9 8600 # hardcode_libdir_flag_spec is actually meaningless, as there is
alpar@9 8601 # no search path for DLLs.
alpar@9 8602 hardcode_libdir_flag_spec=' '
alpar@9 8603 allow_undefined_flag=unsupported
alpar@9 8604 # Tell ltmain to make .lib files, not .a files.
alpar@9 8605 libext=lib
alpar@9 8606 # Tell ltmain to make .dll files, not .so files.
alpar@9 8607 shrext_cmds=".dll"
alpar@9 8608 # FIXME: Setting linknames here is a bad hack.
alpar@9 8609 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
alpar@9 8610 # The linker will automatically build a .lib file if we build a DLL.
alpar@9 8611 old_archive_from_new_cmds='true'
alpar@9 8612 # FIXME: Should let the user specify the lib program.
alpar@9 8613 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
alpar@9 8614 fix_srcfile_path='`cygpath -w "$srcfile"`'
alpar@9 8615 enable_shared_with_static_runtimes=yes
alpar@9 8616 ;;
alpar@9 8617
alpar@9 8618 darwin* | rhapsody*)
alpar@9 8619
alpar@9 8620
alpar@9 8621 archive_cmds_need_lc=no
alpar@9 8622 hardcode_direct=no
alpar@9 8623 hardcode_automatic=yes
alpar@9 8624 hardcode_shlibpath_var=unsupported
alpar@9 8625 if test "$lt_cv_ld_force_load" = "yes"; then
alpar@9 8626 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
alpar@9 8627 else
alpar@9 8628 whole_archive_flag_spec=''
alpar@9 8629 fi
alpar@9 8630 link_all_deplibs=yes
alpar@9 8631 allow_undefined_flag="$_lt_dar_allow_undefined"
alpar@9 8632 case $cc_basename in
alpar@9 8633 ifort*) _lt_dar_can_shared=yes ;;
alpar@9 8634 *) _lt_dar_can_shared=$GCC ;;
alpar@9 8635 esac
alpar@9 8636 if test "$_lt_dar_can_shared" = "yes"; then
alpar@9 8637 output_verbose_link_cmd=func_echo_all
alpar@9 8638 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
alpar@9 8639 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
alpar@9 8640 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}"
alpar@9 8641 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}"
alpar@9 8642
alpar@9 8643 else
alpar@9 8644 ld_shlibs=no
alpar@9 8645 fi
alpar@9 8646
alpar@9 8647 ;;
alpar@9 8648
alpar@9 8649 dgux*)
alpar@9 8650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
alpar@9 8651 hardcode_libdir_flag_spec='-L$libdir'
alpar@9 8652 hardcode_shlibpath_var=no
alpar@9 8653 ;;
alpar@9 8654
alpar@9 8655 freebsd1*)
alpar@9 8656 ld_shlibs=no
alpar@9 8657 ;;
alpar@9 8658
alpar@9 8659 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
alpar@9 8660 # support. Future versions do this automatically, but an explicit c++rt0.o
alpar@9 8661 # does not break anything, and helps significantly (at the cost of a little
alpar@9 8662 # extra space).
alpar@9 8663 freebsd2.2*)
alpar@9 8664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
alpar@9 8665 hardcode_libdir_flag_spec='-R$libdir'
alpar@9 8666 hardcode_direct=yes
alpar@9 8667 hardcode_shlibpath_var=no
alpar@9 8668 ;;
alpar@9 8669
alpar@9 8670 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
alpar@9 8671 freebsd2*)
alpar@9 8672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
alpar@9 8673 hardcode_direct=yes
alpar@9 8674 hardcode_minus_L=yes
alpar@9 8675 hardcode_shlibpath_var=no
alpar@9 8676 ;;
alpar@9 8677
alpar@9 8678 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
alpar@9 8679 freebsd* | dragonfly*)
alpar@9 8680 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8681 hardcode_libdir_flag_spec='-R$libdir'
alpar@9 8682 hardcode_direct=yes
alpar@9 8683 hardcode_shlibpath_var=no
alpar@9 8684 ;;
alpar@9 8685
alpar@9 8686 hpux9*)
alpar@9 8687 if test "$GCC" = yes; then
alpar@9 8688 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'
alpar@9 8689 else
alpar@9 8690 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'
alpar@9 8691 fi
alpar@9 8692 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
alpar@9 8693 hardcode_libdir_separator=:
alpar@9 8694 hardcode_direct=yes
alpar@9 8695
alpar@9 8696 # hardcode_minus_L: Not really in the search PATH,
alpar@9 8697 # but as the default location of the library.
alpar@9 8698 hardcode_minus_L=yes
alpar@9 8699 export_dynamic_flag_spec='${wl}-E'
alpar@9 8700 ;;
alpar@9 8701
alpar@9 8702 hpux10*)
alpar@9 8703 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
alpar@9 8704 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8705 else
alpar@9 8706 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
alpar@9 8707 fi
alpar@9 8708 if test "$with_gnu_ld" = no; then
alpar@9 8709 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
alpar@9 8710 hardcode_libdir_flag_spec_ld='+b $libdir'
alpar@9 8711 hardcode_libdir_separator=:
alpar@9 8712 hardcode_direct=yes
alpar@9 8713 hardcode_direct_absolute=yes
alpar@9 8714 export_dynamic_flag_spec='${wl}-E'
alpar@9 8715 # hardcode_minus_L: Not really in the search PATH,
alpar@9 8716 # but as the default location of the library.
alpar@9 8717 hardcode_minus_L=yes
alpar@9 8718 fi
alpar@9 8719 ;;
alpar@9 8720
alpar@9 8721 hpux11*)
alpar@9 8722 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
alpar@9 8723 case $host_cpu in
alpar@9 8724 hppa*64*)
alpar@9 8725 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8726 ;;
alpar@9 8727 ia64*)
alpar@9 8728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8729 ;;
alpar@9 8730 *)
alpar@9 8731 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8732 ;;
alpar@9 8733 esac
alpar@9 8734 else
alpar@9 8735 case $host_cpu in
alpar@9 8736 hppa*64*)
alpar@9 8737 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8738 ;;
alpar@9 8739 ia64*)
alpar@9 8740 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8741 ;;
alpar@9 8742 *)
alpar@9 8743
alpar@9 8744 # Older versions of the 11.00 compiler do not understand -b yet
alpar@9 8745 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
alpar@9 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
alpar@9 8747 $as_echo_n "checking if $CC understands -b... " >&6; }
alpar@9 8748 if test "${lt_cv_prog_compiler__b+set}" = set; then :
alpar@9 8749 $as_echo_n "(cached) " >&6
alpar@9 8750 else
alpar@9 8751 lt_cv_prog_compiler__b=no
alpar@9 8752 save_LDFLAGS="$LDFLAGS"
alpar@9 8753 LDFLAGS="$LDFLAGS -b"
alpar@9 8754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
alpar@9 8755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
alpar@9 8756 # The linker can only warn and ignore the option if not recognized
alpar@9 8757 # So say no if there are warnings
alpar@9 8758 if test -s conftest.err; then
alpar@9 8759 # Append any errors to the config.log.
alpar@9 8760 cat conftest.err 1>&5
alpar@9 8761 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
alpar@9 8762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
alpar@9 8763 if diff conftest.exp conftest.er2 >/dev/null; then
alpar@9 8764 lt_cv_prog_compiler__b=yes
alpar@9 8765 fi
alpar@9 8766 else
alpar@9 8767 lt_cv_prog_compiler__b=yes
alpar@9 8768 fi
alpar@9 8769 fi
alpar@9 8770 $RM -r conftest*
alpar@9 8771 LDFLAGS="$save_LDFLAGS"
alpar@9 8772
alpar@9 8773 fi
alpar@9 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
alpar@9 8775 $as_echo "$lt_cv_prog_compiler__b" >&6; }
alpar@9 8776
alpar@9 8777 if test x"$lt_cv_prog_compiler__b" = xyes; then
alpar@9 8778 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8779 else
alpar@9 8780 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
alpar@9 8781 fi
alpar@9 8782
alpar@9 8783 ;;
alpar@9 8784 esac
alpar@9 8785 fi
alpar@9 8786 if test "$with_gnu_ld" = no; then
alpar@9 8787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
alpar@9 8788 hardcode_libdir_separator=:
alpar@9 8789
alpar@9 8790 case $host_cpu in
alpar@9 8791 hppa*64*|ia64*)
alpar@9 8792 hardcode_direct=no
alpar@9 8793 hardcode_shlibpath_var=no
alpar@9 8794 ;;
alpar@9 8795 *)
alpar@9 8796 hardcode_direct=yes
alpar@9 8797 hardcode_direct_absolute=yes
alpar@9 8798 export_dynamic_flag_spec='${wl}-E'
alpar@9 8799
alpar@9 8800 # hardcode_minus_L: Not really in the search PATH,
alpar@9 8801 # but as the default location of the library.
alpar@9 8802 hardcode_minus_L=yes
alpar@9 8803 ;;
alpar@9 8804 esac
alpar@9 8805 fi
alpar@9 8806 ;;
alpar@9 8807
alpar@9 8808 irix5* | irix6* | nonstopux*)
alpar@9 8809 if test "$GCC" = yes; then
alpar@9 8810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
alpar@9 8811 # Try to use the -exported_symbol ld option, if it does not
alpar@9 8812 # work, assume that -exports_file does not work either and
alpar@9 8813 # implicitly export all symbols.
alpar@9 8814 save_LDFLAGS="$LDFLAGS"
alpar@9 8815 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
alpar@9 8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 8817 /* end confdefs.h. */
alpar@9 8818 int foo(void) {}
alpar@9 8819 _ACEOF
alpar@9 8820 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 8821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
alpar@9 8822
alpar@9 8823 fi
alpar@9 8824 rm -f core conftest.err conftest.$ac_objext \
alpar@9 8825 conftest$ac_exeext conftest.$ac_ext
alpar@9 8826 LDFLAGS="$save_LDFLAGS"
alpar@9 8827 else
alpar@9 8828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
alpar@9 8829 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
alpar@9 8830 fi
alpar@9 8831 archive_cmds_need_lc='no'
alpar@9 8832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
alpar@9 8833 hardcode_libdir_separator=:
alpar@9 8834 inherit_rpath=yes
alpar@9 8835 link_all_deplibs=yes
alpar@9 8836 ;;
alpar@9 8837
alpar@9 8838 netbsd*)
alpar@9 8839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
alpar@9 8840 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
alpar@9 8841 else
alpar@9 8842 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
alpar@9 8843 fi
alpar@9 8844 hardcode_libdir_flag_spec='-R$libdir'
alpar@9 8845 hardcode_direct=yes
alpar@9 8846 hardcode_shlibpath_var=no
alpar@9 8847 ;;
alpar@9 8848
alpar@9 8849 newsos6)
alpar@9 8850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
alpar@9 8851 hardcode_direct=yes
alpar@9 8852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
alpar@9 8853 hardcode_libdir_separator=:
alpar@9 8854 hardcode_shlibpath_var=no
alpar@9 8855 ;;
alpar@9 8856
alpar@9 8857 *nto* | *qnx*)
alpar@9 8858 ;;
alpar@9 8859
alpar@9 8860 openbsd*)
alpar@9 8861 if test -f /usr/libexec/ld.so; then
alpar@9 8862 hardcode_direct=yes
alpar@9 8863 hardcode_shlibpath_var=no
alpar@9 8864 hardcode_direct_absolute=yes
alpar@9 8865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
alpar@9 8866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8867 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
alpar@9 8868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
alpar@9 8869 export_dynamic_flag_spec='${wl}-E'
alpar@9 8870 else
alpar@9 8871 case $host_os in
alpar@9 8872 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
alpar@9 8873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
alpar@9 8874 hardcode_libdir_flag_spec='-R$libdir'
alpar@9 8875 ;;
alpar@9 8876 *)
alpar@9 8877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8878 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
alpar@9 8879 ;;
alpar@9 8880 esac
alpar@9 8881 fi
alpar@9 8882 else
alpar@9 8883 ld_shlibs=no
alpar@9 8884 fi
alpar@9 8885 ;;
alpar@9 8886
alpar@9 8887 os2*)
alpar@9 8888 hardcode_libdir_flag_spec='-L$libdir'
alpar@9 8889 hardcode_minus_L=yes
alpar@9 8890 allow_undefined_flag=unsupported
alpar@9 8891 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'
alpar@9 8892 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
alpar@9 8893 ;;
alpar@9 8894
alpar@9 8895 osf3*)
alpar@9 8896 if test "$GCC" = yes; then
alpar@9 8897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
alpar@9 8898 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
alpar@9 8899 else
alpar@9 8900 allow_undefined_flag=' -expect_unresolved \*'
alpar@9 8901 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
alpar@9 8902 fi
alpar@9 8903 archive_cmds_need_lc='no'
alpar@9 8904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
alpar@9 8905 hardcode_libdir_separator=:
alpar@9 8906 ;;
alpar@9 8907
alpar@9 8908 osf4* | osf5*) # as osf3* with the addition of -msym flag
alpar@9 8909 if test "$GCC" = yes; then
alpar@9 8910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
alpar@9 8911 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
alpar@9 8912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
alpar@9 8913 else
alpar@9 8914 allow_undefined_flag=' -expect_unresolved \*'
alpar@9 8915 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
alpar@9 8916 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~
alpar@9 8917 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
alpar@9 8918
alpar@9 8919 # Both c and cxx compiler support -rpath directly
alpar@9 8920 hardcode_libdir_flag_spec='-rpath $libdir'
alpar@9 8921 fi
alpar@9 8922 archive_cmds_need_lc='no'
alpar@9 8923 hardcode_libdir_separator=:
alpar@9 8924 ;;
alpar@9 8925
alpar@9 8926 solaris*)
alpar@9 8927 no_undefined_flag=' -z defs'
alpar@9 8928 if test "$GCC" = yes; then
alpar@9 8929 wlarc='${wl}'
alpar@9 8930 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8931 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
alpar@9 8932 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
alpar@9 8933 else
alpar@9 8934 case `$CC -V 2>&1` in
alpar@9 8935 *"Compilers 5.0"*)
alpar@9 8936 wlarc=''
alpar@9 8937 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
alpar@9 8938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
alpar@9 8939 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
alpar@9 8940 ;;
alpar@9 8941 *)
alpar@9 8942 wlarc='${wl}'
alpar@9 8943 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
alpar@9 8945 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
alpar@9 8946 ;;
alpar@9 8947 esac
alpar@9 8948 fi
alpar@9 8949 hardcode_libdir_flag_spec='-R$libdir'
alpar@9 8950 hardcode_shlibpath_var=no
alpar@9 8951 case $host_os in
alpar@9 8952 solaris2.[0-5] | solaris2.[0-5].*) ;;
alpar@9 8953 *)
alpar@9 8954 # The compiler driver will combine and reorder linker options,
alpar@9 8955 # but understands `-z linker_flag'. GCC discards it without `$wl',
alpar@9 8956 # but is careful enough not to reorder.
alpar@9 8957 # Supported since Solaris 2.6 (maybe 2.5.1?)
alpar@9 8958 if test "$GCC" = yes; then
alpar@9 8959 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
alpar@9 8960 else
alpar@9 8961 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
alpar@9 8962 fi
alpar@9 8963 ;;
alpar@9 8964 esac
alpar@9 8965 link_all_deplibs=yes
alpar@9 8966 ;;
alpar@9 8967
alpar@9 8968 sunos4*)
alpar@9 8969 if test "x$host_vendor" = xsequent; then
alpar@9 8970 # Use $CC to link under sequent, because it throws in some extra .o
alpar@9 8971 # files that make .init and .fini sections work.
alpar@9 8972 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 8973 else
alpar@9 8974 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
alpar@9 8975 fi
alpar@9 8976 hardcode_libdir_flag_spec='-L$libdir'
alpar@9 8977 hardcode_direct=yes
alpar@9 8978 hardcode_minus_L=yes
alpar@9 8979 hardcode_shlibpath_var=no
alpar@9 8980 ;;
alpar@9 8981
alpar@9 8982 sysv4)
alpar@9 8983 case $host_vendor in
alpar@9 8984 sni)
alpar@9 8985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
alpar@9 8986 hardcode_direct=yes # is this really true???
alpar@9 8987 ;;
alpar@9 8988 siemens)
alpar@9 8989 ## LD is ld it makes a PLAMLIB
alpar@9 8990 ## CC just makes a GrossModule.
alpar@9 8991 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
alpar@9 8992 reload_cmds='$CC -r -o $output$reload_objs'
alpar@9 8993 hardcode_direct=no
alpar@9 8994 ;;
alpar@9 8995 motorola)
alpar@9 8996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
alpar@9 8997 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
alpar@9 8998 ;;
alpar@9 8999 esac
alpar@9 9000 runpath_var='LD_RUN_PATH'
alpar@9 9001 hardcode_shlibpath_var=no
alpar@9 9002 ;;
alpar@9 9003
alpar@9 9004 sysv4.3*)
alpar@9 9005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
alpar@9 9006 hardcode_shlibpath_var=no
alpar@9 9007 export_dynamic_flag_spec='-Bexport'
alpar@9 9008 ;;
alpar@9 9009
alpar@9 9010 sysv4*MP*)
alpar@9 9011 if test -d /usr/nec; then
alpar@9 9012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
alpar@9 9013 hardcode_shlibpath_var=no
alpar@9 9014 runpath_var=LD_RUN_PATH
alpar@9 9015 hardcode_runpath_var=yes
alpar@9 9016 ld_shlibs=yes
alpar@9 9017 fi
alpar@9 9018 ;;
alpar@9 9019
alpar@9 9020 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
alpar@9 9021 no_undefined_flag='${wl}-z,text'
alpar@9 9022 archive_cmds_need_lc=no
alpar@9 9023 hardcode_shlibpath_var=no
alpar@9 9024 runpath_var='LD_RUN_PATH'
alpar@9 9025
alpar@9 9026 if test "$GCC" = yes; then
alpar@9 9027 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 9028 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 9029 else
alpar@9 9030 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 9031 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 9032 fi
alpar@9 9033 ;;
alpar@9 9034
alpar@9 9035 sysv5* | sco3.2v5* | sco5v6*)
alpar@9 9036 # Note: We can NOT use -z defs as we might desire, because we do not
alpar@9 9037 # link with -lc, and that would cause any symbols used from libc to
alpar@9 9038 # always be unresolved, which means just about no library would
alpar@9 9039 # ever link correctly. If we're not using GNU ld we use -z text
alpar@9 9040 # though, which does catch some bad symbols but isn't as heavy-handed
alpar@9 9041 # as -z defs.
alpar@9 9042 no_undefined_flag='${wl}-z,text'
alpar@9 9043 allow_undefined_flag='${wl}-z,nodefs'
alpar@9 9044 archive_cmds_need_lc=no
alpar@9 9045 hardcode_shlibpath_var=no
alpar@9 9046 hardcode_libdir_flag_spec='${wl}-R,$libdir'
alpar@9 9047 hardcode_libdir_separator=':'
alpar@9 9048 link_all_deplibs=yes
alpar@9 9049 export_dynamic_flag_spec='${wl}-Bexport'
alpar@9 9050 runpath_var='LD_RUN_PATH'
alpar@9 9051
alpar@9 9052 if test "$GCC" = yes; then
alpar@9 9053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 9054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 9055 else
alpar@9 9056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 9057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
alpar@9 9058 fi
alpar@9 9059 ;;
alpar@9 9060
alpar@9 9061 uts4*)
alpar@9 9062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
alpar@9 9063 hardcode_libdir_flag_spec='-L$libdir'
alpar@9 9064 hardcode_shlibpath_var=no
alpar@9 9065 ;;
alpar@9 9066
alpar@9 9067 *)
alpar@9 9068 ld_shlibs=no
alpar@9 9069 ;;
alpar@9 9070 esac
alpar@9 9071
alpar@9 9072 if test x$host_vendor = xsni; then
alpar@9 9073 case $host in
alpar@9 9074 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
alpar@9 9075 export_dynamic_flag_spec='${wl}-Blargedynsym'
alpar@9 9076 ;;
alpar@9 9077 esac
alpar@9 9078 fi
alpar@9 9079 fi
alpar@9 9080
alpar@9 9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
alpar@9 9082 $as_echo "$ld_shlibs" >&6; }
alpar@9 9083 test "$ld_shlibs" = no && can_build_shared=no
alpar@9 9084
alpar@9 9085 with_gnu_ld=$with_gnu_ld
alpar@9 9086
alpar@9 9087
alpar@9 9088
alpar@9 9089
alpar@9 9090
alpar@9 9091
alpar@9 9092
alpar@9 9093
alpar@9 9094
alpar@9 9095
alpar@9 9096
alpar@9 9097
alpar@9 9098
alpar@9 9099
alpar@9 9100
alpar@9 9101 #
alpar@9 9102 # Do we need to explicitly link libc?
alpar@9 9103 #
alpar@9 9104 case "x$archive_cmds_need_lc" in
alpar@9 9105 x|xyes)
alpar@9 9106 # Assume -lc should be added
alpar@9 9107 archive_cmds_need_lc=yes
alpar@9 9108
alpar@9 9109 if test "$enable_shared" = yes && test "$GCC" = yes; then
alpar@9 9110 case $archive_cmds in
alpar@9 9111 *'~'*)
alpar@9 9112 # FIXME: we may have to deal with multi-command sequences.
alpar@9 9113 ;;
alpar@9 9114 '$CC '*)
alpar@9 9115 # Test whether the compiler implicitly links with -lc since on some
alpar@9 9116 # systems, -lgcc has to come before -lc. If gcc already passes -lc
alpar@9 9117 # to ld, don't add -lc before -lgcc.
alpar@9 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
alpar@9 9119 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
alpar@9 9120 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
alpar@9 9121 $as_echo_n "(cached) " >&6
alpar@9 9122 else
alpar@9 9123 $RM conftest*
alpar@9 9124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
alpar@9 9125
alpar@9 9126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
alpar@9 9127 (eval $ac_compile) 2>&5
alpar@9 9128 ac_status=$?
alpar@9 9129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 9130 test $ac_status = 0; } 2>conftest.err; then
alpar@9 9131 soname=conftest
alpar@9 9132 lib=conftest
alpar@9 9133 libobjs=conftest.$ac_objext
alpar@9 9134 deplibs=
alpar@9 9135 wl=$lt_prog_compiler_wl
alpar@9 9136 pic_flag=$lt_prog_compiler_pic
alpar@9 9137 compiler_flags=-v
alpar@9 9138 linker_flags=-v
alpar@9 9139 verstring=
alpar@9 9140 output_objdir=.
alpar@9 9141 libname=conftest
alpar@9 9142 lt_save_allow_undefined_flag=$allow_undefined_flag
alpar@9 9143 allow_undefined_flag=
alpar@9 9144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
alpar@9 9145 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
alpar@9 9146 ac_status=$?
alpar@9 9147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 9148 test $ac_status = 0; }
alpar@9 9149 then
alpar@9 9150 lt_cv_archive_cmds_need_lc=no
alpar@9 9151 else
alpar@9 9152 lt_cv_archive_cmds_need_lc=yes
alpar@9 9153 fi
alpar@9 9154 allow_undefined_flag=$lt_save_allow_undefined_flag
alpar@9 9155 else
alpar@9 9156 cat conftest.err 1>&5
alpar@9 9157 fi
alpar@9 9158 $RM conftest*
alpar@9 9159
alpar@9 9160 fi
alpar@9 9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
alpar@9 9162 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
alpar@9 9163 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
alpar@9 9164 ;;
alpar@9 9165 esac
alpar@9 9166 fi
alpar@9 9167 ;;
alpar@9 9168 esac
alpar@9 9169
alpar@9 9170
alpar@9 9171
alpar@9 9172
alpar@9 9173
alpar@9 9174
alpar@9 9175
alpar@9 9176
alpar@9 9177
alpar@9 9178
alpar@9 9179
alpar@9 9180
alpar@9 9181
alpar@9 9182
alpar@9 9183
alpar@9 9184
alpar@9 9185
alpar@9 9186
alpar@9 9187
alpar@9 9188
alpar@9 9189
alpar@9 9190
alpar@9 9191
alpar@9 9192
alpar@9 9193
alpar@9 9194
alpar@9 9195
alpar@9 9196
alpar@9 9197
alpar@9 9198
alpar@9 9199
alpar@9 9200
alpar@9 9201
alpar@9 9202
alpar@9 9203
alpar@9 9204
alpar@9 9205
alpar@9 9206
alpar@9 9207
alpar@9 9208
alpar@9 9209
alpar@9 9210
alpar@9 9211
alpar@9 9212
alpar@9 9213
alpar@9 9214
alpar@9 9215
alpar@9 9216
alpar@9 9217
alpar@9 9218
alpar@9 9219
alpar@9 9220
alpar@9 9221
alpar@9 9222
alpar@9 9223
alpar@9 9224
alpar@9 9225
alpar@9 9226
alpar@9 9227
alpar@9 9228
alpar@9 9229
alpar@9 9230
alpar@9 9231
alpar@9 9232
alpar@9 9233
alpar@9 9234
alpar@9 9235
alpar@9 9236
alpar@9 9237
alpar@9 9238
alpar@9 9239
alpar@9 9240
alpar@9 9241
alpar@9 9242
alpar@9 9243
alpar@9 9244
alpar@9 9245
alpar@9 9246
alpar@9 9247
alpar@9 9248
alpar@9 9249
alpar@9 9250
alpar@9 9251
alpar@9 9252
alpar@9 9253
alpar@9 9254
alpar@9 9255
alpar@9 9256
alpar@9 9257
alpar@9 9258
alpar@9 9259
alpar@9 9260
alpar@9 9261
alpar@9 9262
alpar@9 9263
alpar@9 9264
alpar@9 9265
alpar@9 9266
alpar@9 9267
alpar@9 9268
alpar@9 9269
alpar@9 9270
alpar@9 9271
alpar@9 9272
alpar@9 9273
alpar@9 9274
alpar@9 9275
alpar@9 9276
alpar@9 9277
alpar@9 9278
alpar@9 9279
alpar@9 9280
alpar@9 9281
alpar@9 9282
alpar@9 9283
alpar@9 9284
alpar@9 9285
alpar@9 9286
alpar@9 9287
alpar@9 9288
alpar@9 9289
alpar@9 9290
alpar@9 9291
alpar@9 9292
alpar@9 9293
alpar@9 9294
alpar@9 9295
alpar@9 9296
alpar@9 9297
alpar@9 9298
alpar@9 9299
alpar@9 9300
alpar@9 9301
alpar@9 9302
alpar@9 9303
alpar@9 9304
alpar@9 9305
alpar@9 9306
alpar@9 9307
alpar@9 9308
alpar@9 9309
alpar@9 9310
alpar@9 9311
alpar@9 9312
alpar@9 9313
alpar@9 9314
alpar@9 9315
alpar@9 9316
alpar@9 9317
alpar@9 9318
alpar@9 9319
alpar@9 9320
alpar@9 9321
alpar@9 9322
alpar@9 9323
alpar@9 9324
alpar@9 9325
alpar@9 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
alpar@9 9327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
alpar@9 9328
alpar@9 9329 if test "$GCC" = yes; then
alpar@9 9330 case $host_os in
alpar@9 9331 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
alpar@9 9332 *) lt_awk_arg="/^libraries:/" ;;
alpar@9 9333 esac
alpar@9 9334 case $host_os in
alpar@9 9335 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
alpar@9 9336 *) lt_sed_strip_eq="s,=/,/,g" ;;
alpar@9 9337 esac
alpar@9 9338 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
alpar@9 9339 case $lt_search_path_spec in
alpar@9 9340 *\;*)
alpar@9 9341 # if the path contains ";" then we assume it to be the separator
alpar@9 9342 # otherwise default to the standard path separator (i.e. ":") - it is
alpar@9 9343 # assumed that no part of a normal pathname contains ";" but that should
alpar@9 9344 # okay in the real world where ";" in dirpaths is itself problematic.
alpar@9 9345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
alpar@9 9346 ;;
alpar@9 9347 *)
alpar@9 9348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
alpar@9 9349 ;;
alpar@9 9350 esac
alpar@9 9351 # Ok, now we have the path, separated by spaces, we can step through it
alpar@9 9352 # and add multilib dir if necessary.
alpar@9 9353 lt_tmp_lt_search_path_spec=
alpar@9 9354 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
alpar@9 9355 for lt_sys_path in $lt_search_path_spec; do
alpar@9 9356 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
alpar@9 9357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
alpar@9 9358 else
alpar@9 9359 test -d "$lt_sys_path" && \
alpar@9 9360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
alpar@9 9361 fi
alpar@9 9362 done
alpar@9 9363 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
alpar@9 9364 BEGIN {RS=" "; FS="/|\n";} {
alpar@9 9365 lt_foo="";
alpar@9 9366 lt_count=0;
alpar@9 9367 for (lt_i = NF; lt_i > 0; lt_i--) {
alpar@9 9368 if ($lt_i != "" && $lt_i != ".") {
alpar@9 9369 if ($lt_i == "..") {
alpar@9 9370 lt_count++;
alpar@9 9371 } else {
alpar@9 9372 if (lt_count == 0) {
alpar@9 9373 lt_foo="/" $lt_i lt_foo;
alpar@9 9374 } else {
alpar@9 9375 lt_count--;
alpar@9 9376 }
alpar@9 9377 }
alpar@9 9378 }
alpar@9 9379 }
alpar@9 9380 if (lt_foo != "") { lt_freq[lt_foo]++; }
alpar@9 9381 if (lt_freq[lt_foo] == 1) { print lt_foo; }
alpar@9 9382 }'`
alpar@9 9383 # AWK program above erroneously prepends '/' to C:/dos/paths
alpar@9 9384 # for these hosts.
alpar@9 9385 case $host_os in
alpar@9 9386 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
alpar@9 9387 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
alpar@9 9388 esac
alpar@9 9389 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
alpar@9 9390 else
alpar@9 9391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
alpar@9 9392 fi
alpar@9 9393 library_names_spec=
alpar@9 9394 libname_spec='lib$name'
alpar@9 9395 soname_spec=
alpar@9 9396 shrext_cmds=".so"
alpar@9 9397 postinstall_cmds=
alpar@9 9398 postuninstall_cmds=
alpar@9 9399 finish_cmds=
alpar@9 9400 finish_eval=
alpar@9 9401 shlibpath_var=
alpar@9 9402 shlibpath_overrides_runpath=unknown
alpar@9 9403 version_type=none
alpar@9 9404 dynamic_linker="$host_os ld.so"
alpar@9 9405 sys_lib_dlsearch_path_spec="/lib /usr/lib"
alpar@9 9406 need_lib_prefix=unknown
alpar@9 9407 hardcode_into_libs=no
alpar@9 9408
alpar@9 9409 # when you set need_version to no, make sure it does not cause -set_version
alpar@9 9410 # flags to be left without arguments
alpar@9 9411 need_version=unknown
alpar@9 9412
alpar@9 9413 case $host_os in
alpar@9 9414 aix3*)
alpar@9 9415 version_type=linux
alpar@9 9416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
alpar@9 9417 shlibpath_var=LIBPATH
alpar@9 9418
alpar@9 9419 # AIX 3 has no versioning support, so we append a major version to the name.
alpar@9 9420 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9421 ;;
alpar@9 9422
alpar@9 9423 aix[4-9]*)
alpar@9 9424 version_type=linux
alpar@9 9425 need_lib_prefix=no
alpar@9 9426 need_version=no
alpar@9 9427 hardcode_into_libs=yes
alpar@9 9428 if test "$host_cpu" = ia64; then
alpar@9 9429 # AIX 5 supports IA64
alpar@9 9430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
alpar@9 9431 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9432 else
alpar@9 9433 # With GCC up to 2.95.x, collect2 would create an import file
alpar@9 9434 # for dependence libraries. The import file would start with
alpar@9 9435 # the line `#! .'. This would cause the generated library to
alpar@9 9436 # depend on `.', always an invalid library. This was fixed in
alpar@9 9437 # development snapshots of GCC prior to 3.0.
alpar@9 9438 case $host_os in
alpar@9 9439 aix4 | aix4.[01] | aix4.[01].*)
alpar@9 9440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
alpar@9 9441 echo ' yes '
alpar@9 9442 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
alpar@9 9443 :
alpar@9 9444 else
alpar@9 9445 can_build_shared=no
alpar@9 9446 fi
alpar@9 9447 ;;
alpar@9 9448 esac
alpar@9 9449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
alpar@9 9450 # soname into executable. Probably we can add versioning support to
alpar@9 9451 # collect2, so additional links can be useful in future.
alpar@9 9452 if test "$aix_use_runtimelinking" = yes; then
alpar@9 9453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
alpar@9 9454 # instead of lib<name>.a to let people know that these are not
alpar@9 9455 # typical AIX shared libraries.
alpar@9 9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9457 else
alpar@9 9458 # We preserve .a as extension for shared libraries through AIX4.2
alpar@9 9459 # and later when we are not doing run time linking.
alpar@9 9460 library_names_spec='${libname}${release}.a $libname.a'
alpar@9 9461 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9462 fi
alpar@9 9463 shlibpath_var=LIBPATH
alpar@9 9464 fi
alpar@9 9465 ;;
alpar@9 9466
alpar@9 9467 amigaos*)
alpar@9 9468 case $host_cpu in
alpar@9 9469 powerpc)
alpar@9 9470 # Since July 2007 AmigaOS4 officially supports .so libraries.
alpar@9 9471 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
alpar@9 9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9473 ;;
alpar@9 9474 m68k)
alpar@9 9475 library_names_spec='$libname.ixlibrary $libname.a'
alpar@9 9476 # Create ${libname}_ixlibrary.a entries in /sys/libs.
alpar@9 9477 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
alpar@9 9478 ;;
alpar@9 9479 esac
alpar@9 9480 ;;
alpar@9 9481
alpar@9 9482 beos*)
alpar@9 9483 library_names_spec='${libname}${shared_ext}'
alpar@9 9484 dynamic_linker="$host_os ld.so"
alpar@9 9485 shlibpath_var=LIBRARY_PATH
alpar@9 9486 ;;
alpar@9 9487
alpar@9 9488 bsdi[45]*)
alpar@9 9489 version_type=linux
alpar@9 9490 need_version=no
alpar@9 9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9492 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9493 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
alpar@9 9494 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9495 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
alpar@9 9496 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
alpar@9 9497 # the default ld.so.conf also contains /usr/contrib/lib and
alpar@9 9498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
alpar@9 9499 # libtool to hard-code these into programs
alpar@9 9500 ;;
alpar@9 9501
alpar@9 9502 cygwin* | mingw* | pw32* | cegcc*)
alpar@9 9503 version_type=windows
alpar@9 9504 shrext_cmds=".dll"
alpar@9 9505 need_version=no
alpar@9 9506 need_lib_prefix=no
alpar@9 9507
alpar@9 9508 case $GCC,$host_os in
alpar@9 9509 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
alpar@9 9510 library_names_spec='$libname.dll.a'
alpar@9 9511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
alpar@9 9512 postinstall_cmds='base_file=`basename \${file}`~
alpar@9 9513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
alpar@9 9514 dldir=$destdir/`dirname \$dlpath`~
alpar@9 9515 test -d \$dldir || mkdir -p \$dldir~
alpar@9 9516 $install_prog $dir/$dlname \$dldir/$dlname~
alpar@9 9517 chmod a+x \$dldir/$dlname~
alpar@9 9518 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
alpar@9 9519 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
alpar@9 9520 fi'
alpar@9 9521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
alpar@9 9522 dlpath=$dir/\$dldll~
alpar@9 9523 $RM \$dlpath'
alpar@9 9524 shlibpath_overrides_runpath=yes
alpar@9 9525
alpar@9 9526 case $host_os in
alpar@9 9527 cygwin*)
alpar@9 9528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
alpar@9 9529 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
alpar@9 9530
alpar@9 9531 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
alpar@9 9532 ;;
alpar@9 9533 mingw* | cegcc*)
alpar@9 9534 # MinGW DLLs use traditional 'lib' prefix
alpar@9 9535 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
alpar@9 9536 ;;
alpar@9 9537 pw32*)
alpar@9 9538 # pw32 DLLs use 'pw' prefix rather than 'lib'
alpar@9 9539 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
alpar@9 9540 ;;
alpar@9 9541 esac
alpar@9 9542 ;;
alpar@9 9543
alpar@9 9544 *)
alpar@9 9545 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
alpar@9 9546 ;;
alpar@9 9547 esac
alpar@9 9548 dynamic_linker='Win32 ld.exe'
alpar@9 9549 # FIXME: first we should search . and the directory the executable is in
alpar@9 9550 shlibpath_var=PATH
alpar@9 9551 ;;
alpar@9 9552
alpar@9 9553 darwin* | rhapsody*)
alpar@9 9554 dynamic_linker="$host_os dyld"
alpar@9 9555 version_type=darwin
alpar@9 9556 need_lib_prefix=no
alpar@9 9557 need_version=no
alpar@9 9558 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
alpar@9 9559 soname_spec='${libname}${release}${major}$shared_ext'
alpar@9 9560 shlibpath_overrides_runpath=yes
alpar@9 9561 shlibpath_var=DYLD_LIBRARY_PATH
alpar@9 9562 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
alpar@9 9563
alpar@9 9564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
alpar@9 9565 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
alpar@9 9566 ;;
alpar@9 9567
alpar@9 9568 dgux*)
alpar@9 9569 version_type=linux
alpar@9 9570 need_lib_prefix=no
alpar@9 9571 need_version=no
alpar@9 9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
alpar@9 9573 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9574 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9575 ;;
alpar@9 9576
alpar@9 9577 freebsd1*)
alpar@9 9578 dynamic_linker=no
alpar@9 9579 ;;
alpar@9 9580
alpar@9 9581 freebsd* | dragonfly*)
alpar@9 9582 # DragonFly does not have aout. When/if they implement a new
alpar@9 9583 # versioning mechanism, adjust this.
alpar@9 9584 if test -x /usr/bin/objformat; then
alpar@9 9585 objformat=`/usr/bin/objformat`
alpar@9 9586 else
alpar@9 9587 case $host_os in
alpar@9 9588 freebsd[123]*) objformat=aout ;;
alpar@9 9589 *) objformat=elf ;;
alpar@9 9590 esac
alpar@9 9591 fi
alpar@9 9592 version_type=freebsd-$objformat
alpar@9 9593 case $version_type in
alpar@9 9594 freebsd-elf*)
alpar@9 9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
alpar@9 9596 need_version=no
alpar@9 9597 need_lib_prefix=no
alpar@9 9598 ;;
alpar@9 9599 freebsd-*)
alpar@9 9600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
alpar@9 9601 need_version=yes
alpar@9 9602 ;;
alpar@9 9603 esac
alpar@9 9604 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9605 case $host_os in
alpar@9 9606 freebsd2*)
alpar@9 9607 shlibpath_overrides_runpath=yes
alpar@9 9608 ;;
alpar@9 9609 freebsd3.[01]* | freebsdelf3.[01]*)
alpar@9 9610 shlibpath_overrides_runpath=yes
alpar@9 9611 hardcode_into_libs=yes
alpar@9 9612 ;;
alpar@9 9613 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
alpar@9 9614 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
alpar@9 9615 shlibpath_overrides_runpath=no
alpar@9 9616 hardcode_into_libs=yes
alpar@9 9617 ;;
alpar@9 9618 *) # from 4.6 on, and DragonFly
alpar@9 9619 shlibpath_overrides_runpath=yes
alpar@9 9620 hardcode_into_libs=yes
alpar@9 9621 ;;
alpar@9 9622 esac
alpar@9 9623 ;;
alpar@9 9624
alpar@9 9625 gnu*)
alpar@9 9626 version_type=linux
alpar@9 9627 need_lib_prefix=no
alpar@9 9628 need_version=no
alpar@9 9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
alpar@9 9630 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9631 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9632 hardcode_into_libs=yes
alpar@9 9633 ;;
alpar@9 9634
alpar@9 9635 haiku*)
alpar@9 9636 version_type=linux
alpar@9 9637 need_lib_prefix=no
alpar@9 9638 need_version=no
alpar@9 9639 dynamic_linker="$host_os runtime_loader"
alpar@9 9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
alpar@9 9641 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9642 shlibpath_var=LIBRARY_PATH
alpar@9 9643 shlibpath_overrides_runpath=yes
alpar@9 9644 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
alpar@9 9645 hardcode_into_libs=yes
alpar@9 9646 ;;
alpar@9 9647
alpar@9 9648 hpux9* | hpux10* | hpux11*)
alpar@9 9649 # Give a soname corresponding to the major version so that dld.sl refuses to
alpar@9 9650 # link against other versions.
alpar@9 9651 version_type=sunos
alpar@9 9652 need_lib_prefix=no
alpar@9 9653 need_version=no
alpar@9 9654 case $host_cpu in
alpar@9 9655 ia64*)
alpar@9 9656 shrext_cmds='.so'
alpar@9 9657 hardcode_into_libs=yes
alpar@9 9658 dynamic_linker="$host_os dld.so"
alpar@9 9659 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
alpar@9 9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9662 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9663 if test "X$HPUX_IA64_MODE" = X32; then
alpar@9 9664 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
alpar@9 9665 else
alpar@9 9666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
alpar@9 9667 fi
alpar@9 9668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
alpar@9 9669 ;;
alpar@9 9670 hppa*64*)
alpar@9 9671 shrext_cmds='.sl'
alpar@9 9672 hardcode_into_libs=yes
alpar@9 9673 dynamic_linker="$host_os dld.sl"
alpar@9 9674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
alpar@9 9675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
alpar@9 9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9677 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
alpar@9 9679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
alpar@9 9680 ;;
alpar@9 9681 *)
alpar@9 9682 shrext_cmds='.sl'
alpar@9 9683 dynamic_linker="$host_os dld.sl"
alpar@9 9684 shlibpath_var=SHLIB_PATH
alpar@9 9685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
alpar@9 9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9687 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9688 ;;
alpar@9 9689 esac
alpar@9 9690 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
alpar@9 9691 postinstall_cmds='chmod 555 $lib'
alpar@9 9692 # or fails outright, so override atomically:
alpar@9 9693 install_override_mode=555
alpar@9 9694 ;;
alpar@9 9695
alpar@9 9696 interix[3-9]*)
alpar@9 9697 version_type=linux
alpar@9 9698 need_lib_prefix=no
alpar@9 9699 need_version=no
alpar@9 9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
alpar@9 9701 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
alpar@9 9703 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9704 shlibpath_overrides_runpath=no
alpar@9 9705 hardcode_into_libs=yes
alpar@9 9706 ;;
alpar@9 9707
alpar@9 9708 irix5* | irix6* | nonstopux*)
alpar@9 9709 case $host_os in
alpar@9 9710 nonstopux*) version_type=nonstopux ;;
alpar@9 9711 *)
alpar@9 9712 if test "$lt_cv_prog_gnu_ld" = yes; then
alpar@9 9713 version_type=linux
alpar@9 9714 else
alpar@9 9715 version_type=irix
alpar@9 9716 fi ;;
alpar@9 9717 esac
alpar@9 9718 need_lib_prefix=no
alpar@9 9719 need_version=no
alpar@9 9720 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
alpar@9 9722 case $host_os in
alpar@9 9723 irix5* | nonstopux*)
alpar@9 9724 libsuff= shlibsuff=
alpar@9 9725 ;;
alpar@9 9726 *)
alpar@9 9727 case $LD in # libtool.m4 will add one of these switches to LD
alpar@9 9728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
alpar@9 9729 libsuff= shlibsuff= libmagic=32-bit;;
alpar@9 9730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
alpar@9 9731 libsuff=32 shlibsuff=N32 libmagic=N32;;
alpar@9 9732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
alpar@9 9733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
alpar@9 9734 *) libsuff= shlibsuff= libmagic=never-match;;
alpar@9 9735 esac
alpar@9 9736 ;;
alpar@9 9737 esac
alpar@9 9738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
alpar@9 9739 shlibpath_overrides_runpath=no
alpar@9 9740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
alpar@9 9741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
alpar@9 9742 hardcode_into_libs=yes
alpar@9 9743 ;;
alpar@9 9744
alpar@9 9745 # No shared lib support for Linux oldld, aout, or coff.
alpar@9 9746 linux*oldld* | linux*aout* | linux*coff*)
alpar@9 9747 dynamic_linker=no
alpar@9 9748 ;;
alpar@9 9749
alpar@9 9750 # This must be Linux ELF.
alpar@9 9751 linux* | k*bsd*-gnu | kopensolaris*-gnu)
alpar@9 9752 version_type=linux
alpar@9 9753 need_lib_prefix=no
alpar@9 9754 need_version=no
alpar@9 9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9756 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
alpar@9 9758 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9759 shlibpath_overrides_runpath=no
alpar@9 9760
alpar@9 9761 # Some binutils ld are patched to set DT_RUNPATH
alpar@9 9762 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
alpar@9 9763 $as_echo_n "(cached) " >&6
alpar@9 9764 else
alpar@9 9765 lt_cv_shlibpath_overrides_runpath=no
alpar@9 9766 save_LDFLAGS=$LDFLAGS
alpar@9 9767 save_libdir=$libdir
alpar@9 9768 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
alpar@9 9769 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
alpar@9 9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 9771 /* end confdefs.h. */
alpar@9 9772
alpar@9 9773 int
alpar@9 9774 main ()
alpar@9 9775 {
alpar@9 9776
alpar@9 9777 ;
alpar@9 9778 return 0;
alpar@9 9779 }
alpar@9 9780 _ACEOF
alpar@9 9781 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 9782 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
alpar@9 9783 lt_cv_shlibpath_overrides_runpath=yes
alpar@9 9784 fi
alpar@9 9785 fi
alpar@9 9786 rm -f core conftest.err conftest.$ac_objext \
alpar@9 9787 conftest$ac_exeext conftest.$ac_ext
alpar@9 9788 LDFLAGS=$save_LDFLAGS
alpar@9 9789 libdir=$save_libdir
alpar@9 9790
alpar@9 9791 fi
alpar@9 9792
alpar@9 9793 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
alpar@9 9794
alpar@9 9795 # This implies no fast_install, which is unacceptable.
alpar@9 9796 # Some rework will be needed to allow for fast_install
alpar@9 9797 # before this can be enabled.
alpar@9 9798 hardcode_into_libs=yes
alpar@9 9799
alpar@9 9800 # Append ld.so.conf contents to the search path
alpar@9 9801 if test -f /etc/ld.so.conf; then
alpar@9 9802 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;s/"//g;/^$/d' | tr '\n' ' '`
alpar@9 9803 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
alpar@9 9804 fi
alpar@9 9805
alpar@9 9806 # We used to test for /lib/ld.so.1 and disable shared libraries on
alpar@9 9807 # powerpc, because MkLinux only supported shared libraries with the
alpar@9 9808 # GNU dynamic linker. Since this was broken with cross compilers,
alpar@9 9809 # most powerpc-linux boxes support dynamic linking these days and
alpar@9 9810 # people can always --disable-shared, the test was removed, and we
alpar@9 9811 # assume the GNU/Linux dynamic linker is in use.
alpar@9 9812 dynamic_linker='GNU/Linux ld.so'
alpar@9 9813 ;;
alpar@9 9814
alpar@9 9815 netbsd*)
alpar@9 9816 version_type=sunos
alpar@9 9817 need_lib_prefix=no
alpar@9 9818 need_version=no
alpar@9 9819 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
alpar@9 9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
alpar@9 9821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
alpar@9 9822 dynamic_linker='NetBSD (a.out) ld.so'
alpar@9 9823 else
alpar@9 9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
alpar@9 9825 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9826 dynamic_linker='NetBSD ld.elf_so'
alpar@9 9827 fi
alpar@9 9828 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9829 shlibpath_overrides_runpath=yes
alpar@9 9830 hardcode_into_libs=yes
alpar@9 9831 ;;
alpar@9 9832
alpar@9 9833 newsos6)
alpar@9 9834 version_type=linux
alpar@9 9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9836 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9837 shlibpath_overrides_runpath=yes
alpar@9 9838 ;;
alpar@9 9839
alpar@9 9840 *nto* | *qnx*)
alpar@9 9841 version_type=qnx
alpar@9 9842 need_lib_prefix=no
alpar@9 9843 need_version=no
alpar@9 9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9845 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9846 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9847 shlibpath_overrides_runpath=no
alpar@9 9848 hardcode_into_libs=yes
alpar@9 9849 dynamic_linker='ldqnx.so'
alpar@9 9850 ;;
alpar@9 9851
alpar@9 9852 openbsd*)
alpar@9 9853 version_type=sunos
alpar@9 9854 sys_lib_dlsearch_path_spec="/usr/lib"
alpar@9 9855 need_lib_prefix=no
alpar@9 9856 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
alpar@9 9857 case $host_os in
alpar@9 9858 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
alpar@9 9859 *) need_version=no ;;
alpar@9 9860 esac
alpar@9 9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
alpar@9 9862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
alpar@9 9863 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9864 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
alpar@9 9865 case $host_os in
alpar@9 9866 openbsd2.[89] | openbsd2.[89].*)
alpar@9 9867 shlibpath_overrides_runpath=no
alpar@9 9868 ;;
alpar@9 9869 *)
alpar@9 9870 shlibpath_overrides_runpath=yes
alpar@9 9871 ;;
alpar@9 9872 esac
alpar@9 9873 else
alpar@9 9874 shlibpath_overrides_runpath=yes
alpar@9 9875 fi
alpar@9 9876 ;;
alpar@9 9877
alpar@9 9878 os2*)
alpar@9 9879 libname_spec='$name'
alpar@9 9880 shrext_cmds=".dll"
alpar@9 9881 need_lib_prefix=no
alpar@9 9882 library_names_spec='$libname${shared_ext} $libname.a'
alpar@9 9883 dynamic_linker='OS/2 ld.exe'
alpar@9 9884 shlibpath_var=LIBPATH
alpar@9 9885 ;;
alpar@9 9886
alpar@9 9887 osf3* | osf4* | osf5*)
alpar@9 9888 version_type=osf
alpar@9 9889 need_lib_prefix=no
alpar@9 9890 need_version=no
alpar@9 9891 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9893 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9894 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
alpar@9 9895 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
alpar@9 9896 ;;
alpar@9 9897
alpar@9 9898 rdos*)
alpar@9 9899 dynamic_linker=no
alpar@9 9900 ;;
alpar@9 9901
alpar@9 9902 solaris*)
alpar@9 9903 version_type=linux
alpar@9 9904 need_lib_prefix=no
alpar@9 9905 need_version=no
alpar@9 9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9907 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9908 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9909 shlibpath_overrides_runpath=yes
alpar@9 9910 hardcode_into_libs=yes
alpar@9 9911 # ldd complains unless libraries are executable
alpar@9 9912 postinstall_cmds='chmod +x $lib'
alpar@9 9913 ;;
alpar@9 9914
alpar@9 9915 sunos4*)
alpar@9 9916 version_type=sunos
alpar@9 9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
alpar@9 9918 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
alpar@9 9919 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9920 shlibpath_overrides_runpath=yes
alpar@9 9921 if test "$with_gnu_ld" = yes; then
alpar@9 9922 need_lib_prefix=no
alpar@9 9923 fi
alpar@9 9924 need_version=yes
alpar@9 9925 ;;
alpar@9 9926
alpar@9 9927 sysv4 | sysv4.3*)
alpar@9 9928 version_type=linux
alpar@9 9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9930 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9931 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9932 case $host_vendor in
alpar@9 9933 sni)
alpar@9 9934 shlibpath_overrides_runpath=no
alpar@9 9935 need_lib_prefix=no
alpar@9 9936 runpath_var=LD_RUN_PATH
alpar@9 9937 ;;
alpar@9 9938 siemens)
alpar@9 9939 need_lib_prefix=no
alpar@9 9940 ;;
alpar@9 9941 motorola)
alpar@9 9942 need_lib_prefix=no
alpar@9 9943 need_version=no
alpar@9 9944 shlibpath_overrides_runpath=no
alpar@9 9945 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
alpar@9 9946 ;;
alpar@9 9947 esac
alpar@9 9948 ;;
alpar@9 9949
alpar@9 9950 sysv4*MP*)
alpar@9 9951 if test -d /usr/nec ;then
alpar@9 9952 version_type=linux
alpar@9 9953 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
alpar@9 9954 soname_spec='$libname${shared_ext}.$major'
alpar@9 9955 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9956 fi
alpar@9 9957 ;;
alpar@9 9958
alpar@9 9959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
alpar@9 9960 version_type=freebsd-elf
alpar@9 9961 need_lib_prefix=no
alpar@9 9962 need_version=no
alpar@9 9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
alpar@9 9964 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9965 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9966 shlibpath_overrides_runpath=yes
alpar@9 9967 hardcode_into_libs=yes
alpar@9 9968 if test "$with_gnu_ld" = yes; then
alpar@9 9969 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
alpar@9 9970 else
alpar@9 9971 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
alpar@9 9972 case $host_os in
alpar@9 9973 sco3.2v5*)
alpar@9 9974 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
alpar@9 9975 ;;
alpar@9 9976 esac
alpar@9 9977 fi
alpar@9 9978 sys_lib_dlsearch_path_spec='/usr/lib'
alpar@9 9979 ;;
alpar@9 9980
alpar@9 9981 tpf*)
alpar@9 9982 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
alpar@9 9983 version_type=linux
alpar@9 9984 need_lib_prefix=no
alpar@9 9985 need_version=no
alpar@9 9986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9987 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9988 shlibpath_overrides_runpath=no
alpar@9 9989 hardcode_into_libs=yes
alpar@9 9990 ;;
alpar@9 9991
alpar@9 9992 uts4*)
alpar@9 9993 version_type=linux
alpar@9 9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
alpar@9 9995 soname_spec='${libname}${release}${shared_ext}$major'
alpar@9 9996 shlibpath_var=LD_LIBRARY_PATH
alpar@9 9997 ;;
alpar@9 9998
alpar@9 9999 *)
alpar@9 10000 dynamic_linker=no
alpar@9 10001 ;;
alpar@9 10002 esac
alpar@9 10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
alpar@9 10004 $as_echo "$dynamic_linker" >&6; }
alpar@9 10005 test "$dynamic_linker" = no && can_build_shared=no
alpar@9 10006
alpar@9 10007 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
alpar@9 10008 if test "$GCC" = yes; then
alpar@9 10009 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
alpar@9 10010 fi
alpar@9 10011
alpar@9 10012 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
alpar@9 10013 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
alpar@9 10014 fi
alpar@9 10015 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
alpar@9 10016 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
alpar@9 10017 fi
alpar@9 10018
alpar@9 10019
alpar@9 10020
alpar@9 10021
alpar@9 10022
alpar@9 10023
alpar@9 10024
alpar@9 10025
alpar@9 10026
alpar@9 10027
alpar@9 10028
alpar@9 10029
alpar@9 10030
alpar@9 10031
alpar@9 10032
alpar@9 10033
alpar@9 10034
alpar@9 10035
alpar@9 10036
alpar@9 10037
alpar@9 10038
alpar@9 10039
alpar@9 10040
alpar@9 10041
alpar@9 10042
alpar@9 10043
alpar@9 10044
alpar@9 10045
alpar@9 10046
alpar@9 10047
alpar@9 10048
alpar@9 10049
alpar@9 10050
alpar@9 10051
alpar@9 10052
alpar@9 10053
alpar@9 10054
alpar@9 10055
alpar@9 10056
alpar@9 10057
alpar@9 10058
alpar@9 10059
alpar@9 10060
alpar@9 10061
alpar@9 10062
alpar@9 10063
alpar@9 10064
alpar@9 10065
alpar@9 10066
alpar@9 10067
alpar@9 10068
alpar@9 10069
alpar@9 10070
alpar@9 10071
alpar@9 10072
alpar@9 10073
alpar@9 10074
alpar@9 10075
alpar@9 10076
alpar@9 10077
alpar@9 10078
alpar@9 10079
alpar@9 10080
alpar@9 10081
alpar@9 10082
alpar@9 10083
alpar@9 10084
alpar@9 10085
alpar@9 10086
alpar@9 10087
alpar@9 10088
alpar@9 10089
alpar@9 10090
alpar@9 10091
alpar@9 10092
alpar@9 10093
alpar@9 10094
alpar@9 10095
alpar@9 10096
alpar@9 10097
alpar@9 10098
alpar@9 10099
alpar@9 10100
alpar@9 10101
alpar@9 10102
alpar@9 10103
alpar@9 10104
alpar@9 10105
alpar@9 10106
alpar@9 10107
alpar@9 10108
alpar@9 10109
alpar@9 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
alpar@9 10111 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
alpar@9 10112 hardcode_action=
alpar@9 10113 if test -n "$hardcode_libdir_flag_spec" ||
alpar@9 10114 test -n "$runpath_var" ||
alpar@9 10115 test "X$hardcode_automatic" = "Xyes" ; then
alpar@9 10116
alpar@9 10117 # We can hardcode non-existent directories.
alpar@9 10118 if test "$hardcode_direct" != no &&
alpar@9 10119 # If the only mechanism to avoid hardcoding is shlibpath_var, we
alpar@9 10120 # have to relink, otherwise we might link with an installed library
alpar@9 10121 # when we should be linking with a yet-to-be-installed one
alpar@9 10122 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
alpar@9 10123 test "$hardcode_minus_L" != no; then
alpar@9 10124 # Linking always hardcodes the temporary library directory.
alpar@9 10125 hardcode_action=relink
alpar@9 10126 else
alpar@9 10127 # We can link without hardcoding, and we can hardcode nonexisting dirs.
alpar@9 10128 hardcode_action=immediate
alpar@9 10129 fi
alpar@9 10130 else
alpar@9 10131 # We cannot hardcode anything, or else we can only hardcode existing
alpar@9 10132 # directories.
alpar@9 10133 hardcode_action=unsupported
alpar@9 10134 fi
alpar@9 10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
alpar@9 10136 $as_echo "$hardcode_action" >&6; }
alpar@9 10137
alpar@9 10138 if test "$hardcode_action" = relink ||
alpar@9 10139 test "$inherit_rpath" = yes; then
alpar@9 10140 # Fast installation is not supported
alpar@9 10141 enable_fast_install=no
alpar@9 10142 elif test "$shlibpath_overrides_runpath" = yes ||
alpar@9 10143 test "$enable_shared" = no; then
alpar@9 10144 # Fast installation is not necessary
alpar@9 10145 enable_fast_install=needless
alpar@9 10146 fi
alpar@9 10147
alpar@9 10148
alpar@9 10149
alpar@9 10150
alpar@9 10151
alpar@9 10152
alpar@9 10153 if test "x$enable_dlopen" != xyes; then
alpar@9 10154 enable_dlopen=unknown
alpar@9 10155 enable_dlopen_self=unknown
alpar@9 10156 enable_dlopen_self_static=unknown
alpar@9 10157 else
alpar@9 10158 lt_cv_dlopen=no
alpar@9 10159 lt_cv_dlopen_libs=
alpar@9 10160
alpar@9 10161 case $host_os in
alpar@9 10162 beos*)
alpar@9 10163 lt_cv_dlopen="load_add_on"
alpar@9 10164 lt_cv_dlopen_libs=
alpar@9 10165 lt_cv_dlopen_self=yes
alpar@9 10166 ;;
alpar@9 10167
alpar@9 10168 mingw* | pw32* | cegcc*)
alpar@9 10169 lt_cv_dlopen="LoadLibrary"
alpar@9 10170 lt_cv_dlopen_libs=
alpar@9 10171 ;;
alpar@9 10172
alpar@9 10173 cygwin*)
alpar@9 10174 lt_cv_dlopen="dlopen"
alpar@9 10175 lt_cv_dlopen_libs=
alpar@9 10176 ;;
alpar@9 10177
alpar@9 10178 darwin*)
alpar@9 10179 # if libdl is installed we need to link against it
alpar@9 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
alpar@9 10181 $as_echo_n "checking for dlopen in -ldl... " >&6; }
alpar@9 10182 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
alpar@9 10183 $as_echo_n "(cached) " >&6
alpar@9 10184 else
alpar@9 10185 ac_check_lib_save_LIBS=$LIBS
alpar@9 10186 LIBS="-ldl $LIBS"
alpar@9 10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 10188 /* end confdefs.h. */
alpar@9 10189
alpar@9 10190 /* Override any GCC internal prototype to avoid an error.
alpar@9 10191 Use char because int might match the return type of a GCC
alpar@9 10192 builtin and then its argument prototype would still apply. */
alpar@9 10193 #ifdef __cplusplus
alpar@9 10194 extern "C"
alpar@9 10195 #endif
alpar@9 10196 char dlopen ();
alpar@9 10197 int
alpar@9 10198 main ()
alpar@9 10199 {
alpar@9 10200 return dlopen ();
alpar@9 10201 ;
alpar@9 10202 return 0;
alpar@9 10203 }
alpar@9 10204 _ACEOF
alpar@9 10205 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 10206 ac_cv_lib_dl_dlopen=yes
alpar@9 10207 else
alpar@9 10208 ac_cv_lib_dl_dlopen=no
alpar@9 10209 fi
alpar@9 10210 rm -f core conftest.err conftest.$ac_objext \
alpar@9 10211 conftest$ac_exeext conftest.$ac_ext
alpar@9 10212 LIBS=$ac_check_lib_save_LIBS
alpar@9 10213 fi
alpar@9 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
alpar@9 10215 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
alpar@9 10216 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
alpar@9 10217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
alpar@9 10218 else
alpar@9 10219
alpar@9 10220 lt_cv_dlopen="dyld"
alpar@9 10221 lt_cv_dlopen_libs=
alpar@9 10222 lt_cv_dlopen_self=yes
alpar@9 10223
alpar@9 10224 fi
alpar@9 10225
alpar@9 10226 ;;
alpar@9 10227
alpar@9 10228 *)
alpar@9 10229 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
alpar@9 10230 if test "x$ac_cv_func_shl_load" = x""yes; then :
alpar@9 10231 lt_cv_dlopen="shl_load"
alpar@9 10232 else
alpar@9 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
alpar@9 10234 $as_echo_n "checking for shl_load in -ldld... " >&6; }
alpar@9 10235 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
alpar@9 10236 $as_echo_n "(cached) " >&6
alpar@9 10237 else
alpar@9 10238 ac_check_lib_save_LIBS=$LIBS
alpar@9 10239 LIBS="-ldld $LIBS"
alpar@9 10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 10241 /* end confdefs.h. */
alpar@9 10242
alpar@9 10243 /* Override any GCC internal prototype to avoid an error.
alpar@9 10244 Use char because int might match the return type of a GCC
alpar@9 10245 builtin and then its argument prototype would still apply. */
alpar@9 10246 #ifdef __cplusplus
alpar@9 10247 extern "C"
alpar@9 10248 #endif
alpar@9 10249 char shl_load ();
alpar@9 10250 int
alpar@9 10251 main ()
alpar@9 10252 {
alpar@9 10253 return shl_load ();
alpar@9 10254 ;
alpar@9 10255 return 0;
alpar@9 10256 }
alpar@9 10257 _ACEOF
alpar@9 10258 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 10259 ac_cv_lib_dld_shl_load=yes
alpar@9 10260 else
alpar@9 10261 ac_cv_lib_dld_shl_load=no
alpar@9 10262 fi
alpar@9 10263 rm -f core conftest.err conftest.$ac_objext \
alpar@9 10264 conftest$ac_exeext conftest.$ac_ext
alpar@9 10265 LIBS=$ac_check_lib_save_LIBS
alpar@9 10266 fi
alpar@9 10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
alpar@9 10268 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
alpar@9 10269 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
alpar@9 10270 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
alpar@9 10271 else
alpar@9 10272 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
alpar@9 10273 if test "x$ac_cv_func_dlopen" = x""yes; then :
alpar@9 10274 lt_cv_dlopen="dlopen"
alpar@9 10275 else
alpar@9 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
alpar@9 10277 $as_echo_n "checking for dlopen in -ldl... " >&6; }
alpar@9 10278 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
alpar@9 10279 $as_echo_n "(cached) " >&6
alpar@9 10280 else
alpar@9 10281 ac_check_lib_save_LIBS=$LIBS
alpar@9 10282 LIBS="-ldl $LIBS"
alpar@9 10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 10284 /* end confdefs.h. */
alpar@9 10285
alpar@9 10286 /* Override any GCC internal prototype to avoid an error.
alpar@9 10287 Use char because int might match the return type of a GCC
alpar@9 10288 builtin and then its argument prototype would still apply. */
alpar@9 10289 #ifdef __cplusplus
alpar@9 10290 extern "C"
alpar@9 10291 #endif
alpar@9 10292 char dlopen ();
alpar@9 10293 int
alpar@9 10294 main ()
alpar@9 10295 {
alpar@9 10296 return dlopen ();
alpar@9 10297 ;
alpar@9 10298 return 0;
alpar@9 10299 }
alpar@9 10300 _ACEOF
alpar@9 10301 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 10302 ac_cv_lib_dl_dlopen=yes
alpar@9 10303 else
alpar@9 10304 ac_cv_lib_dl_dlopen=no
alpar@9 10305 fi
alpar@9 10306 rm -f core conftest.err conftest.$ac_objext \
alpar@9 10307 conftest$ac_exeext conftest.$ac_ext
alpar@9 10308 LIBS=$ac_check_lib_save_LIBS
alpar@9 10309 fi
alpar@9 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
alpar@9 10311 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
alpar@9 10312 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
alpar@9 10313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
alpar@9 10314 else
alpar@9 10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
alpar@9 10316 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
alpar@9 10317 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
alpar@9 10318 $as_echo_n "(cached) " >&6
alpar@9 10319 else
alpar@9 10320 ac_check_lib_save_LIBS=$LIBS
alpar@9 10321 LIBS="-lsvld $LIBS"
alpar@9 10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 10323 /* end confdefs.h. */
alpar@9 10324
alpar@9 10325 /* Override any GCC internal prototype to avoid an error.
alpar@9 10326 Use char because int might match the return type of a GCC
alpar@9 10327 builtin and then its argument prototype would still apply. */
alpar@9 10328 #ifdef __cplusplus
alpar@9 10329 extern "C"
alpar@9 10330 #endif
alpar@9 10331 char dlopen ();
alpar@9 10332 int
alpar@9 10333 main ()
alpar@9 10334 {
alpar@9 10335 return dlopen ();
alpar@9 10336 ;
alpar@9 10337 return 0;
alpar@9 10338 }
alpar@9 10339 _ACEOF
alpar@9 10340 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 10341 ac_cv_lib_svld_dlopen=yes
alpar@9 10342 else
alpar@9 10343 ac_cv_lib_svld_dlopen=no
alpar@9 10344 fi
alpar@9 10345 rm -f core conftest.err conftest.$ac_objext \
alpar@9 10346 conftest$ac_exeext conftest.$ac_ext
alpar@9 10347 LIBS=$ac_check_lib_save_LIBS
alpar@9 10348 fi
alpar@9 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
alpar@9 10350 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
alpar@9 10351 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
alpar@9 10352 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
alpar@9 10353 else
alpar@9 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
alpar@9 10355 $as_echo_n "checking for dld_link in -ldld... " >&6; }
alpar@9 10356 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
alpar@9 10357 $as_echo_n "(cached) " >&6
alpar@9 10358 else
alpar@9 10359 ac_check_lib_save_LIBS=$LIBS
alpar@9 10360 LIBS="-ldld $LIBS"
alpar@9 10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 10362 /* end confdefs.h. */
alpar@9 10363
alpar@9 10364 /* Override any GCC internal prototype to avoid an error.
alpar@9 10365 Use char because int might match the return type of a GCC
alpar@9 10366 builtin and then its argument prototype would still apply. */
alpar@9 10367 #ifdef __cplusplus
alpar@9 10368 extern "C"
alpar@9 10369 #endif
alpar@9 10370 char dld_link ();
alpar@9 10371 int
alpar@9 10372 main ()
alpar@9 10373 {
alpar@9 10374 return dld_link ();
alpar@9 10375 ;
alpar@9 10376 return 0;
alpar@9 10377 }
alpar@9 10378 _ACEOF
alpar@9 10379 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 10380 ac_cv_lib_dld_dld_link=yes
alpar@9 10381 else
alpar@9 10382 ac_cv_lib_dld_dld_link=no
alpar@9 10383 fi
alpar@9 10384 rm -f core conftest.err conftest.$ac_objext \
alpar@9 10385 conftest$ac_exeext conftest.$ac_ext
alpar@9 10386 LIBS=$ac_check_lib_save_LIBS
alpar@9 10387 fi
alpar@9 10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
alpar@9 10389 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
alpar@9 10390 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
alpar@9 10391 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
alpar@9 10392 fi
alpar@9 10393
alpar@9 10394
alpar@9 10395 fi
alpar@9 10396
alpar@9 10397
alpar@9 10398 fi
alpar@9 10399
alpar@9 10400
alpar@9 10401 fi
alpar@9 10402
alpar@9 10403
alpar@9 10404 fi
alpar@9 10405
alpar@9 10406
alpar@9 10407 fi
alpar@9 10408
alpar@9 10409 ;;
alpar@9 10410 esac
alpar@9 10411
alpar@9 10412 if test "x$lt_cv_dlopen" != xno; then
alpar@9 10413 enable_dlopen=yes
alpar@9 10414 else
alpar@9 10415 enable_dlopen=no
alpar@9 10416 fi
alpar@9 10417
alpar@9 10418 case $lt_cv_dlopen in
alpar@9 10419 dlopen)
alpar@9 10420 save_CPPFLAGS="$CPPFLAGS"
alpar@9 10421 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
alpar@9 10422
alpar@9 10423 save_LDFLAGS="$LDFLAGS"
alpar@9 10424 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
alpar@9 10425
alpar@9 10426 save_LIBS="$LIBS"
alpar@9 10427 LIBS="$lt_cv_dlopen_libs $LIBS"
alpar@9 10428
alpar@9 10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
alpar@9 10430 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
alpar@9 10431 if test "${lt_cv_dlopen_self+set}" = set; then :
alpar@9 10432 $as_echo_n "(cached) " >&6
alpar@9 10433 else
alpar@9 10434 if test "$cross_compiling" = yes; then :
alpar@9 10435 lt_cv_dlopen_self=cross
alpar@9 10436 else
alpar@9 10437 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
alpar@9 10438 lt_status=$lt_dlunknown
alpar@9 10439 cat > conftest.$ac_ext <<_LT_EOF
alpar@9 10440 #line $LINENO "configure"
alpar@9 10441 #include "confdefs.h"
alpar@9 10442
alpar@9 10443 #if HAVE_DLFCN_H
alpar@9 10444 #include <dlfcn.h>
alpar@9 10445 #endif
alpar@9 10446
alpar@9 10447 #include <stdio.h>
alpar@9 10448
alpar@9 10449 #ifdef RTLD_GLOBAL
alpar@9 10450 # define LT_DLGLOBAL RTLD_GLOBAL
alpar@9 10451 #else
alpar@9 10452 # ifdef DL_GLOBAL
alpar@9 10453 # define LT_DLGLOBAL DL_GLOBAL
alpar@9 10454 # else
alpar@9 10455 # define LT_DLGLOBAL 0
alpar@9 10456 # endif
alpar@9 10457 #endif
alpar@9 10458
alpar@9 10459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
alpar@9 10460 find out it does not work in some platform. */
alpar@9 10461 #ifndef LT_DLLAZY_OR_NOW
alpar@9 10462 # ifdef RTLD_LAZY
alpar@9 10463 # define LT_DLLAZY_OR_NOW RTLD_LAZY
alpar@9 10464 # else
alpar@9 10465 # ifdef DL_LAZY
alpar@9 10466 # define LT_DLLAZY_OR_NOW DL_LAZY
alpar@9 10467 # else
alpar@9 10468 # ifdef RTLD_NOW
alpar@9 10469 # define LT_DLLAZY_OR_NOW RTLD_NOW
alpar@9 10470 # else
alpar@9 10471 # ifdef DL_NOW
alpar@9 10472 # define LT_DLLAZY_OR_NOW DL_NOW
alpar@9 10473 # else
alpar@9 10474 # define LT_DLLAZY_OR_NOW 0
alpar@9 10475 # endif
alpar@9 10476 # endif
alpar@9 10477 # endif
alpar@9 10478 # endif
alpar@9 10479 #endif
alpar@9 10480
alpar@9 10481 /* When -fvisbility=hidden is used, assume the code has been annotated
alpar@9 10482 correspondingly for the symbols needed. */
alpar@9 10483 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
alpar@9 10484 void fnord () __attribute__((visibility("default")));
alpar@9 10485 #endif
alpar@9 10486
alpar@9 10487 void fnord () { int i=42; }
alpar@9 10488 int main ()
alpar@9 10489 {
alpar@9 10490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
alpar@9 10491 int status = $lt_dlunknown;
alpar@9 10492
alpar@9 10493 if (self)
alpar@9 10494 {
alpar@9 10495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
alpar@9 10496 else
alpar@9 10497 {
alpar@9 10498 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
alpar@9 10499 else puts (dlerror ());
alpar@9 10500 }
alpar@9 10501 /* dlclose (self); */
alpar@9 10502 }
alpar@9 10503 else
alpar@9 10504 puts (dlerror ());
alpar@9 10505
alpar@9 10506 return status;
alpar@9 10507 }
alpar@9 10508 _LT_EOF
alpar@9 10509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
alpar@9 10510 (eval $ac_link) 2>&5
alpar@9 10511 ac_status=$?
alpar@9 10512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 10513 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
alpar@9 10514 (./conftest; exit; ) >&5 2>/dev/null
alpar@9 10515 lt_status=$?
alpar@9 10516 case x$lt_status in
alpar@9 10517 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
alpar@9 10518 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
alpar@9 10519 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
alpar@9 10520 esac
alpar@9 10521 else :
alpar@9 10522 # compilation failed
alpar@9 10523 lt_cv_dlopen_self=no
alpar@9 10524 fi
alpar@9 10525 fi
alpar@9 10526 rm -fr conftest*
alpar@9 10527
alpar@9 10528
alpar@9 10529 fi
alpar@9 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
alpar@9 10531 $as_echo "$lt_cv_dlopen_self" >&6; }
alpar@9 10532
alpar@9 10533 if test "x$lt_cv_dlopen_self" = xyes; then
alpar@9 10534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
alpar@9 10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
alpar@9 10536 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
alpar@9 10537 if test "${lt_cv_dlopen_self_static+set}" = set; then :
alpar@9 10538 $as_echo_n "(cached) " >&6
alpar@9 10539 else
alpar@9 10540 if test "$cross_compiling" = yes; then :
alpar@9 10541 lt_cv_dlopen_self_static=cross
alpar@9 10542 else
alpar@9 10543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
alpar@9 10544 lt_status=$lt_dlunknown
alpar@9 10545 cat > conftest.$ac_ext <<_LT_EOF
alpar@9 10546 #line $LINENO "configure"
alpar@9 10547 #include "confdefs.h"
alpar@9 10548
alpar@9 10549 #if HAVE_DLFCN_H
alpar@9 10550 #include <dlfcn.h>
alpar@9 10551 #endif
alpar@9 10552
alpar@9 10553 #include <stdio.h>
alpar@9 10554
alpar@9 10555 #ifdef RTLD_GLOBAL
alpar@9 10556 # define LT_DLGLOBAL RTLD_GLOBAL
alpar@9 10557 #else
alpar@9 10558 # ifdef DL_GLOBAL
alpar@9 10559 # define LT_DLGLOBAL DL_GLOBAL
alpar@9 10560 # else
alpar@9 10561 # define LT_DLGLOBAL 0
alpar@9 10562 # endif
alpar@9 10563 #endif
alpar@9 10564
alpar@9 10565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
alpar@9 10566 find out it does not work in some platform. */
alpar@9 10567 #ifndef LT_DLLAZY_OR_NOW
alpar@9 10568 # ifdef RTLD_LAZY
alpar@9 10569 # define LT_DLLAZY_OR_NOW RTLD_LAZY
alpar@9 10570 # else
alpar@9 10571 # ifdef DL_LAZY
alpar@9 10572 # define LT_DLLAZY_OR_NOW DL_LAZY
alpar@9 10573 # else
alpar@9 10574 # ifdef RTLD_NOW
alpar@9 10575 # define LT_DLLAZY_OR_NOW RTLD_NOW
alpar@9 10576 # else
alpar@9 10577 # ifdef DL_NOW
alpar@9 10578 # define LT_DLLAZY_OR_NOW DL_NOW
alpar@9 10579 # else
alpar@9 10580 # define LT_DLLAZY_OR_NOW 0
alpar@9 10581 # endif
alpar@9 10582 # endif
alpar@9 10583 # endif
alpar@9 10584 # endif
alpar@9 10585 #endif
alpar@9 10586
alpar@9 10587 /* When -fvisbility=hidden is used, assume the code has been annotated
alpar@9 10588 correspondingly for the symbols needed. */
alpar@9 10589 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
alpar@9 10590 void fnord () __attribute__((visibility("default")));
alpar@9 10591 #endif
alpar@9 10592
alpar@9 10593 void fnord () { int i=42; }
alpar@9 10594 int main ()
alpar@9 10595 {
alpar@9 10596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
alpar@9 10597 int status = $lt_dlunknown;
alpar@9 10598
alpar@9 10599 if (self)
alpar@9 10600 {
alpar@9 10601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
alpar@9 10602 else
alpar@9 10603 {
alpar@9 10604 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
alpar@9 10605 else puts (dlerror ());
alpar@9 10606 }
alpar@9 10607 /* dlclose (self); */
alpar@9 10608 }
alpar@9 10609 else
alpar@9 10610 puts (dlerror ());
alpar@9 10611
alpar@9 10612 return status;
alpar@9 10613 }
alpar@9 10614 _LT_EOF
alpar@9 10615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
alpar@9 10616 (eval $ac_link) 2>&5
alpar@9 10617 ac_status=$?
alpar@9 10618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
alpar@9 10619 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
alpar@9 10620 (./conftest; exit; ) >&5 2>/dev/null
alpar@9 10621 lt_status=$?
alpar@9 10622 case x$lt_status in
alpar@9 10623 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
alpar@9 10624 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
alpar@9 10625 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
alpar@9 10626 esac
alpar@9 10627 else :
alpar@9 10628 # compilation failed
alpar@9 10629 lt_cv_dlopen_self_static=no
alpar@9 10630 fi
alpar@9 10631 fi
alpar@9 10632 rm -fr conftest*
alpar@9 10633
alpar@9 10634
alpar@9 10635 fi
alpar@9 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
alpar@9 10637 $as_echo "$lt_cv_dlopen_self_static" >&6; }
alpar@9 10638 fi
alpar@9 10639
alpar@9 10640 CPPFLAGS="$save_CPPFLAGS"
alpar@9 10641 LDFLAGS="$save_LDFLAGS"
alpar@9 10642 LIBS="$save_LIBS"
alpar@9 10643 ;;
alpar@9 10644 esac
alpar@9 10645
alpar@9 10646 case $lt_cv_dlopen_self in
alpar@9 10647 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
alpar@9 10648 *) enable_dlopen_self=unknown ;;
alpar@9 10649 esac
alpar@9 10650
alpar@9 10651 case $lt_cv_dlopen_self_static in
alpar@9 10652 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
alpar@9 10653 *) enable_dlopen_self_static=unknown ;;
alpar@9 10654 esac
alpar@9 10655 fi
alpar@9 10656
alpar@9 10657
alpar@9 10658
alpar@9 10659
alpar@9 10660
alpar@9 10661
alpar@9 10662
alpar@9 10663
alpar@9 10664
alpar@9 10665
alpar@9 10666
alpar@9 10667
alpar@9 10668
alpar@9 10669
alpar@9 10670
alpar@9 10671
alpar@9 10672
alpar@9 10673 striplib=
alpar@9 10674 old_striplib=
alpar@9 10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
alpar@9 10676 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
alpar@9 10677 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
alpar@9 10678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
alpar@9 10679 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
alpar@9 10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
alpar@9 10681 $as_echo "yes" >&6; }
alpar@9 10682 else
alpar@9 10683 # FIXME - insert some real tests, host_os isn't really good enough
alpar@9 10684 case $host_os in
alpar@9 10685 darwin*)
alpar@9 10686 if test -n "$STRIP" ; then
alpar@9 10687 striplib="$STRIP -x"
alpar@9 10688 old_striplib="$STRIP -S"
alpar@9 10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
alpar@9 10690 $as_echo "yes" >&6; }
alpar@9 10691 else
alpar@9 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 10693 $as_echo "no" >&6; }
alpar@9 10694 fi
alpar@9 10695 ;;
alpar@9 10696 *)
alpar@9 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 10698 $as_echo "no" >&6; }
alpar@9 10699 ;;
alpar@9 10700 esac
alpar@9 10701 fi
alpar@9 10702
alpar@9 10703
alpar@9 10704
alpar@9 10705
alpar@9 10706
alpar@9 10707
alpar@9 10708
alpar@9 10709
alpar@9 10710
alpar@9 10711
alpar@9 10712
alpar@9 10713
alpar@9 10714 # Report which library types will actually be built
alpar@9 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
alpar@9 10716 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
alpar@9 10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
alpar@9 10718 $as_echo "$can_build_shared" >&6; }
alpar@9 10719
alpar@9 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
alpar@9 10721 $as_echo_n "checking whether to build shared libraries... " >&6; }
alpar@9 10722 test "$can_build_shared" = "no" && enable_shared=no
alpar@9 10723
alpar@9 10724 # On AIX, shared libraries and static libraries use the same namespace, and
alpar@9 10725 # are all built from PIC.
alpar@9 10726 case $host_os in
alpar@9 10727 aix3*)
alpar@9 10728 test "$enable_shared" = yes && enable_static=no
alpar@9 10729 if test -n "$RANLIB"; then
alpar@9 10730 archive_cmds="$archive_cmds~\$RANLIB \$lib"
alpar@9 10731 postinstall_cmds='$RANLIB $lib'
alpar@9 10732 fi
alpar@9 10733 ;;
alpar@9 10734
alpar@9 10735 aix[4-9]*)
alpar@9 10736 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
alpar@9 10737 test "$enable_shared" = yes && enable_static=no
alpar@9 10738 fi
alpar@9 10739 ;;
alpar@9 10740 esac
alpar@9 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
alpar@9 10742 $as_echo "$enable_shared" >&6; }
alpar@9 10743
alpar@9 10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
alpar@9 10745 $as_echo_n "checking whether to build static libraries... " >&6; }
alpar@9 10746 # Make sure either enable_shared or enable_static is yes.
alpar@9 10747 test "$enable_shared" = yes || enable_static=yes
alpar@9 10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
alpar@9 10749 $as_echo "$enable_static" >&6; }
alpar@9 10750
alpar@9 10751
alpar@9 10752
alpar@9 10753
alpar@9 10754 fi
alpar@9 10755 ac_ext=c
alpar@9 10756 ac_cpp='$CPP $CPPFLAGS'
alpar@9 10757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
alpar@9 10758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
alpar@9 10759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
alpar@9 10760
alpar@9 10761 CC="$lt_save_CC"
alpar@9 10762
alpar@9 10763
alpar@9 10764
alpar@9 10765
alpar@9 10766
alpar@9 10767
alpar@9 10768
alpar@9 10769
alpar@9 10770
alpar@9 10771
alpar@9 10772
alpar@9 10773
alpar@9 10774
alpar@9 10775 ac_config_commands="$ac_config_commands libtool"
alpar@9 10776
alpar@9 10777
alpar@9 10778
alpar@9 10779
alpar@9 10780 # Only expand once:
alpar@9 10781
alpar@9 10782
alpar@9 10783
alpar@9 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
alpar@9 10785 $as_echo_n "checking for exp in -lm... " >&6; }
alpar@9 10786 if test "${ac_cv_lib_m_exp+set}" = set; then :
alpar@9 10787 $as_echo_n "(cached) " >&6
alpar@9 10788 else
alpar@9 10789 ac_check_lib_save_LIBS=$LIBS
alpar@9 10790 LIBS="-lm $LIBS"
alpar@9 10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
alpar@9 10792 /* end confdefs.h. */
alpar@9 10793
alpar@9 10794 /* Override any GCC internal prototype to avoid an error.
alpar@9 10795 Use char because int might match the return type of a GCC
alpar@9 10796 builtin and then its argument prototype would still apply. */
alpar@9 10797 #ifdef __cplusplus
alpar@9 10798 extern "C"
alpar@9 10799 #endif
alpar@9 10800 char exp ();
alpar@9 10801 int
alpar@9 10802 main ()
alpar@9 10803 {
alpar@9 10804 return exp ();
alpar@9 10805 ;
alpar@9 10806 return 0;
alpar@9 10807 }
alpar@9 10808 _ACEOF
alpar@9 10809 if ac_fn_c_try_link "$LINENO"; then :
alpar@9 10810 ac_cv_lib_m_exp=yes
alpar@9 10811 else
alpar@9 10812 ac_cv_lib_m_exp=no
alpar@9 10813 fi
alpar@9 10814 rm -f core conftest.err conftest.$ac_objext \
alpar@9 10815 conftest$ac_exeext conftest.$ac_ext
alpar@9 10816 LIBS=$ac_check_lib_save_LIBS
alpar@9 10817 fi
alpar@9 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
alpar@9 10819 $as_echo "$ac_cv_lib_m_exp" >&6; }
alpar@9 10820 if test "x$ac_cv_lib_m_exp" = x""yes; then :
alpar@9 10821 cat >>confdefs.h <<_ACEOF
alpar@9 10822 #define HAVE_LIBM 1
alpar@9 10823 _ACEOF
alpar@9 10824
alpar@9 10825 LIBS="-lm $LIBS"
alpar@9 10826
alpar@9 10827 fi
alpar@9 10828
alpar@9 10829
alpar@9 10830 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
alpar@9 10831 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
alpar@9 10832
alpar@9 10833 $as_echo "#define HAVE_SYS_TIME_H 1" >>confdefs.h
alpar@9 10834
alpar@9 10835 fi
alpar@9 10836
alpar@9 10837
alpar@9 10838
alpar@9 10839 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
alpar@9 10840 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
alpar@9 10841
alpar@9 10842 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
alpar@9 10843
alpar@9 10844 fi
alpar@9 10845
alpar@9 10846
alpar@9 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GNU MP bignum library" >&5
alpar@9 10848 $as_echo_n "checking whether to use GNU MP bignum library... " >&6; }
alpar@9 10849 if test "$with_gmp" = "yes"; then
alpar@9 10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
alpar@9 10851 $as_echo "yes" >&6; }
alpar@9 10852
alpar@9 10853 $as_echo "#define HAVE_GMP 1" >>confdefs.h
alpar@9 10854
alpar@9 10855 LIBS="-lgmp $LIBS"
alpar@9 10856 else
alpar@9 10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 10858 $as_echo "no" >&6; }
alpar@9 10859 fi
alpar@9 10860
alpar@9 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shared library support" >&5
alpar@9 10862 $as_echo_n "checking whether to enable shared library support... " >&6; }
alpar@9 10863 if test "$enable_dl" = "yes"; then
alpar@9 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
alpar@9 10865 $as_echo "ltdl" >&6; }
alpar@9 10866
alpar@9 10867 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
alpar@9 10868
alpar@9 10869 LIBS="-lltdl $LIBS"
alpar@9 10870 elif test "$enable_dl" = "ltdl"; then
alpar@9 10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
alpar@9 10872 $as_echo "ltdl" >&6; }
alpar@9 10873
alpar@9 10874 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
alpar@9 10875
alpar@9 10876 LIBS="-lltdl $LIBS"
alpar@9 10877 elif test "$enable_dl" = "dlfcn"; then
alpar@9 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dlfcn" >&5
alpar@9 10879 $as_echo "dlfcn" >&6; }
alpar@9 10880
alpar@9 10881 $as_echo "#define HAVE_DLFCN 1" >>confdefs.h
alpar@9 10882
alpar@9 10883 else
alpar@9 10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 10885 $as_echo "no" >&6; }
alpar@9 10886 fi
alpar@9 10887
alpar@9 10888 case $host_os in
alpar@9 10889 darwin* | macosx*)
alpar@9 10890 LIBIODBC="libiodbc.dylib"
alpar@9 10891 LIBODBC="libodbc.dylib"
alpar@9 10892 LIBMYSQL="libmysqlclient.dylib"
alpar@9 10893 ;;
alpar@9 10894 *)
alpar@9 10895 LIBIODBC="libiodbc.so"
alpar@9 10896 LIBODBC="libodbc.so"
alpar@9 10897 LIBMYSQL="libmysqlclient.so"
alpar@9 10898 ;;
alpar@9 10899 esac
alpar@9 10900
alpar@9 10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MathProg ODBC support" >&5
alpar@9 10902 $as_echo_n "checking whether to enable MathProg ODBC support... " >&6; }
alpar@9 10903 if test "$enable_odbc" = "yes"; then
alpar@9 10904 if test "$enable_dl" = "no"; then
alpar@9 10905 as_fn_error "--enable-odbc requires --enable-dl" "$LINENO" 5
alpar@9 10906 fi
alpar@9 10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
alpar@9 10908 $as_echo "yes" >&6; }
alpar@9 10909
alpar@9 10910 cat >>confdefs.h <<_ACEOF
alpar@9 10911 #define ODBC_DLNAME "$LIBIODBC"
alpar@9 10912 _ACEOF
alpar@9 10913
alpar@9 10914 elif test "$enable_odbc" = "unix"; then
alpar@9 10915 if test "$enable_dl" = "no"; then
alpar@9 10916 as_fn_error "--enable-odbc requires --enable-dl" "$LINENO" 5
alpar@9 10917 fi
alpar@9 10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix" >&5
alpar@9 10919 $as_echo "unix" >&6; }
alpar@9 10920
alpar@9 10921 cat >>confdefs.h <<_ACEOF
alpar@9 10922 #define ODBC_DLNAME "$LIBODBC"
alpar@9 10923 _ACEOF
alpar@9 10924
alpar@9 10925 else
alpar@9 10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 10927 $as_echo "no" >&6; }
alpar@9 10928 fi
alpar@9 10929
alpar@9 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MathProg MySQL support" >&5
alpar@9 10931 $as_echo_n "checking whether to enable MathProg MySQL support... " >&6; }
alpar@9 10932 if test "$enable_mysql" = "yes"; then
alpar@9 10933 if test "$enable_dl" = "no"; then
alpar@9 10934 as_fn_error "--enable-mysql requires --enable-dl" "$LINENO" 5
alpar@9 10935 fi
alpar@9 10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
alpar@9 10937 $as_echo "yes" >&6; }
alpar@9 10938 CPPFLAGS="-I/usr/include/mysql $CPPFLAGS"
alpar@9 10939
alpar@9 10940 cat >>confdefs.h <<_ACEOF
alpar@9 10941 #define MYSQL_DLNAME "$LIBMYSQL"
alpar@9 10942 _ACEOF
alpar@9 10943
alpar@9 10944 else
alpar@9 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
alpar@9 10946 $as_echo "no" >&6; }
alpar@9 10947 fi
alpar@9 10948
alpar@9 10949 ac_config_files="$ac_config_files src/Makefile examples/Makefile Makefile"
alpar@9 10950
alpar@9 10951 cat >confcache <<\_ACEOF
alpar@9 10952 # This file is a shell script that caches the results of configure
alpar@9 10953 # tests run on this system so they can be shared between configure
alpar@9 10954 # scripts and configure runs, see configure's option --config-cache.
alpar@9 10955 # It is not useful on other systems. If it contains results you don't
alpar@9 10956 # want to keep, you may remove or edit it.
alpar@9 10957 #
alpar@9 10958 # config.status only pays attention to the cache file if you give it
alpar@9 10959 # the --recheck option to rerun configure.
alpar@9 10960 #
alpar@9 10961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
alpar@9 10962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
alpar@9 10963 # following values.
alpar@9 10964
alpar@9 10965 _ACEOF
alpar@9 10966
alpar@9 10967 # The following way of writing the cache mishandles newlines in values,
alpar@9 10968 # but we know of no workaround that is simple, portable, and efficient.
alpar@9 10969 # So, we kill variables containing newlines.
alpar@9 10970 # Ultrix sh set writes to stderr and can't be redirected directly,
alpar@9 10971 # and sets the high bit in the cache file unless we assign to the vars.
alpar@9 10972 (
alpar@9 10973 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
alpar@9 10974 eval ac_val=\$$ac_var
alpar@9 10975 case $ac_val in #(
alpar@9 10976 *${as_nl}*)
alpar@9 10977 case $ac_var in #(
alpar@9 10978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
alpar@9 10979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
alpar@9 10980 esac
alpar@9 10981 case $ac_var in #(
alpar@9 10982 _ | IFS | as_nl) ;; #(
alpar@9 10983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
alpar@9 10984 *) { eval $ac_var=; unset $ac_var;} ;;
alpar@9 10985 esac ;;
alpar@9 10986 esac
alpar@9 10987 done
alpar@9 10988
alpar@9 10989 (set) 2>&1 |
alpar@9 10990 case $as_nl`(ac_space=' '; set) 2>&1` in #(
alpar@9 10991 *${as_nl}ac_space=\ *)
alpar@9 10992 # `set' does not quote correctly, so add quotes: double-quote
alpar@9 10993 # substitution turns \\\\ into \\, and sed turns \\ into \.
alpar@9 10994 sed -n \
alpar@9 10995 "s/'/'\\\\''/g;
alpar@9 10996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
alpar@9 10997 ;; #(
alpar@9 10998 *)
alpar@9 10999 # `set' quotes correctly as required by POSIX, so do not add quotes.
alpar@9 11000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
alpar@9 11001 ;;
alpar@9 11002 esac |
alpar@9 11003 sort
alpar@9 11004 ) |
alpar@9 11005 sed '
alpar@9 11006 /^ac_cv_env_/b end
alpar@9 11007 t clear
alpar@9 11008 :clear
alpar@9 11009 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
alpar@9 11010 t end
alpar@9 11011 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
alpar@9 11012 :end' >>confcache
alpar@9 11013 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
alpar@9 11014 if test -w "$cache_file"; then
alpar@9 11015 test "x$cache_file" != "x/dev/null" &&
alpar@9 11016 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
alpar@9 11017 $as_echo "$as_me: updating cache $cache_file" >&6;}
alpar@9 11018 cat confcache >$cache_file
alpar@9 11019 else
alpar@9 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
alpar@9 11021 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
alpar@9 11022 fi
alpar@9 11023 fi
alpar@9 11024 rm -f confcache
alpar@9 11025
alpar@9 11026 test "x$prefix" = xNONE && prefix=$ac_default_prefix
alpar@9 11027 # Let make expand exec_prefix.
alpar@9 11028 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
alpar@9 11029
alpar@9 11030 DEFS=-DHAVE_CONFIG_H
alpar@9 11031
alpar@9 11032 ac_libobjs=
alpar@9 11033 ac_ltlibobjs=
alpar@9 11034 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
alpar@9 11035 # 1. Remove the extension, and $U if already installed.
alpar@9 11036 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
alpar@9 11037 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
alpar@9 11038 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
alpar@9 11039 # will be set to the directory where LIBOBJS objects are built.
alpar@9 11040 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
alpar@9 11041 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
alpar@9 11042 done
alpar@9 11043 LIBOBJS=$ac_libobjs
alpar@9 11044
alpar@9 11045 LTLIBOBJS=$ac_ltlibobjs
alpar@9 11046
alpar@9 11047
alpar@9 11048 if test -n "$EXEEXT"; then
alpar@9 11049 am__EXEEXT_TRUE=
alpar@9 11050 am__EXEEXT_FALSE='#'
alpar@9 11051 else
alpar@9 11052 am__EXEEXT_TRUE='#'
alpar@9 11053 am__EXEEXT_FALSE=
alpar@9 11054 fi
alpar@9 11055
alpar@9 11056 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
alpar@9 11057 as_fn_error "conditional \"AMDEP\" was never defined.
alpar@9 11058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
alpar@9 11059 fi
alpar@9 11060 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
alpar@9 11061 as_fn_error "conditional \"am__fastdepCC\" was never defined.
alpar@9 11062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
alpar@9 11063 fi
alpar@9 11064
alpar@9 11065 : ${CONFIG_STATUS=./config.status}
alpar@9 11066 ac_write_fail=0
alpar@9 11067 ac_clean_files_save=$ac_clean_files
alpar@9 11068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
alpar@9 11069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
alpar@9 11070 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
alpar@9 11071 as_write_fail=0
alpar@9 11072 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
alpar@9 11073 #! $SHELL
alpar@9 11074 # Generated by $as_me.
alpar@9 11075 # Run this file to recreate the current configuration.
alpar@9 11076 # Compiler output produced by configure, useful for debugging
alpar@9 11077 # configure, is in config.log if it exists.
alpar@9 11078
alpar@9 11079 debug=false
alpar@9 11080 ac_cs_recheck=false
alpar@9 11081 ac_cs_silent=false
alpar@9 11082
alpar@9 11083 SHELL=\${CONFIG_SHELL-$SHELL}
alpar@9 11084 export SHELL
alpar@9 11085 _ASEOF
alpar@9 11086 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
alpar@9 11087 ## -------------------- ##
alpar@9 11088 ## M4sh Initialization. ##
alpar@9 11089 ## -------------------- ##
alpar@9 11090
alpar@9 11091 # Be more Bourne compatible
alpar@9 11092 DUALCASE=1; export DUALCASE # for MKS sh
alpar@9 11093 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
alpar@9 11094 emulate sh
alpar@9 11095 NULLCMD=:
alpar@9 11096 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
alpar@9 11097 # is contrary to our usage. Disable this feature.
alpar@9 11098 alias -g '${1+"$@"}'='"$@"'
alpar@9 11099 setopt NO_GLOB_SUBST
alpar@9 11100 else
alpar@9 11101 case `(set -o) 2>/dev/null` in #(
alpar@9 11102 *posix*) :
alpar@9 11103 set -o posix ;; #(
alpar@9 11104 *) :
alpar@9 11105 ;;
alpar@9 11106 esac
alpar@9 11107 fi
alpar@9 11108
alpar@9 11109
alpar@9 11110 as_nl='
alpar@9 11111 '
alpar@9 11112 export as_nl
alpar@9 11113 # Printing a long string crashes Solaris 7 /usr/bin/printf.
alpar@9 11114 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
alpar@9 11115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
alpar@9 11116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
alpar@9 11117 # Prefer a ksh shell builtin over an external printf program on Solaris,
alpar@9 11118 # but without wasting forks for bash or zsh.
alpar@9 11119 if test -z "$BASH_VERSION$ZSH_VERSION" \
alpar@9 11120 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
alpar@9 11121 as_echo='print -r --'
alpar@9 11122 as_echo_n='print -rn --'
alpar@9 11123 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
alpar@9 11124 as_echo='printf %s\n'
alpar@9 11125 as_echo_n='printf %s'
alpar@9 11126 else
alpar@9 11127 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
alpar@9 11128 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
alpar@9 11129 as_echo_n='/usr/ucb/echo -n'
alpar@9 11130 else
alpar@9 11131 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
alpar@9 11132 as_echo_n_body='eval
alpar@9 11133 arg=$1;
alpar@9 11134 case $arg in #(
alpar@9 11135 *"$as_nl"*)
alpar@9 11136 expr "X$arg" : "X\\(.*\\)$as_nl";
alpar@9 11137 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
alpar@9 11138 esac;
alpar@9 11139 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
alpar@9 11140 '
alpar@9 11141 export as_echo_n_body
alpar@9 11142 as_echo_n='sh -c $as_echo_n_body as_echo'
alpar@9 11143 fi
alpar@9 11144 export as_echo_body
alpar@9 11145 as_echo='sh -c $as_echo_body as_echo'
alpar@9 11146 fi
alpar@9 11147
alpar@9 11148 # The user is always right.
alpar@9 11149 if test "${PATH_SEPARATOR+set}" != set; then
alpar@9 11150 PATH_SEPARATOR=:
alpar@9 11151 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
alpar@9 11152 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
alpar@9 11153 PATH_SEPARATOR=';'
alpar@9 11154 }
alpar@9 11155 fi
alpar@9 11156
alpar@9 11157
alpar@9 11158 # IFS
alpar@9 11159 # We need space, tab and new line, in precisely that order. Quoting is
alpar@9 11160 # there to prevent editors from complaining about space-tab.
alpar@9 11161 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
alpar@9 11162 # splitting by setting IFS to empty value.)
alpar@9 11163 IFS=" "" $as_nl"
alpar@9 11164
alpar@9 11165 # Find who we are. Look in the path if we contain no directory separator.
alpar@9 11166 case $0 in #((
alpar@9 11167 *[\\/]* ) as_myself=$0 ;;
alpar@9 11168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
alpar@9 11169 for as_dir in $PATH
alpar@9 11170 do
alpar@9 11171 IFS=$as_save_IFS
alpar@9 11172 test -z "$as_dir" && as_dir=.
alpar@9 11173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
alpar@9 11174 done
alpar@9 11175 IFS=$as_save_IFS
alpar@9 11176
alpar@9 11177 ;;
alpar@9 11178 esac
alpar@9 11179 # We did not find ourselves, most probably we were run as `sh COMMAND'
alpar@9 11180 # in which case we are not to be found in the path.
alpar@9 11181 if test "x$as_myself" = x; then
alpar@9 11182 as_myself=$0
alpar@9 11183 fi
alpar@9 11184 if test ! -f "$as_myself"; then
alpar@9 11185 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
alpar@9 11186 exit 1
alpar@9 11187 fi
alpar@9 11188
alpar@9 11189 # Unset variables that we do not need and which cause bugs (e.g. in
alpar@9 11190 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
alpar@9 11191 # suppresses any "Segmentation fault" message there. '((' could
alpar@9 11192 # trigger a bug in pdksh 5.2.14.
alpar@9 11193 for as_var in BASH_ENV ENV MAIL MAILPATH
alpar@9 11194 do eval test x\${$as_var+set} = xset \
alpar@9 11195 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
alpar@9 11196 done
alpar@9 11197 PS1='$ '
alpar@9 11198 PS2='> '
alpar@9 11199 PS4='+ '
alpar@9 11200
alpar@9 11201 # NLS nuisances.
alpar@9 11202 LC_ALL=C
alpar@9 11203 export LC_ALL
alpar@9 11204 LANGUAGE=C
alpar@9 11205 export LANGUAGE
alpar@9 11206
alpar@9 11207 # CDPATH.
alpar@9 11208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
alpar@9 11209
alpar@9 11210
alpar@9 11211 # as_fn_error ERROR [LINENO LOG_FD]
alpar@9 11212 # ---------------------------------
alpar@9 11213 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
alpar@9 11214 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
alpar@9 11215 # script with status $?, using 1 if that was 0.
alpar@9 11216 as_fn_error ()
alpar@9 11217 {
alpar@9 11218 as_status=$?; test $as_status -eq 0 && as_status=1
alpar@9 11219 if test "$3"; then
alpar@9 11220 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
alpar@9 11221 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
alpar@9 11222 fi
alpar@9 11223 $as_echo "$as_me: error: $1" >&2
alpar@9 11224 as_fn_exit $as_status
alpar@9 11225 } # as_fn_error
alpar@9 11226
alpar@9 11227
alpar@9 11228 # as_fn_set_status STATUS
alpar@9 11229 # -----------------------
alpar@9 11230 # Set $? to STATUS, without forking.
alpar@9 11231 as_fn_set_status ()
alpar@9 11232 {
alpar@9 11233 return $1
alpar@9 11234 } # as_fn_set_status
alpar@9 11235
alpar@9 11236 # as_fn_exit STATUS
alpar@9 11237 # -----------------
alpar@9 11238 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
alpar@9 11239 as_fn_exit ()
alpar@9 11240 {
alpar@9 11241 set +e
alpar@9 11242 as_fn_set_status $1
alpar@9 11243 exit $1
alpar@9 11244 } # as_fn_exit
alpar@9 11245
alpar@9 11246 # as_fn_unset VAR
alpar@9 11247 # ---------------
alpar@9 11248 # Portably unset VAR.
alpar@9 11249 as_fn_unset ()
alpar@9 11250 {
alpar@9 11251 { eval $1=; unset $1;}
alpar@9 11252 }
alpar@9 11253 as_unset=as_fn_unset
alpar@9 11254 # as_fn_append VAR VALUE
alpar@9 11255 # ----------------------
alpar@9 11256 # Append the text in VALUE to the end of the definition contained in VAR. Take
alpar@9 11257 # advantage of any shell optimizations that allow amortized linear growth over
alpar@9 11258 # repeated appends, instead of the typical quadratic growth present in naive
alpar@9 11259 # implementations.
alpar@9 11260 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
alpar@9 11261 eval 'as_fn_append ()
alpar@9 11262 {
alpar@9 11263 eval $1+=\$2
alpar@9 11264 }'
alpar@9 11265 else
alpar@9 11266 as_fn_append ()
alpar@9 11267 {
alpar@9 11268 eval $1=\$$1\$2
alpar@9 11269 }
alpar@9 11270 fi # as_fn_append
alpar@9 11271
alpar@9 11272 # as_fn_arith ARG...
alpar@9 11273 # ------------------
alpar@9 11274 # Perform arithmetic evaluation on the ARGs, and store the result in the
alpar@9 11275 # global $as_val. Take advantage of shells that can avoid forks. The arguments
alpar@9 11276 # must be portable across $(()) and expr.
alpar@9 11277 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
alpar@9 11278 eval 'as_fn_arith ()
alpar@9 11279 {
alpar@9 11280 as_val=$(( $* ))
alpar@9 11281 }'
alpar@9 11282 else
alpar@9 11283 as_fn_arith ()
alpar@9 11284 {
alpar@9 11285 as_val=`expr "$@" || test $? -eq 1`
alpar@9 11286 }
alpar@9 11287 fi # as_fn_arith
alpar@9 11288
alpar@9 11289
alpar@9 11290 if expr a : '\(a\)' >/dev/null 2>&1 &&
alpar@9 11291 test "X`expr 00001 : '.*\(...\)'`" = X001; then
alpar@9 11292 as_expr=expr
alpar@9 11293 else
alpar@9 11294 as_expr=false
alpar@9 11295 fi
alpar@9 11296
alpar@9 11297 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
alpar@9 11298 as_basename=basename
alpar@9 11299 else
alpar@9 11300 as_basename=false
alpar@9 11301 fi
alpar@9 11302
alpar@9 11303 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
alpar@9 11304 as_dirname=dirname
alpar@9 11305 else
alpar@9 11306 as_dirname=false
alpar@9 11307 fi
alpar@9 11308
alpar@9 11309 as_me=`$as_basename -- "$0" ||
alpar@9 11310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
alpar@9 11311 X"$0" : 'X\(//\)$' \| \
alpar@9 11312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
alpar@9 11313 $as_echo X/"$0" |
alpar@9 11314 sed '/^.*\/\([^/][^/]*\)\/*$/{
alpar@9 11315 s//\1/
alpar@9 11316 q
alpar@9 11317 }
alpar@9 11318 /^X\/\(\/\/\)$/{
alpar@9 11319 s//\1/
alpar@9 11320 q
alpar@9 11321 }
alpar@9 11322 /^X\/\(\/\).*/{
alpar@9 11323 s//\1/
alpar@9 11324 q
alpar@9 11325 }
alpar@9 11326 s/.*/./; q'`
alpar@9 11327
alpar@9 11328 # Avoid depending upon Character Ranges.
alpar@9 11329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
alpar@9 11330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
alpar@9 11331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
alpar@9 11332 as_cr_digits='0123456789'
alpar@9 11333 as_cr_alnum=$as_cr_Letters$as_cr_digits
alpar@9 11334
alpar@9 11335 ECHO_C= ECHO_N= ECHO_T=
alpar@9 11336 case `echo -n x` in #(((((
alpar@9 11337 -n*)
alpar@9 11338 case `echo 'xy\c'` in
alpar@9 11339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
alpar@9 11340 xy) ECHO_C='\c';;
alpar@9 11341 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
alpar@9 11342 ECHO_T=' ';;
alpar@9 11343 esac;;
alpar@9 11344 *)
alpar@9 11345 ECHO_N='-n';;
alpar@9 11346 esac
alpar@9 11347
alpar@9 11348 rm -f conf$$ conf$$.exe conf$$.file
alpar@9 11349 if test -d conf$$.dir; then
alpar@9 11350 rm -f conf$$.dir/conf$$.file
alpar@9 11351 else
alpar@9 11352 rm -f conf$$.dir
alpar@9 11353 mkdir conf$$.dir 2>/dev/null
alpar@9 11354 fi
alpar@9 11355 if (echo >conf$$.file) 2>/dev/null; then
alpar@9 11356 if ln -s conf$$.file conf$$ 2>/dev/null; then
alpar@9 11357 as_ln_s='ln -s'
alpar@9 11358 # ... but there are two gotchas:
alpar@9 11359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
alpar@9 11360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
alpar@9 11361 # In both cases, we have to default to `cp -p'.
alpar@9 11362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
alpar@9 11363 as_ln_s='cp -p'
alpar@9 11364 elif ln conf$$.file conf$$ 2>/dev/null; then
alpar@9 11365 as_ln_s=ln
alpar@9 11366 else
alpar@9 11367 as_ln_s='cp -p'
alpar@9 11368 fi
alpar@9 11369 else
alpar@9 11370 as_ln_s='cp -p'
alpar@9 11371 fi
alpar@9 11372 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
alpar@9 11373 rmdir conf$$.dir 2>/dev/null
alpar@9 11374
alpar@9 11375
alpar@9 11376 # as_fn_mkdir_p
alpar@9 11377 # -------------
alpar@9 11378 # Create "$as_dir" as a directory, including parents if necessary.
alpar@9 11379 as_fn_mkdir_p ()
alpar@9 11380 {
alpar@9 11381
alpar@9 11382 case $as_dir in #(
alpar@9 11383 -*) as_dir=./$as_dir;;
alpar@9 11384 esac
alpar@9 11385 test -d "$as_dir" || eval $as_mkdir_p || {
alpar@9 11386 as_dirs=
alpar@9 11387 while :; do
alpar@9 11388 case $as_dir in #(
alpar@9 11389 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
alpar@9 11390 *) as_qdir=$as_dir;;
alpar@9 11391 esac
alpar@9 11392 as_dirs="'$as_qdir' $as_dirs"
alpar@9 11393 as_dir=`$as_dirname -- "$as_dir" ||
alpar@9 11394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
alpar@9 11395 X"$as_dir" : 'X\(//\)[^/]' \| \
alpar@9 11396 X"$as_dir" : 'X\(//\)$' \| \
alpar@9 11397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
alpar@9 11398 $as_echo X"$as_dir" |
alpar@9 11399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
alpar@9 11400 s//\1/
alpar@9 11401 q
alpar@9 11402 }
alpar@9 11403 /^X\(\/\/\)[^/].*/{
alpar@9 11404 s//\1/
alpar@9 11405 q
alpar@9 11406 }
alpar@9 11407 /^X\(\/\/\)$/{
alpar@9 11408 s//\1/
alpar@9 11409 q
alpar@9 11410 }
alpar@9 11411 /^X\(\/\).*/{
alpar@9 11412 s//\1/
alpar@9 11413 q
alpar@9 11414 }
alpar@9 11415 s/.*/./; q'`
alpar@9 11416 test -d "$as_dir" && break
alpar@9 11417 done
alpar@9 11418 test -z "$as_dirs" || eval "mkdir $as_dirs"
alpar@9 11419 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
alpar@9 11420
alpar@9 11421
alpar@9 11422 } # as_fn_mkdir_p
alpar@9 11423 if mkdir -p . 2>/dev/null; then
alpar@9 11424 as_mkdir_p='mkdir -p "$as_dir"'
alpar@9 11425 else
alpar@9 11426 test -d ./-p && rmdir ./-p
alpar@9 11427 as_mkdir_p=false
alpar@9 11428 fi
alpar@9 11429
alpar@9 11430 if test -x / >/dev/null 2>&1; then
alpar@9 11431 as_test_x='test -x'
alpar@9 11432 else
alpar@9 11433 if ls -dL / >/dev/null 2>&1; then
alpar@9 11434 as_ls_L_option=L
alpar@9 11435 else
alpar@9 11436 as_ls_L_option=
alpar@9 11437 fi
alpar@9 11438 as_test_x='
alpar@9 11439 eval sh -c '\''
alpar@9 11440 if test -d "$1"; then
alpar@9 11441 test -d "$1/.";
alpar@9 11442 else
alpar@9 11443 case $1 in #(
alpar@9 11444 -*)set "./$1";;
alpar@9 11445 esac;
alpar@9 11446 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
alpar@9 11447 ???[sx]*):;;*)false;;esac;fi
alpar@9 11448 '\'' sh
alpar@9 11449 '
alpar@9 11450 fi
alpar@9 11451 as_executable_p=$as_test_x
alpar@9 11452
alpar@9 11453 # Sed expression to map a string onto a valid CPP name.
alpar@9 11454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
alpar@9 11455
alpar@9 11456 # Sed expression to map a string onto a valid variable name.
alpar@9 11457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
alpar@9 11458
alpar@9 11459
alpar@9 11460 exec 6>&1
alpar@9 11461 ## ----------------------------------- ##
alpar@9 11462 ## Main body of $CONFIG_STATUS script. ##
alpar@9 11463 ## ----------------------------------- ##
alpar@9 11464 _ASEOF
alpar@9 11465 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
alpar@9 11466
alpar@9 11467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
alpar@9 11468 # Save the log message, to keep $0 and so on meaningful, and to
alpar@9 11469 # report actual input values of CONFIG_FILES etc. instead of their
alpar@9 11470 # values after options handling.
alpar@9 11471 ac_log="
alpar@9 11472 This file was extended by GLPK $as_me 4.47, which was
alpar@9 11473 generated by GNU Autoconf 2.65. Invocation command line was
alpar@9 11474
alpar@9 11475 CONFIG_FILES = $CONFIG_FILES
alpar@9 11476 CONFIG_HEADERS = $CONFIG_HEADERS
alpar@9 11477 CONFIG_LINKS = $CONFIG_LINKS
alpar@9 11478 CONFIG_COMMANDS = $CONFIG_COMMANDS
alpar@9 11479 $ $0 $@
alpar@9 11480
alpar@9 11481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
alpar@9 11482 "
alpar@9 11483
alpar@9 11484 _ACEOF
alpar@9 11485
alpar@9 11486 case $ac_config_files in *"
alpar@9 11487 "*) set x $ac_config_files; shift; ac_config_files=$*;;
alpar@9 11488 esac
alpar@9 11489
alpar@9 11490 case $ac_config_headers in *"
alpar@9 11491 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
alpar@9 11492 esac
alpar@9 11493
alpar@9 11494
alpar@9 11495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
alpar@9 11496 # Files that config.status was made for.
alpar@9 11497 config_files="$ac_config_files"
alpar@9 11498 config_headers="$ac_config_headers"
alpar@9 11499 config_commands="$ac_config_commands"
alpar@9 11500
alpar@9 11501 _ACEOF
alpar@9 11502
alpar@9 11503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
alpar@9 11504 ac_cs_usage="\
alpar@9 11505 \`$as_me' instantiates files and other configuration actions
alpar@9 11506 from templates according to the current configuration. Unless the files
alpar@9 11507 and actions are specified as TAGs, all are instantiated by default.
alpar@9 11508
alpar@9 11509 Usage: $0 [OPTION]... [TAG]...
alpar@9 11510
alpar@9 11511 -h, --help print this help, then exit
alpar@9 11512 -V, --version print version number and configuration settings, then exit
alpar@9 11513 --config print configuration, then exit
alpar@9 11514 -q, --quiet, --silent
alpar@9 11515 do not print progress messages
alpar@9 11516 -d, --debug don't remove temporary files
alpar@9 11517 --recheck update $as_me by reconfiguring in the same conditions
alpar@9 11518 --file=FILE[:TEMPLATE]
alpar@9 11519 instantiate the configuration file FILE
alpar@9 11520 --header=FILE[:TEMPLATE]
alpar@9 11521 instantiate the configuration header FILE
alpar@9 11522
alpar@9 11523 Configuration files:
alpar@9 11524 $config_files
alpar@9 11525
alpar@9 11526 Configuration headers:
alpar@9 11527 $config_headers
alpar@9 11528
alpar@9 11529 Configuration commands:
alpar@9 11530 $config_commands
alpar@9 11531
alpar@9 11532 Report bugs to <bug-glpk@gnu.org>."
alpar@9 11533
alpar@9 11534 _ACEOF
alpar@9 11535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
alpar@9 11536 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
alpar@9 11537 ac_cs_version="\\
alpar@9 11538 GLPK config.status 4.47
alpar@9 11539 configured by $0, generated by GNU Autoconf 2.65,
alpar@9 11540 with options \\"\$ac_cs_config\\"
alpar@9 11541
alpar@9 11542 Copyright (C) 2009 Free Software Foundation, Inc.
alpar@9 11543 This config.status script is free software; the Free Software Foundation
alpar@9 11544 gives unlimited permission to copy, distribute and modify it."
alpar@9 11545
alpar@9 11546 ac_pwd='$ac_pwd'
alpar@9 11547 srcdir='$srcdir'
alpar@9 11548 INSTALL='$INSTALL'
alpar@9 11549 MKDIR_P='$MKDIR_P'
alpar@9 11550 AWK='$AWK'
alpar@9 11551 test -n "\$AWK" || AWK=awk
alpar@9 11552 _ACEOF
alpar@9 11553
alpar@9 11554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
alpar@9 11555 # The default lists apply if the user does not specify any file.
alpar@9 11556 ac_need_defaults=:
alpar@9 11557 while test $# != 0
alpar@9 11558 do
alpar@9 11559 case $1 in
alpar@9 11560 --*=*)
alpar@9 11561 ac_option=`expr "X$1" : 'X\([^=]*\)='`
alpar@9 11562 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
alpar@9 11563 ac_shift=:
alpar@9 11564 ;;
alpar@9 11565 *)
alpar@9 11566 ac_option=$1
alpar@9 11567 ac_optarg=$2
alpar@9 11568 ac_shift=shift
alpar@9 11569 ;;
alpar@9 11570 esac
alpar@9 11571
alpar@9 11572 case $ac_option in
alpar@9 11573 # Handling of the options.
alpar@9 11574 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
alpar@9 11575 ac_cs_recheck=: ;;
alpar@9 11576 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
alpar@9 11577 $as_echo "$ac_cs_version"; exit ;;
alpar@9 11578 --config | --confi | --conf | --con | --co | --c )
alpar@9 11579 $as_echo "$ac_cs_config"; exit ;;
alpar@9 11580 --debug | --debu | --deb | --de | --d | -d )
alpar@9 11581 debug=: ;;
alpar@9 11582 --file | --fil | --fi | --f )
alpar@9 11583 $ac_shift
alpar@9 11584 case $ac_optarg in
alpar@9 11585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
alpar@9 11586 esac
alpar@9 11587 as_fn_append CONFIG_FILES " '$ac_optarg'"
alpar@9 11588 ac_need_defaults=false;;
alpar@9 11589 --header | --heade | --head | --hea )
alpar@9 11590 $ac_shift
alpar@9 11591 case $ac_optarg in
alpar@9 11592 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
alpar@9 11593 esac
alpar@9 11594 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
alpar@9 11595 ac_need_defaults=false;;
alpar@9 11596 --he | --h)
alpar@9 11597 # Conflict between --help and --header
alpar@9 11598 as_fn_error "ambiguous option: \`$1'
alpar@9 11599 Try \`$0 --help' for more information.";;
alpar@9 11600 --help | --hel | -h )
alpar@9 11601 $as_echo "$ac_cs_usage"; exit ;;
alpar@9 11602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
alpar@9 11603 | -silent | --silent | --silen | --sile | --sil | --si | --s)
alpar@9 11604 ac_cs_silent=: ;;
alpar@9 11605
alpar@9 11606 # This is an error.
alpar@9 11607 -*) as_fn_error "unrecognized option: \`$1'
alpar@9 11608 Try \`$0 --help' for more information." ;;
alpar@9 11609
alpar@9 11610 *) as_fn_append ac_config_targets " $1"
alpar@9 11611 ac_need_defaults=false ;;
alpar@9 11612
alpar@9 11613 esac
alpar@9 11614 shift
alpar@9 11615 done
alpar@9 11616
alpar@9 11617 ac_configure_extra_args=
alpar@9 11618
alpar@9 11619 if $ac_cs_silent; then
alpar@9 11620 exec 6>/dev/null
alpar@9 11621 ac_configure_extra_args="$ac_configure_extra_args --silent"
alpar@9 11622 fi
alpar@9 11623
alpar@9 11624 _ACEOF
alpar@9 11625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
alpar@9 11626 if \$ac_cs_recheck; then
alpar@9 11627 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
alpar@9 11628 shift
alpar@9 11629 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
alpar@9 11630 CONFIG_SHELL='$SHELL'
alpar@9 11631 export CONFIG_SHELL
alpar@9 11632 exec "\$@"
alpar@9 11633 fi
alpar@9 11634
alpar@9 11635 _ACEOF
alpar@9 11636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
alpar@9 11637 exec 5>>config.log
alpar@9 11638 {
alpar@9 11639 echo
alpar@9 11640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
alpar@9 11641 ## Running $as_me. ##
alpar@9 11642 _ASBOX
alpar@9 11643 $as_echo "$ac_log"
alpar@9 11644 } >&5
alpar@9 11645
alpar@9 11646 _ACEOF
alpar@9 11647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
alpar@9 11648 #
alpar@9 11649 # INIT-COMMANDS
alpar@9 11650 #
alpar@9 11651 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
alpar@9 11652
alpar@9 11653
alpar@9 11654 # The HP-UX ksh and POSIX shell print the target directory to stdout
alpar@9 11655 # if CDPATH is set.
alpar@9 11656 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
alpar@9 11657
alpar@9 11658 sed_quote_subst='$sed_quote_subst'
alpar@9 11659 double_quote_subst='$double_quote_subst'
alpar@9 11660 delay_variable_subst='$delay_variable_subst'
alpar@9 11661 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
alpar@9 11662 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
alpar@9 11663 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
alpar@9 11664 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
alpar@9 11665 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
alpar@9 11666 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
alpar@9 11667 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
alpar@9 11668 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
alpar@9 11669 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
alpar@9 11670 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
alpar@9 11671 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
alpar@9 11672 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
alpar@9 11673 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
alpar@9 11674 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
alpar@9 11675 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
alpar@9 11676 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
alpar@9 11677 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
alpar@9 11678 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
alpar@9 11679 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
alpar@9 11680 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
alpar@9 11681 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
alpar@9 11682 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
alpar@9 11683 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
alpar@9 11684 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
alpar@9 11685 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
alpar@9 11686 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
alpar@9 11687 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
alpar@9 11688 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
alpar@9 11689 lt_cv_to_host_path_cmd='`$ECHO "$lt_cv_to_host_path_cmd" | $SED "$delay_single_quote_subst"`'
alpar@9 11690 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
alpar@9 11691 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11692 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
alpar@9 11693 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
alpar@9 11694 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
alpar@9 11695 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
alpar@9 11696 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
alpar@9 11697 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
alpar@9 11698 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
alpar@9 11699 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
alpar@9 11700 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
alpar@9 11701 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11702 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11703 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11704 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
alpar@9 11705 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
alpar@9 11706 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
alpar@9 11707 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
alpar@9 11708 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
alpar@9 11709 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
alpar@9 11710 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
alpar@9 11711 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
alpar@9 11712 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
alpar@9 11713 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
alpar@9 11714 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
alpar@9 11715 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
alpar@9 11716 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
alpar@9 11717 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
alpar@9 11718 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
alpar@9 11719 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
alpar@9 11720 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
alpar@9 11721 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
alpar@9 11722 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
alpar@9 11723 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
alpar@9 11724 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
alpar@9 11725 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
alpar@9 11726 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
alpar@9 11727 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11728 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11729 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
alpar@9 11730 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
alpar@9 11731 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
alpar@9 11732 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
alpar@9 11733 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
alpar@9 11734 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11735 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11736 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11737 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11738 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11739 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11740 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
alpar@9 11741 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
alpar@9 11742 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
alpar@9 11743 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
alpar@9 11744 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
alpar@9 11745 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
alpar@9 11746 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
alpar@9 11747 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
alpar@9 11748 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
alpar@9 11749 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
alpar@9 11750 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
alpar@9 11751 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
alpar@9 11752 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
alpar@9 11753 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
alpar@9 11754 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
alpar@9 11755 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11756 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
alpar@9 11757 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
alpar@9 11758 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11759 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
alpar@9 11760 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
alpar@9 11761 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
alpar@9 11762 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
alpar@9 11763 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
alpar@9 11764 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
alpar@9 11765 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
alpar@9 11766 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
alpar@9 11767 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
alpar@9 11768 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
alpar@9 11769 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
alpar@9 11770 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
alpar@9 11771 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11772 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11773 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
alpar@9 11774 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
alpar@9 11775 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
alpar@9 11776 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
alpar@9 11777 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
alpar@9 11778 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
alpar@9 11779 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
alpar@9 11780 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
alpar@9 11781 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
alpar@9 11782 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
alpar@9 11783 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
alpar@9 11784
alpar@9 11785 LTCC='$LTCC'
alpar@9 11786 LTCFLAGS='$LTCFLAGS'
alpar@9 11787 compiler='$compiler_DEFAULT'
alpar@9 11788
alpar@9 11789 # A function that is used when there is no print builtin or printf.
alpar@9 11790 func_fallback_echo ()
alpar@9 11791 {
alpar@9 11792 eval 'cat <<_LTECHO_EOF
alpar@9 11793 \$1
alpar@9 11794 _LTECHO_EOF'
alpar@9 11795 }
alpar@9 11796
alpar@9 11797 # Quote evaled strings.
alpar@9 11798 for var in SHELL \
alpar@9 11799 ECHO \
alpar@9 11800 SED \
alpar@9 11801 GREP \
alpar@9 11802 EGREP \
alpar@9 11803 FGREP \
alpar@9 11804 LD \
alpar@9 11805 NM \
alpar@9 11806 LN_S \
alpar@9 11807 lt_SP2NL \
alpar@9 11808 lt_NL2SP \
alpar@9 11809 reload_flag \
alpar@9 11810 OBJDUMP \
alpar@9 11811 deplibs_check_method \
alpar@9 11812 file_magic_cmd \
alpar@9 11813 DLLTOOL \
alpar@9 11814 sharedlib_from_linklib_cmd \
alpar@9 11815 AR \
alpar@9 11816 AR_FLAGS \
alpar@9 11817 STRIP \
alpar@9 11818 RANLIB \
alpar@9 11819 CC \
alpar@9 11820 CFLAGS \
alpar@9 11821 compiler \
alpar@9 11822 lt_cv_sys_global_symbol_pipe \
alpar@9 11823 lt_cv_sys_global_symbol_to_cdecl \
alpar@9 11824 lt_cv_sys_global_symbol_to_c_name_address \
alpar@9 11825 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
alpar@9 11826 lt_prog_compiler_no_builtin_flag \
alpar@9 11827 lt_prog_compiler_wl \
alpar@9 11828 lt_prog_compiler_pic \
alpar@9 11829 lt_prog_compiler_static \
alpar@9 11830 lt_cv_prog_compiler_c_o \
alpar@9 11831 need_locks \
alpar@9 11832 DSYMUTIL \
alpar@9 11833 NMEDIT \
alpar@9 11834 LIPO \
alpar@9 11835 OTOOL \
alpar@9 11836 OTOOL64 \
alpar@9 11837 shrext_cmds \
alpar@9 11838 export_dynamic_flag_spec \
alpar@9 11839 whole_archive_flag_spec \
alpar@9 11840 compiler_needs_object \
alpar@9 11841 with_gnu_ld \
alpar@9 11842 allow_undefined_flag \
alpar@9 11843 no_undefined_flag \
alpar@9 11844 hardcode_libdir_flag_spec \
alpar@9 11845 hardcode_libdir_flag_spec_ld \
alpar@9 11846 hardcode_libdir_separator \
alpar@9 11847 fix_srcfile_path \
alpar@9 11848 exclude_expsyms \
alpar@9 11849 include_expsyms \
alpar@9 11850 file_list_spec \
alpar@9 11851 variables_saved_for_relink \
alpar@9 11852 libname_spec \
alpar@9 11853 library_names_spec \
alpar@9 11854 soname_spec \
alpar@9 11855 install_override_mode \
alpar@9 11856 finish_eval \
alpar@9 11857 old_striplib \
alpar@9 11858 striplib; do
alpar@9 11859 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
alpar@9 11860 *[\\\\\\\`\\"\\\$]*)
alpar@9 11861 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
alpar@9 11862 ;;
alpar@9 11863 *)
alpar@9 11864 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
alpar@9 11865 ;;
alpar@9 11866 esac
alpar@9 11867 done
alpar@9 11868
alpar@9 11869 # Double-quote double-evaled strings.
alpar@9 11870 for var in reload_cmds \
alpar@9 11871 old_postinstall_cmds \
alpar@9 11872 old_postuninstall_cmds \
alpar@9 11873 old_archive_cmds \
alpar@9 11874 extract_expsyms_cmds \
alpar@9 11875 old_archive_from_new_cmds \
alpar@9 11876 old_archive_from_expsyms_cmds \
alpar@9 11877 archive_cmds \
alpar@9 11878 archive_expsym_cmds \
alpar@9 11879 module_cmds \
alpar@9 11880 module_expsym_cmds \
alpar@9 11881 export_symbols_cmds \
alpar@9 11882 prelink_cmds \
alpar@9 11883 postinstall_cmds \
alpar@9 11884 postuninstall_cmds \
alpar@9 11885 finish_cmds \
alpar@9 11886 sys_lib_search_path_spec \
alpar@9 11887 sys_lib_dlsearch_path_spec; do
alpar@9 11888 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
alpar@9 11889 *[\\\\\\\`\\"\\\$]*)
alpar@9 11890 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
alpar@9 11891 ;;
alpar@9 11892 *)
alpar@9 11893 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
alpar@9 11894 ;;
alpar@9 11895 esac
alpar@9 11896 done
alpar@9 11897
alpar@9 11898 ac_aux_dir='$ac_aux_dir'
alpar@9 11899 xsi_shell='$xsi_shell'
alpar@9 11900 lt_shell_append='$lt_shell_append'
alpar@9 11901
alpar@9 11902 # See if we are running on zsh, and set the options which allow our
alpar@9 11903 # commands through without removal of \ escapes INIT.
alpar@9 11904 if test -n "\${ZSH_VERSION+set}" ; then
alpar@9 11905 setopt NO_GLOB_SUBST
alpar@9 11906 fi
alpar@9 11907
alpar@9 11908
alpar@9 11909 PACKAGE='$PACKAGE'
alpar@9 11910 VERSION='$VERSION'
alpar@9 11911 TIMESTAMP='$TIMESTAMP'
alpar@9 11912 RM='$RM'
alpar@9 11913 ofile='$ofile'
alpar@9 11914
alpar@9 11915
alpar@9 11916
alpar@9 11917
alpar@9 11918 _ACEOF
alpar@9 11919
alpar@9 11920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
alpar@9 11921
alpar@9 11922 # Handling of arguments.
alpar@9 11923 for ac_config_target in $ac_config_targets
alpar@9 11924 do
alpar@9 11925 case $ac_config_target in
alpar@9 11926 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
alpar@9 11927 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
alpar@9 11928 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
alpar@9 11929 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
alpar@9 11930 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
alpar@9 11931 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
alpar@9 11932
alpar@9 11933 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
alpar@9 11934 esac
alpar@9 11935 done
alpar@9 11936
alpar@9 11937
alpar@9 11938 # If the user did not use the arguments to specify the items to instantiate,
alpar@9 11939 # then the envvar interface is used. Set only those that are not.
alpar@9 11940 # We use the long form for the default assignment because of an extremely
alpar@9 11941 # bizarre bug on SunOS 4.1.3.
alpar@9 11942 if $ac_need_defaults; then
alpar@9 11943 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
alpar@9 11944 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
alpar@9 11945 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
alpar@9 11946 fi
alpar@9 11947
alpar@9 11948 # Have a temporary directory for convenience. Make it in the build tree
alpar@9 11949 # simply because there is no reason against having it here, and in addition,
alpar@9 11950 # creating and moving files from /tmp can sometimes cause problems.
alpar@9 11951 # Hook for its removal unless debugging.
alpar@9 11952 # Note that there is a small window in which the directory will not be cleaned:
alpar@9 11953 # after its creation but before its name has been assigned to `$tmp'.
alpar@9 11954 $debug ||
alpar@9 11955 {
alpar@9 11956 tmp=
alpar@9 11957 trap 'exit_status=$?
alpar@9 11958 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
alpar@9 11959 ' 0
alpar@9 11960 trap 'as_fn_exit 1' 1 2 13 15
alpar@9 11961 }
alpar@9 11962 # Create a (secure) tmp directory for tmp files.
alpar@9 11963
alpar@9 11964 {
alpar@9 11965 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
alpar@9 11966 test -n "$tmp" && test -d "$tmp"
alpar@9 11967 } ||
alpar@9 11968 {
alpar@9 11969 tmp=./conf$$-$RANDOM
alpar@9 11970 (umask 077 && mkdir "$tmp")
alpar@9 11971 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
alpar@9 11972
alpar@9 11973 # Set up the scripts for CONFIG_FILES section.
alpar@9 11974 # No need to generate them if there are no CONFIG_FILES.
alpar@9 11975 # This happens for instance with `./config.status config.h'.
alpar@9 11976 if test -n "$CONFIG_FILES"; then
alpar@9 11977
alpar@9 11978
alpar@9 11979 ac_cr=`echo X | tr X '\015'`
alpar@9 11980 # On cygwin, bash can eat \r inside `` if the user requested igncr.
alpar@9 11981 # But we know of no other shell where ac_cr would be empty at this
alpar@9 11982 # point, so we can use a bashism as a fallback.
alpar@9 11983 if test "x$ac_cr" = x; then
alpar@9 11984 eval ac_cr=\$\'\\r\'
alpar@9 11985 fi
alpar@9 11986 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
alpar@9 11987 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
alpar@9 11988 ac_cs_awk_cr='\r'
alpar@9 11989 else
alpar@9 11990 ac_cs_awk_cr=$ac_cr
alpar@9 11991 fi
alpar@9 11992
alpar@9 11993 echo 'BEGIN {' >"$tmp/subs1.awk" &&
alpar@9 11994 _ACEOF
alpar@9 11995
alpar@9 11996
alpar@9 11997 {
alpar@9 11998 echo "cat >conf$$subs.awk <<_ACEOF" &&
alpar@9 11999 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
alpar@9 12000 echo "_ACEOF"
alpar@9 12001 } >conf$$subs.sh ||
alpar@9 12002 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
alpar@9 12003 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
alpar@9 12004 ac_delim='%!_!# '
alpar@9 12005 for ac_last_try in false false false false false :; do
alpar@9 12006 . ./conf$$subs.sh ||
alpar@9 12007 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
alpar@9 12008
alpar@9 12009 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
alpar@9 12010 if test $ac_delim_n = $ac_delim_num; then
alpar@9 12011 break
alpar@9 12012 elif $ac_last_try; then
alpar@9 12013 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
alpar@9 12014 else
alpar@9 12015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
alpar@9 12016 fi
alpar@9 12017 done
alpar@9 12018 rm -f conf$$subs.sh
alpar@9 12019
alpar@9 12020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
alpar@9 12021 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
alpar@9 12022 _ACEOF
alpar@9 12023 sed -n '
alpar@9 12024 h
alpar@9 12025 s/^/S["/; s/!.*/"]=/
alpar@9 12026 p
alpar@9 12027 g
alpar@9 12028 s/^[^!]*!//
alpar@9 12029 :repl
alpar@9 12030 t repl
alpar@9 12031 s/'"$ac_delim"'$//
alpar@9 12032 t delim
alpar@9 12033 :nl
alpar@9 12034 h
alpar@9 12035 s/\(.\{148\}\)..*/\1/
alpar@9 12036 t more1
alpar@9 12037 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
alpar@9 12038 p
alpar@9 12039 n
alpar@9 12040 b repl
alpar@9 12041 :more1
alpar@9 12042 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
alpar@9 12043 p
alpar@9 12044 g
alpar@9 12045 s/.\{148\}//
alpar@9 12046 t nl
alpar@9 12047 :delim
alpar@9 12048 h
alpar@9 12049 s/\(.\{148\}\)..*/\1/
alpar@9 12050 t more2
alpar@9 12051 s/["\\]/\\&/g; s/^/"/; s/$/"/
alpar@9 12052 p
alpar@9 12053 b
alpar@9 12054 :more2
alpar@9 12055 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
alpar@9 12056 p
alpar@9 12057 g
alpar@9 12058 s/.\{148\}//
alpar@9 12059 t delim
alpar@9 12060 ' <conf$$subs.awk | sed '
alpar@9 12061 /^[^""]/{
alpar@9 12062 N
alpar@9 12063 s/\n//
alpar@9 12064 }
alpar@9 12065 ' >>$CONFIG_STATUS || ac_write_fail=1
alpar@9 12066 rm -f conf$$subs.awk
alpar@9 12067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
alpar@9 12068 _ACAWK
alpar@9 12069 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
alpar@9 12070 for (key in S) S_is_set[key] = 1
alpar@9 12071 FS = ""
alpar@9 12072
alpar@9 12073 }
alpar@9 12074 {
alpar@9 12075 line = $ 0
alpar@9 12076 nfields = split(line, field, "@")
alpar@9 12077 substed = 0
alpar@9 12078 len = length(field[1])
alpar@9 12079 for (i = 2; i < nfields; i++) {
alpar@9 12080 key = field[i]
alpar@9 12081 keylen = length(key)
alpar@9 12082 if (S_is_set[key]) {
alpar@9 12083 value = S[key]
alpar@9 12084 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
alpar@9 12085 len += length(value) + length(field[++i])
alpar@9 12086 substed = 1
alpar@9 12087 } else
alpar@9 12088 len += 1 + keylen
alpar@9 12089 }
alpar@9 12090
alpar@9 12091 print line
alpar@9 12092 }
alpar@9 12093
alpar@9 12094 _ACAWK
alpar@9 12095 _ACEOF
alpar@9 12096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
alpar@9 12097 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
alpar@9 12098 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
alpar@9 12099 else
alpar@9 12100 cat
alpar@9 12101 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
alpar@9 12102 || as_fn_error "could not setup config files machinery" "$LINENO" 5
alpar@9 12103 _ACEOF
alpar@9 12104
alpar@9 12105 # VPATH may cause trouble with some makes, so we remove $(srcdir),
alpar@9 12106 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
alpar@9 12107 # trailing colons and then remove the whole line if VPATH becomes empty
alpar@9 12108 # (actually we leave an empty line to preserve line numbers).
alpar@9 12109 if test "x$srcdir" = x.; then
alpar@9 12110 ac_vpsub='/^[ ]*VPATH[ ]*=/{
alpar@9 12111 s/:*\$(srcdir):*/:/
alpar@9 12112 s/:*\${srcdir}:*/:/
alpar@9 12113 s/:*@srcdir@:*/:/
alpar@9 12114 s/^\([^=]*=[ ]*\):*/\1/
alpar@9 12115 s/:*$//
alpar@9 12116 s/^[^=]*=[ ]*$//
alpar@9 12117 }'
alpar@9 12118 fi
alpar@9 12119
alpar@9 12120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
alpar@9 12121 fi # test -n "$CONFIG_FILES"
alpar@9 12122
alpar@9 12123 # Set up the scripts for CONFIG_HEADERS section.
alpar@9 12124 # No need to generate them if there are no CONFIG_HEADERS.
alpar@9 12125 # This happens for instance with `./config.status Makefile'.
alpar@9 12126 if test -n "$CONFIG_HEADERS"; then
alpar@9 12127 cat >"$tmp/defines.awk" <<\_ACAWK ||
alpar@9 12128 BEGIN {
alpar@9 12129 _ACEOF
alpar@9 12130
alpar@9 12131 # Transform confdefs.h into an awk script `defines.awk', embedded as
alpar@9 12132 # here-document in config.status, that substitutes the proper values into
alpar@9 12133 # config.h.in to produce config.h.
alpar@9 12134
alpar@9 12135 # Create a delimiter string that does not exist in confdefs.h, to ease
alpar@9 12136 # handling of long lines.
alpar@9 12137 ac_delim='%!_!# '
alpar@9 12138 for ac_last_try in false false :; do
alpar@9 12139 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
alpar@9 12140 if test -z "$ac_t"; then
alpar@9 12141 break
alpar@9 12142 elif $ac_last_try; then
alpar@9 12143 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
alpar@9 12144 else
alpar@9 12145 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
alpar@9 12146 fi
alpar@9 12147 done
alpar@9 12148
alpar@9 12149 # For the awk script, D is an array of macro values keyed by name,
alpar@9 12150 # likewise P contains macro parameters if any. Preserve backslash
alpar@9 12151 # newline sequences.
alpar@9 12152
alpar@9 12153 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
alpar@9 12154 sed -n '
alpar@9 12155 s/.\{148\}/&'"$ac_delim"'/g
alpar@9 12156 t rset
alpar@9 12157 :rset
alpar@9 12158 s/^[ ]*#[ ]*define[ ][ ]*/ /
alpar@9 12159 t def
alpar@9 12160 d
alpar@9 12161 :def
alpar@9 12162 s/\\$//
alpar@9 12163 t bsnl
alpar@9 12164 s/["\\]/\\&/g
alpar@9 12165 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
alpar@9 12166 D["\1"]=" \3"/p
alpar@9 12167 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
alpar@9 12168 d
alpar@9 12169 :bsnl
alpar@9 12170 s/["\\]/\\&/g
alpar@9 12171 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
alpar@9 12172 D["\1"]=" \3\\\\\\n"\\/p
alpar@9 12173 t cont
alpar@9 12174 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
alpar@9 12175 t cont
alpar@9 12176 d
alpar@9 12177 :cont
alpar@9 12178 n
alpar@9 12179 s/.\{148\}/&'"$ac_delim"'/g
alpar@9 12180 t clear
alpar@9 12181 :clear
alpar@9 12182 s/\\$//
alpar@9 12183 t bsnlc
alpar@9 12184 s/["\\]/\\&/g; s/^/"/; s/$/"/p
alpar@9 12185 d
alpar@9 12186 :bsnlc
alpar@9 12187 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
alpar@9 12188 b cont
alpar@9 12189 ' <confdefs.h | sed '
alpar@9 12190 s/'"$ac_delim"'/"\\\
alpar@9 12191 "/g' >>$CONFIG_STATUS || ac_write_fail=1
alpar@9 12192
alpar@9 12193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
alpar@9 12194 for (key in D) D_is_set[key] = 1
alpar@9 12195 FS = ""
alpar@9 12196 }
alpar@9 12197 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
alpar@9 12198 line = \$ 0
alpar@9 12199 split(line, arg, " ")
alpar@9 12200 if (arg[1] == "#") {
alpar@9 12201 defundef = arg[2]
alpar@9 12202 mac1 = arg[3]
alpar@9 12203 } else {
alpar@9 12204 defundef = substr(arg[1], 2)
alpar@9 12205 mac1 = arg[2]
alpar@9 12206 }
alpar@9 12207 split(mac1, mac2, "(") #)
alpar@9 12208 macro = mac2[1]
alpar@9 12209 prefix = substr(line, 1, index(line, defundef) - 1)
alpar@9 12210 if (D_is_set[macro]) {
alpar@9 12211 # Preserve the white space surrounding the "#".
alpar@9 12212 print prefix "define", macro P[macro] D[macro]
alpar@9 12213 next
alpar@9 12214 } else {
alpar@9 12215 # Replace #undef with comments. This is necessary, for example,
alpar@9 12216 # in the case of _POSIX_SOURCE, which is predefined and required
alpar@9 12217 # on some systems where configure will not decide to define it.
alpar@9 12218 if (defundef == "undef") {
alpar@9 12219 print "/*", prefix defundef, macro, "*/"
alpar@9 12220 next
alpar@9 12221 }
alpar@9 12222 }
alpar@9 12223 }
alpar@9 12224 { print }
alpar@9 12225 _ACAWK
alpar@9 12226 _ACEOF
alpar@9 12227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
alpar@9 12228 as_fn_error "could not setup config headers machinery" "$LINENO" 5
alpar@9 12229 fi # test -n "$CONFIG_HEADERS"
alpar@9 12230
alpar@9 12231
alpar@9 12232 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
alpar@9 12233 shift
alpar@9 12234 for ac_tag
alpar@9 12235 do
alpar@9 12236 case $ac_tag in
alpar@9 12237 :[FHLC]) ac_mode=$ac_tag; continue;;
alpar@9 12238 esac
alpar@9 12239 case $ac_mode$ac_tag in
alpar@9 12240 :[FHL]*:*);;
alpar@9 12241 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
alpar@9 12242 :[FH]-) ac_tag=-:-;;
alpar@9 12243 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
alpar@9 12244 esac
alpar@9 12245 ac_save_IFS=$IFS
alpar@9 12246 IFS=:
alpar@9 12247 set x $ac_tag
alpar@9 12248 IFS=$ac_save_IFS
alpar@9 12249 shift
alpar@9 12250 ac_file=$1
alpar@9 12251 shift
alpar@9 12252
alpar@9 12253 case $ac_mode in
alpar@9 12254 :L) ac_source=$1;;
alpar@9 12255 :[FH])
alpar@9 12256 ac_file_inputs=
alpar@9 12257 for ac_f
alpar@9 12258 do
alpar@9 12259 case $ac_f in
alpar@9 12260 -) ac_f="$tmp/stdin";;
alpar@9 12261 *) # Look for the file first in the build tree, then in the source tree
alpar@9 12262 # (if the path is not absolute). The absolute path cannot be DOS-style,
alpar@9 12263 # because $ac_f cannot contain `:'.
alpar@9 12264 test -f "$ac_f" ||
alpar@9 12265 case $ac_f in
alpar@9 12266 [\\/$]*) false;;
alpar@9 12267 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
alpar@9 12268 esac ||
alpar@9 12269 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
alpar@9 12270 esac
alpar@9 12271 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
alpar@9 12272 as_fn_append ac_file_inputs " '$ac_f'"
alpar@9 12273 done
alpar@9 12274
alpar@9 12275 # Let's still pretend it is `configure' which instantiates (i.e., don't
alpar@9 12276 # use $as_me), people would be surprised to read:
alpar@9 12277 # /* config.h. Generated by config.status. */
alpar@9 12278 configure_input='Generated from '`
alpar@9 12279 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
alpar@9 12280 `' by configure.'
alpar@9 12281 if test x"$ac_file" != x-; then
alpar@9 12282 configure_input="$ac_file. $configure_input"
alpar@9 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
alpar@9 12284 $as_echo "$as_me: creating $ac_file" >&6;}
alpar@9 12285 fi
alpar@9 12286 # Neutralize special characters interpreted by sed in replacement strings.
alpar@9 12287 case $configure_input in #(
alpar@9 12288 *\&* | *\|* | *\\* )
alpar@9 12289 ac_sed_conf_input=`$as_echo "$configure_input" |
alpar@9 12290 sed 's/[\\\\&|]/\\\\&/g'`;; #(
alpar@9 12291 *) ac_sed_conf_input=$configure_input;;
alpar@9 12292 esac
alpar@9 12293
alpar@9 12294 case $ac_tag in
alpar@9 12295 *:-:* | *:-) cat >"$tmp/stdin" \
alpar@9 12296 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
alpar@9 12297 esac
alpar@9 12298 ;;
alpar@9 12299 esac
alpar@9 12300
alpar@9 12301 ac_dir=`$as_dirname -- "$ac_file" ||
alpar@9 12302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
alpar@9 12303 X"$ac_file" : 'X\(//\)[^/]' \| \
alpar@9 12304 X"$ac_file" : 'X\(//\)$' \| \
alpar@9 12305 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
alpar@9 12306 $as_echo X"$ac_file" |
alpar@9 12307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
alpar@9 12308 s//\1/
alpar@9 12309 q
alpar@9 12310 }
alpar@9 12311 /^X\(\/\/\)[^/].*/{
alpar@9 12312 s//\1/
alpar@9 12313 q
alpar@9 12314 }
alpar@9 12315 /^X\(\/\/\)$/{
alpar@9 12316 s//\1/
alpar@9 12317 q
alpar@9 12318 }
alpar@9 12319 /^X\(\/\).*/{
alpar@9 12320 s//\1/
alpar@9 12321 q
alpar@9 12322 }
alpar@9 12323 s/.*/./; q'`
alpar@9 12324 as_dir="$ac_dir"; as_fn_mkdir_p
alpar@9 12325 ac_builddir=.
alpar@9 12326
alpar@9 12327 case "$ac_dir" in
alpar@9 12328 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
alpar@9 12329 *)
alpar@9 12330 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
alpar@9 12331 # A ".." for each directory in $ac_dir_suffix.
alpar@9 12332 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
alpar@9 12333 case $ac_top_builddir_sub in
alpar@9 12334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
alpar@9 12335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
alpar@9 12336 esac ;;
alpar@9 12337 esac
alpar@9 12338 ac_abs_top_builddir=$ac_pwd
alpar@9 12339 ac_abs_builddir=$ac_pwd$ac_dir_suffix
alpar@9 12340 # for backward compatibility:
alpar@9 12341 ac_top_builddir=$ac_top_build_prefix
alpar@9 12342
alpar@9 12343 case $srcdir in
alpar@9 12344 .) # We are building in place.
alpar@9 12345 ac_srcdir=.
alpar@9 12346 ac_top_srcdir=$ac_top_builddir_sub
alpar@9 12347 ac_abs_top_srcdir=$ac_pwd ;;
alpar@9 12348 [\\/]* | ?:[\\/]* ) # Absolute name.
alpar@9 12349 ac_srcdir=$srcdir$ac_dir_suffix;
alpar@9 12350 ac_top_srcdir=$srcdir
alpar@9 12351 ac_abs_top_srcdir=$srcdir ;;
alpar@9 12352 *) # Relative name.
alpar@9 12353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
alpar@9 12354 ac_top_srcdir=$ac_top_build_prefix$srcdir
alpar@9 12355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
alpar@9 12356 esac
alpar@9 12357 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
alpar@9 12358
alpar@9 12359
alpar@9 12360 case $ac_mode in
alpar@9 12361 :F)
alpar@9 12362 #
alpar@9 12363 # CONFIG_FILE
alpar@9 12364 #
alpar@9 12365
alpar@9 12366 case $INSTALL in
alpar@9 12367 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
alpar@9 12368 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
alpar@9 12369 esac
alpar@9 12370 ac_MKDIR_P=$MKDIR_P
alpar@9 12371 case $MKDIR_P in
alpar@9 12372 [\\/$]* | ?:[\\/]* ) ;;
alpar@9 12373 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
alpar@9 12374 esac
alpar@9 12375 _ACEOF
alpar@9 12376
alpar@9 12377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
alpar@9 12378 # If the template does not know about datarootdir, expand it.
alpar@9 12379 # FIXME: This hack should be removed a few years after 2.60.
alpar@9 12380 ac_datarootdir_hack=; ac_datarootdir_seen=
alpar@9 12381 ac_sed_dataroot='
alpar@9 12382 /datarootdir/ {
alpar@9 12383 p
alpar@9 12384 q
alpar@9 12385 }
alpar@9 12386 /@datadir@/p
alpar@9 12387 /@docdir@/p
alpar@9 12388 /@infodir@/p
alpar@9 12389 /@localedir@/p
alpar@9 12390 /@mandir@/p'
alpar@9 12391 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
alpar@9 12392 *datarootdir*) ac_datarootdir_seen=yes;;
alpar@9 12393 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
alpar@9 12394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
alpar@9 12395 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
alpar@9 12396 _ACEOF
alpar@9 12397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
alpar@9 12398 ac_datarootdir_hack='
alpar@9 12399 s&@datadir@&$datadir&g
alpar@9 12400 s&@docdir@&$docdir&g
alpar@9 12401 s&@infodir@&$infodir&g
alpar@9 12402 s&@localedir@&$localedir&g
alpar@9 12403 s&@mandir@&$mandir&g
alpar@9 12404 s&\\\${datarootdir}&$datarootdir&g' ;;
alpar@9 12405 esac
alpar@9 12406 _ACEOF
alpar@9 12407
alpar@9 12408 # Neutralize VPATH when `$srcdir' = `.'.
alpar@9 12409 # Shell code in configure.ac might set extrasub.
alpar@9 12410 # FIXME: do we really want to maintain this feature?
alpar@9 12411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
alpar@9 12412 ac_sed_extra="$ac_vpsub
alpar@9 12413 $extrasub
alpar@9 12414 _ACEOF
alpar@9 12415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
alpar@9 12416 :t
alpar@9 12417 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
alpar@9 12418 s|@configure_input@|$ac_sed_conf_input|;t t
alpar@9 12419 s&@top_builddir@&$ac_top_builddir_sub&;t t
alpar@9 12420 s&@top_build_prefix@&$ac_top_build_prefix&;t t
alpar@9 12421 s&@srcdir@&$ac_srcdir&;t t
alpar@9 12422 s&@abs_srcdir@&$ac_abs_srcdir&;t t
alpar@9 12423 s&@top_srcdir@&$ac_top_srcdir&;t t
alpar@9 12424 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
alpar@9 12425 s&@builddir@&$ac_builddir&;t t
alpar@9 12426 s&@abs_builddir@&$ac_abs_builddir&;t t
alpar@9 12427 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
alpar@9 12428 s&@INSTALL@&$ac_INSTALL&;t t
alpar@9 12429 s&@MKDIR_P@&$ac_MKDIR_P&;t t
alpar@9 12430 $ac_datarootdir_hack
alpar@9 12431 "
alpar@9 12432 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
alpar@9 12433 || as_fn_error "could not create $ac_file" "$LINENO" 5
alpar@9 12434
alpar@9 12435 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
alpar@9 12436 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
alpar@9 12437 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
alpar@9 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
alpar@9 12439 which seems to be undefined. Please make sure it is defined." >&5
alpar@9 12440 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
alpar@9 12441 which seems to be undefined. Please make sure it is defined." >&2;}
alpar@9 12442
alpar@9 12443 rm -f "$tmp/stdin"
alpar@9 12444 case $ac_file in
alpar@9 12445 -) cat "$tmp/out" && rm -f "$tmp/out";;
alpar@9 12446 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
alpar@9 12447 esac \
alpar@9 12448 || as_fn_error "could not create $ac_file" "$LINENO" 5
alpar@9 12449 ;;
alpar@9 12450 :H)
alpar@9 12451 #
alpar@9 12452 # CONFIG_HEADER
alpar@9 12453 #
alpar@9 12454 if test x"$ac_file" != x-; then
alpar@9 12455 {
alpar@9 12456 $as_echo "/* $configure_input */" \
alpar@9 12457 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
alpar@9 12458 } >"$tmp/config.h" \
alpar@9 12459 || as_fn_error "could not create $ac_file" "$LINENO" 5
alpar@9 12460 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
alpar@9 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
alpar@9 12462 $as_echo "$as_me: $ac_file is unchanged" >&6;}
alpar@9 12463 else
alpar@9 12464 rm -f "$ac_file"
alpar@9 12465 mv "$tmp/config.h" "$ac_file" \
alpar@9 12466 || as_fn_error "could not create $ac_file" "$LINENO" 5
alpar@9 12467 fi
alpar@9 12468 else
alpar@9 12469 $as_echo "/* $configure_input */" \
alpar@9 12470 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
alpar@9 12471 || as_fn_error "could not create -" "$LINENO" 5
alpar@9 12472 fi
alpar@9 12473 # Compute "$ac_file"'s index in $config_headers.
alpar@9 12474 _am_arg="$ac_file"
alpar@9 12475 _am_stamp_count=1
alpar@9 12476 for _am_header in $config_headers :; do
alpar@9 12477 case $_am_header in
alpar@9 12478 $_am_arg | $_am_arg:* )
alpar@9 12479 break ;;
alpar@9 12480 * )
alpar@9 12481 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
alpar@9 12482 esac
alpar@9 12483 done
alpar@9 12484 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
alpar@9 12485 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
alpar@9 12486 X"$_am_arg" : 'X\(//\)[^/]' \| \
alpar@9 12487 X"$_am_arg" : 'X\(//\)$' \| \
alpar@9 12488 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
alpar@9 12489 $as_echo X"$_am_arg" |
alpar@9 12490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
alpar@9 12491 s//\1/
alpar@9 12492 q
alpar@9 12493 }
alpar@9 12494 /^X\(\/\/\)[^/].*/{
alpar@9 12495 s//\1/
alpar@9 12496 q
alpar@9 12497 }
alpar@9 12498 /^X\(\/\/\)$/{
alpar@9 12499 s//\1/
alpar@9 12500 q
alpar@9 12501 }
alpar@9 12502 /^X\(\/\).*/{
alpar@9 12503 s//\1/
alpar@9 12504 q
alpar@9 12505 }
alpar@9 12506 s/.*/./; q'`/stamp-h$_am_stamp_count
alpar@9 12507 ;;
alpar@9 12508
alpar@9 12509 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
alpar@9 12510 $as_echo "$as_me: executing $ac_file commands" >&6;}
alpar@9 12511 ;;
alpar@9 12512 esac
alpar@9 12513
alpar@9 12514
alpar@9 12515 case $ac_file$ac_mode in
alpar@9 12516 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
alpar@9 12517 # Autoconf 2.62 quotes --file arguments for eval, but not when files
alpar@9 12518 # are listed without --file. Let's play safe and only enable the eval
alpar@9 12519 # if we detect the quoting.
alpar@9 12520 case $CONFIG_FILES in
alpar@9 12521 *\'*) eval set x "$CONFIG_FILES" ;;
alpar@9 12522 *) set x $CONFIG_FILES ;;
alpar@9 12523 esac
alpar@9 12524 shift
alpar@9 12525 for mf
alpar@9 12526 do
alpar@9 12527 # Strip MF so we end up with the name of the file.
alpar@9 12528 mf=`echo "$mf" | sed -e 's/:.*$//'`
alpar@9 12529 # Check whether this is an Automake generated Makefile or not.
alpar@9 12530 # We used to match only the files named `Makefile.in', but
alpar@9 12531 # some people rename them; so instead we look at the file content.
alpar@9 12532 # Grep'ing the first line is not enough: some people post-process
alpar@9 12533 # each Makefile.in and add a new line on top of each file to say so.
alpar@9 12534 # Grep'ing the whole file is not good either: AIX grep has a line
alpar@9 12535 # limit of 2048, but all sed's we know have understand at least 4000.
alpar@9 12536 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
alpar@9 12537 dirpart=`$as_dirname -- "$mf" ||
alpar@9 12538 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
alpar@9 12539 X"$mf" : 'X\(//\)[^/]' \| \
alpar@9 12540 X"$mf" : 'X\(//\)$' \| \
alpar@9 12541 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
alpar@9 12542 $as_echo X"$mf" |
alpar@9 12543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
alpar@9 12544 s//\1/
alpar@9 12545 q
alpar@9 12546 }
alpar@9 12547 /^X\(\/\/\)[^/].*/{
alpar@9 12548 s//\1/
alpar@9 12549 q
alpar@9 12550 }
alpar@9 12551 /^X\(\/\/\)$/{
alpar@9 12552 s//\1/
alpar@9 12553 q
alpar@9 12554 }
alpar@9 12555 /^X\(\/\).*/{
alpar@9 12556 s//\1/
alpar@9 12557 q
alpar@9 12558 }
alpar@9 12559 s/.*/./; q'`
alpar@9 12560 else
alpar@9 12561 continue
alpar@9 12562 fi
alpar@9 12563 # Extract the definition of DEPDIR, am__include, and am__quote
alpar@9 12564 # from the Makefile without running `make'.
alpar@9 12565 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
alpar@9 12566 test -z "$DEPDIR" && continue
alpar@9 12567 am__include=`sed -n 's/^am__include = //p' < "$mf"`
alpar@9 12568 test -z "am__include" && continue
alpar@9 12569 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
alpar@9 12570 # When using ansi2knr, U may be empty or an underscore; expand it
alpar@9 12571 U=`sed -n 's/^U = //p' < "$mf"`
alpar@9 12572 # Find all dependency output files, they are included files with
alpar@9 12573 # $(DEPDIR) in their names. We invoke sed twice because it is the
alpar@9 12574 # simplest approach to changing $(DEPDIR) to its actual value in the
alpar@9 12575 # expansion.
alpar@9 12576 for file in `sed -n "
alpar@9 12577 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
alpar@9 12578 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
alpar@9 12579 # Make sure the directory exists.
alpar@9 12580 test -f "$dirpart/$file" && continue
alpar@9 12581 fdir=`$as_dirname -- "$file" ||
alpar@9 12582 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
alpar@9 12583 X"$file" : 'X\(//\)[^/]' \| \
alpar@9 12584 X"$file" : 'X\(//\)$' \| \
alpar@9 12585 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
alpar@9 12586 $as_echo X"$file" |
alpar@9 12587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
alpar@9 12588 s//\1/
alpar@9 12589 q
alpar@9 12590 }
alpar@9 12591 /^X\(\/\/\)[^/].*/{
alpar@9 12592 s//\1/
alpar@9 12593 q
alpar@9 12594 }
alpar@9 12595 /^X\(\/\/\)$/{
alpar@9 12596 s//\1/
alpar@9 12597 q
alpar@9 12598 }
alpar@9 12599 /^X\(\/\).*/{
alpar@9 12600 s//\1/
alpar@9 12601 q
alpar@9 12602 }
alpar@9 12603 s/.*/./; q'`
alpar@9 12604 as_dir=$dirpart/$fdir; as_fn_mkdir_p
alpar@9 12605 # echo "creating $dirpart/$file"
alpar@9 12606 echo '# dummy' > "$dirpart/$file"
alpar@9 12607 done
alpar@9 12608 done
alpar@9 12609 }
alpar@9 12610 ;;
alpar@9 12611 "libtool":C)
alpar@9 12612
alpar@9 12613 # See if we are running on zsh, and set the options which allow our
alpar@9 12614 # commands through without removal of \ escapes.
alpar@9 12615 if test -n "${ZSH_VERSION+set}" ; then
alpar@9 12616 setopt NO_GLOB_SUBST
alpar@9 12617 fi
alpar@9 12618
alpar@9 12619 cfgfile="${ofile}T"
alpar@9 12620 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
alpar@9 12621 $RM "$cfgfile"
alpar@9 12622
alpar@9 12623 cat <<_LT_EOF >> "$cfgfile"
alpar@9 12624 #! $SHELL
alpar@9 12625
alpar@9 12626 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
alpar@9 12627 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
alpar@9 12628 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
alpar@9 12629 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
alpar@9 12630 #
alpar@9 12631 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
alpar@9 12632 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
alpar@9 12633 # Written by Gordon Matzigkeit, 1996
alpar@9 12634 #
alpar@9 12635 # This file is part of GNU Libtool.
alpar@9 12636 #
alpar@9 12637 # GNU Libtool is free software; you can redistribute it and/or
alpar@9 12638 # modify it under the terms of the GNU General Public License as
alpar@9 12639 # published by the Free Software Foundation; either version 2 of
alpar@9 12640 # the License, or (at your option) any later version.
alpar@9 12641 #
alpar@9 12642 # As a special exception to the GNU General Public License,
alpar@9 12643 # if you distribute this file as part of a program or library that
alpar@9 12644 # is built using GNU Libtool, you may include this file under the
alpar@9 12645 # same distribution terms that you use for the rest of that program.
alpar@9 12646 #
alpar@9 12647 # GNU Libtool is distributed in the hope that it will be useful,
alpar@9 12648 # but WITHOUT ANY WARRANTY; without even the implied warranty of
alpar@9 12649 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
alpar@9 12650 # GNU General Public License for more details.
alpar@9 12651 #
alpar@9 12652 # You should have received a copy of the GNU General Public License
alpar@9 12653 # along with GNU Libtool; see the file COPYING. If not, a copy
alpar@9 12654 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
alpar@9 12655 # obtained by writing to the Free Software Foundation, Inc.,
alpar@9 12656 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
alpar@9 12657
alpar@9 12658
alpar@9 12659 # The names of the tagged configurations supported by this script.
alpar@9 12660 available_tags=""
alpar@9 12661
alpar@9 12662 # ### BEGIN LIBTOOL CONFIG
alpar@9 12663
alpar@9 12664 # Which release of libtool.m4 was used?
alpar@9 12665 macro_version=$macro_version
alpar@9 12666 macro_revision=$macro_revision
alpar@9 12667
alpar@9 12668 # Whether or not to build shared libraries.
alpar@9 12669 build_libtool_libs=$enable_shared
alpar@9 12670
alpar@9 12671 # Whether or not to build static libraries.
alpar@9 12672 build_old_libs=$enable_static
alpar@9 12673
alpar@9 12674 # What type of objects to build.
alpar@9 12675 pic_mode=$pic_mode
alpar@9 12676
alpar@9 12677 # Whether or not to optimize for fast installation.
alpar@9 12678 fast_install=$enable_fast_install
alpar@9 12679
alpar@9 12680 # Shell to use when invoking shell scripts.
alpar@9 12681 SHELL=$lt_SHELL
alpar@9 12682
alpar@9 12683 # An echo program that protects backslashes.
alpar@9 12684 ECHO=$lt_ECHO
alpar@9 12685
alpar@9 12686 # The host system.
alpar@9 12687 host_alias=$host_alias
alpar@9 12688 host=$host
alpar@9 12689 host_os=$host_os
alpar@9 12690
alpar@9 12691 # The build system.
alpar@9 12692 build_alias=$build_alias
alpar@9 12693 build=$build
alpar@9 12694 build_os=$build_os
alpar@9 12695
alpar@9 12696 # A sed program that does not truncate output.
alpar@9 12697 SED=$lt_SED
alpar@9 12698
alpar@9 12699 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
alpar@9 12700 Xsed="\$SED -e 1s/^X//"
alpar@9 12701
alpar@9 12702 # A grep program that handles long lines.
alpar@9 12703 GREP=$lt_GREP
alpar@9 12704
alpar@9 12705 # An ERE matcher.
alpar@9 12706 EGREP=$lt_EGREP
alpar@9 12707
alpar@9 12708 # A literal string matcher.
alpar@9 12709 FGREP=$lt_FGREP
alpar@9 12710
alpar@9 12711 # A BSD- or MS-compatible name lister.
alpar@9 12712 NM=$lt_NM
alpar@9 12713
alpar@9 12714 # Whether we need soft or hard links.
alpar@9 12715 LN_S=$lt_LN_S
alpar@9 12716
alpar@9 12717 # What is the maximum length of a command?
alpar@9 12718 max_cmd_len=$max_cmd_len
alpar@9 12719
alpar@9 12720 # Object file suffix (normally "o").
alpar@9 12721 objext=$ac_objext
alpar@9 12722
alpar@9 12723 # Executable file suffix (normally "").
alpar@9 12724 exeext=$exeext
alpar@9 12725
alpar@9 12726 # whether the shell understands "unset".
alpar@9 12727 lt_unset=$lt_unset
alpar@9 12728
alpar@9 12729 # turn spaces into newlines.
alpar@9 12730 SP2NL=$lt_lt_SP2NL
alpar@9 12731
alpar@9 12732 # turn newlines into spaces.
alpar@9 12733 NL2SP=$lt_lt_NL2SP
alpar@9 12734
alpar@9 12735 # convert \$build paths to \$host format.
alpar@9 12736 to_host_path_cmd=$lt_cv_to_host_path_cmd
alpar@9 12737
alpar@9 12738 # An object symbol dumper.
alpar@9 12739 OBJDUMP=$lt_OBJDUMP
alpar@9 12740
alpar@9 12741 # Method to check whether dependent libraries are shared objects.
alpar@9 12742 deplibs_check_method=$lt_deplibs_check_method
alpar@9 12743
alpar@9 12744 # Command to use when deplibs_check_method == "file_magic".
alpar@9 12745 file_magic_cmd=$lt_file_magic_cmd
alpar@9 12746
alpar@9 12747 # DLL creation program.
alpar@9 12748 DLLTOOL=$lt_DLLTOOL
alpar@9 12749
alpar@9 12750 # Command to associate shared and link libraries.
alpar@9 12751 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
alpar@9 12752
alpar@9 12753 # The archiver.
alpar@9 12754 AR=$lt_AR
alpar@9 12755 AR_FLAGS=$lt_AR_FLAGS
alpar@9 12756
alpar@9 12757 # A symbol stripping program.
alpar@9 12758 STRIP=$lt_STRIP
alpar@9 12759
alpar@9 12760 # Commands used to install an old-style archive.
alpar@9 12761 RANLIB=$lt_RANLIB
alpar@9 12762 old_postinstall_cmds=$lt_old_postinstall_cmds
alpar@9 12763 old_postuninstall_cmds=$lt_old_postuninstall_cmds
alpar@9 12764
alpar@9 12765 # Whether to use a lock for old archive extraction.
alpar@9 12766 lock_old_archive_extraction=$lock_old_archive_extraction
alpar@9 12767
alpar@9 12768 # A C compiler.
alpar@9 12769 LTCC=$lt_CC
alpar@9 12770
alpar@9 12771 # LTCC compiler flags.
alpar@9 12772 LTCFLAGS=$lt_CFLAGS
alpar@9 12773
alpar@9 12774 # Take the output of nm and produce a listing of raw symbols and C names.
alpar@9 12775 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
alpar@9 12776
alpar@9 12777 # Transform the output of nm in a proper C declaration.
alpar@9 12778 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
alpar@9 12779
alpar@9 12780 # Transform the output of nm in a C name address pair.
alpar@9 12781 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
alpar@9 12782
alpar@9 12783 # Transform the output of nm in a C name address pair when lib prefix is needed.
alpar@9 12784 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
alpar@9 12785
alpar@9 12786 # The name of the directory that contains temporary libtool files.
alpar@9 12787 objdir=$objdir
alpar@9 12788
alpar@9 12789 # Used to examine libraries when file_magic_cmd begins with "file".
alpar@9 12790 MAGIC_CMD=$MAGIC_CMD
alpar@9 12791
alpar@9 12792 # Must we lock files when doing compilation?
alpar@9 12793 need_locks=$lt_need_locks
alpar@9 12794
alpar@9 12795 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
alpar@9 12796 DSYMUTIL=$lt_DSYMUTIL
alpar@9 12797
alpar@9 12798 # Tool to change global to local symbols on Mac OS X.
alpar@9 12799 NMEDIT=$lt_NMEDIT
alpar@9 12800
alpar@9 12801 # Tool to manipulate fat objects and archives on Mac OS X.
alpar@9 12802 LIPO=$lt_LIPO
alpar@9 12803
alpar@9 12804 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
alpar@9 12805 OTOOL=$lt_OTOOL
alpar@9 12806
alpar@9 12807 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
alpar@9 12808 OTOOL64=$lt_OTOOL64
alpar@9 12809
alpar@9 12810 # Old archive suffix (normally "a").
alpar@9 12811 libext=$libext
alpar@9 12812
alpar@9 12813 # Shared library suffix (normally ".so").
alpar@9 12814 shrext_cmds=$lt_shrext_cmds
alpar@9 12815
alpar@9 12816 # The commands to extract the exported symbol list from a shared archive.
alpar@9 12817 extract_expsyms_cmds=$lt_extract_expsyms_cmds
alpar@9 12818
alpar@9 12819 # Variables whose values should be saved in libtool wrapper scripts and
alpar@9 12820 # restored at link time.
alpar@9 12821 variables_saved_for_relink=$lt_variables_saved_for_relink
alpar@9 12822
alpar@9 12823 # Do we need the "lib" prefix for modules?
alpar@9 12824 need_lib_prefix=$need_lib_prefix
alpar@9 12825
alpar@9 12826 # Do we need a version for libraries?
alpar@9 12827 need_version=$need_version
alpar@9 12828
alpar@9 12829 # Library versioning type.
alpar@9 12830 version_type=$version_type
alpar@9 12831
alpar@9 12832 # Shared library runtime path variable.
alpar@9 12833 runpath_var=$runpath_var
alpar@9 12834
alpar@9 12835 # Shared library path variable.
alpar@9 12836 shlibpath_var=$shlibpath_var
alpar@9 12837
alpar@9 12838 # Is shlibpath searched before the hard-coded library search path?
alpar@9 12839 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
alpar@9 12840
alpar@9 12841 # Format of library name prefix.
alpar@9 12842 libname_spec=$lt_libname_spec
alpar@9 12843
alpar@9 12844 # List of archive names. First name is the real one, the rest are links.
alpar@9 12845 # The last name is the one that the linker finds with -lNAME
alpar@9 12846 library_names_spec=$lt_library_names_spec
alpar@9 12847
alpar@9 12848 # The coded name of the library, if different from the real name.
alpar@9 12849 soname_spec=$lt_soname_spec
alpar@9 12850
alpar@9 12851 # Permission mode override for installation of shared libraries.
alpar@9 12852 install_override_mode=$lt_install_override_mode
alpar@9 12853
alpar@9 12854 # Command to use after installation of a shared archive.
alpar@9 12855 postinstall_cmds=$lt_postinstall_cmds
alpar@9 12856
alpar@9 12857 # Command to use after uninstallation of a shared archive.
alpar@9 12858 postuninstall_cmds=$lt_postuninstall_cmds
alpar@9 12859
alpar@9 12860 # Commands used to finish a libtool library installation in a directory.
alpar@9 12861 finish_cmds=$lt_finish_cmds
alpar@9 12862
alpar@9 12863 # As "finish_cmds", except a single script fragment to be evaled but
alpar@9 12864 # not shown.
alpar@9 12865 finish_eval=$lt_finish_eval
alpar@9 12866
alpar@9 12867 # Whether we should hardcode library paths into libraries.
alpar@9 12868 hardcode_into_libs=$hardcode_into_libs
alpar@9 12869
alpar@9 12870 # Compile-time system search path for libraries.
alpar@9 12871 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
alpar@9 12872
alpar@9 12873 # Run-time system search path for libraries.
alpar@9 12874 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
alpar@9 12875
alpar@9 12876 # Whether dlopen is supported.
alpar@9 12877 dlopen_support=$enable_dlopen
alpar@9 12878
alpar@9 12879 # Whether dlopen of programs is supported.
alpar@9 12880 dlopen_self=$enable_dlopen_self
alpar@9 12881
alpar@9 12882 # Whether dlopen of statically linked programs is supported.
alpar@9 12883 dlopen_self_static=$enable_dlopen_self_static
alpar@9 12884
alpar@9 12885 # Commands to strip libraries.
alpar@9 12886 old_striplib=$lt_old_striplib
alpar@9 12887 striplib=$lt_striplib
alpar@9 12888
alpar@9 12889
alpar@9 12890 # The linker used to build libraries.
alpar@9 12891 LD=$lt_LD
alpar@9 12892
alpar@9 12893 # How to create reloadable object files.
alpar@9 12894 reload_flag=$lt_reload_flag
alpar@9 12895 reload_cmds=$lt_reload_cmds
alpar@9 12896
alpar@9 12897 # Commands used to build an old-style archive.
alpar@9 12898 old_archive_cmds=$lt_old_archive_cmds
alpar@9 12899
alpar@9 12900 # A language specific compiler.
alpar@9 12901 CC=$lt_compiler
alpar@9 12902
alpar@9 12903 # Is the compiler the GNU compiler?
alpar@9 12904 with_gcc=$GCC
alpar@9 12905
alpar@9 12906 # Compiler flag to turn off builtin functions.
alpar@9 12907 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
alpar@9 12908
alpar@9 12909 # How to pass a linker flag through the compiler.
alpar@9 12910 wl=$lt_lt_prog_compiler_wl
alpar@9 12911
alpar@9 12912 # Additional compiler flags for building library objects.
alpar@9 12913 pic_flag=$lt_lt_prog_compiler_pic
alpar@9 12914
alpar@9 12915 # Compiler flag to prevent dynamic linking.
alpar@9 12916 link_static_flag=$lt_lt_prog_compiler_static
alpar@9 12917
alpar@9 12918 # Does compiler simultaneously support -c and -o options?
alpar@9 12919 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
alpar@9 12920
alpar@9 12921 # Whether or not to add -lc for building shared libraries.
alpar@9 12922 build_libtool_need_lc=$archive_cmds_need_lc
alpar@9 12923
alpar@9 12924 # Whether or not to disallow shared libs when runtime libs are static.
alpar@9 12925 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
alpar@9 12926
alpar@9 12927 # Compiler flag to allow reflexive dlopens.
alpar@9 12928 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
alpar@9 12929
alpar@9 12930 # Compiler flag to generate shared objects directly from archives.
alpar@9 12931 whole_archive_flag_spec=$lt_whole_archive_flag_spec
alpar@9 12932
alpar@9 12933 # Whether the compiler copes with passing no objects directly.
alpar@9 12934 compiler_needs_object=$lt_compiler_needs_object
alpar@9 12935
alpar@9 12936 # Create an old-style archive from a shared archive.
alpar@9 12937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
alpar@9 12938
alpar@9 12939 # Create a temporary old-style archive to link instead of a shared archive.
alpar@9 12940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
alpar@9 12941
alpar@9 12942 # Commands used to build a shared archive.
alpar@9 12943 archive_cmds=$lt_archive_cmds
alpar@9 12944 archive_expsym_cmds=$lt_archive_expsym_cmds
alpar@9 12945
alpar@9 12946 # Commands used to build a loadable module if different from building
alpar@9 12947 # a shared archive.
alpar@9 12948 module_cmds=$lt_module_cmds
alpar@9 12949 module_expsym_cmds=$lt_module_expsym_cmds
alpar@9 12950
alpar@9 12951 # Whether we are building with GNU ld or not.
alpar@9 12952 with_gnu_ld=$lt_with_gnu_ld
alpar@9 12953
alpar@9 12954 # Flag that allows shared libraries with undefined symbols to be built.
alpar@9 12955 allow_undefined_flag=$lt_allow_undefined_flag
alpar@9 12956
alpar@9 12957 # Flag that enforces no undefined symbols.
alpar@9 12958 no_undefined_flag=$lt_no_undefined_flag
alpar@9 12959
alpar@9 12960 # Flag to hardcode \$libdir into a binary during linking.
alpar@9 12961 # This must work even if \$libdir does not exist
alpar@9 12962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
alpar@9 12963
alpar@9 12964 # If ld is used when linking, flag to hardcode \$libdir into a binary
alpar@9 12965 # during linking. This must work even if \$libdir does not exist.
alpar@9 12966 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
alpar@9 12967
alpar@9 12968 # Whether we need a single "-rpath" flag with a separated argument.
alpar@9 12969 hardcode_libdir_separator=$lt_hardcode_libdir_separator
alpar@9 12970
alpar@9 12971 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
alpar@9 12972 # DIR into the resulting binary.
alpar@9 12973 hardcode_direct=$hardcode_direct
alpar@9 12974
alpar@9 12975 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
alpar@9 12976 # DIR into the resulting binary and the resulting library dependency is
alpar@9 12977 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
alpar@9 12978 # library is relocated.
alpar@9 12979 hardcode_direct_absolute=$hardcode_direct_absolute
alpar@9 12980
alpar@9 12981 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
alpar@9 12982 # into the resulting binary.
alpar@9 12983 hardcode_minus_L=$hardcode_minus_L
alpar@9 12984
alpar@9 12985 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
alpar@9 12986 # into the resulting binary.
alpar@9 12987 hardcode_shlibpath_var=$hardcode_shlibpath_var
alpar@9 12988
alpar@9 12989 # Set to "yes" if building a shared library automatically hardcodes DIR
alpar@9 12990 # into the library and all subsequent libraries and executables linked
alpar@9 12991 # against it.
alpar@9 12992 hardcode_automatic=$hardcode_automatic
alpar@9 12993
alpar@9 12994 # Set to yes if linker adds runtime paths of dependent libraries
alpar@9 12995 # to runtime path list.
alpar@9 12996 inherit_rpath=$inherit_rpath
alpar@9 12997
alpar@9 12998 # Whether libtool must link a program against all its dependency libraries.
alpar@9 12999 link_all_deplibs=$link_all_deplibs
alpar@9 13000
alpar@9 13001 # Fix the shell variable \$srcfile for the compiler.
alpar@9 13002 fix_srcfile_path=$lt_fix_srcfile_path
alpar@9 13003
alpar@9 13004 # Set to "yes" if exported symbols are required.
alpar@9 13005 always_export_symbols=$always_export_symbols
alpar@9 13006
alpar@9 13007 # The commands to list exported symbols.
alpar@9 13008 export_symbols_cmds=$lt_export_symbols_cmds
alpar@9 13009
alpar@9 13010 # Symbols that should not be listed in the preloaded symbols.
alpar@9 13011 exclude_expsyms=$lt_exclude_expsyms
alpar@9 13012
alpar@9 13013 # Symbols that must always be exported.
alpar@9 13014 include_expsyms=$lt_include_expsyms
alpar@9 13015
alpar@9 13016 # Commands necessary for linking programs (against libraries) with templates.
alpar@9 13017 prelink_cmds=$lt_prelink_cmds
alpar@9 13018
alpar@9 13019 # Specify filename containing input files.
alpar@9 13020 file_list_spec=$lt_file_list_spec
alpar@9 13021
alpar@9 13022 # How to hardcode a shared library path into an executable.
alpar@9 13023 hardcode_action=$hardcode_action
alpar@9 13024
alpar@9 13025 # ### END LIBTOOL CONFIG
alpar@9 13026
alpar@9 13027 _LT_EOF
alpar@9 13028
alpar@9 13029 case $host_os in
alpar@9 13030 aix3*)
alpar@9 13031 cat <<\_LT_EOF >> "$cfgfile"
alpar@9 13032 # AIX sometimes has problems with the GCC collect2 program. For some
alpar@9 13033 # reason, if we set the COLLECT_NAMES environment variable, the problems
alpar@9 13034 # vanish in a puff of smoke.
alpar@9 13035 if test "X${COLLECT_NAMES+set}" != Xset; then
alpar@9 13036 COLLECT_NAMES=
alpar@9 13037 export COLLECT_NAMES
alpar@9 13038 fi
alpar@9 13039 _LT_EOF
alpar@9 13040 ;;
alpar@9 13041 esac
alpar@9 13042
alpar@9 13043
alpar@9 13044 ltmain="$ac_aux_dir/ltmain.sh"
alpar@9 13045
alpar@9 13046
alpar@9 13047 # We use sed instead of cat because bash on DJGPP gets confused if
alpar@9 13048 # if finds mixed CR/LF and LF-only lines. Since sed operates in
alpar@9 13049 # text mode, it properly converts lines to CR/LF. This bash problem
alpar@9 13050 # is reportedly fixed, but why not run on old versions too?
alpar@9 13051 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
alpar@9 13052 || (rm -f "$cfgfile"; exit 1)
alpar@9 13053
alpar@9 13054 case $xsi_shell in
alpar@9 13055 yes)
alpar@9 13056 cat << \_LT_EOF >> "$cfgfile"
alpar@9 13057
alpar@9 13058 # func_dirname file append nondir_replacement
alpar@9 13059 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
alpar@9 13060 # otherwise set result to NONDIR_REPLACEMENT.
alpar@9 13061 func_dirname ()
alpar@9 13062 {
alpar@9 13063 case ${1} in
alpar@9 13064 */*) func_dirname_result="${1%/*}${2}" ;;
alpar@9 13065 * ) func_dirname_result="${3}" ;;
alpar@9 13066 esac
alpar@9 13067 }
alpar@9 13068
alpar@9 13069 # func_basename file
alpar@9 13070 func_basename ()
alpar@9 13071 {
alpar@9 13072 func_basename_result="${1##*/}"
alpar@9 13073 }
alpar@9 13074
alpar@9 13075 # func_dirname_and_basename file append nondir_replacement
alpar@9 13076 # perform func_basename and func_dirname in a single function
alpar@9 13077 # call:
alpar@9 13078 # dirname: Compute the dirname of FILE. If nonempty,
alpar@9 13079 # add APPEND to the result, otherwise set result
alpar@9 13080 # to NONDIR_REPLACEMENT.
alpar@9 13081 # value returned in "$func_dirname_result"
alpar@9 13082 # basename: Compute filename of FILE.
alpar@9 13083 # value retuned in "$func_basename_result"
alpar@9 13084 # Implementation must be kept synchronized with func_dirname
alpar@9 13085 # and func_basename. For efficiency, we do not delegate to
alpar@9 13086 # those functions but instead duplicate the functionality here.
alpar@9 13087 func_dirname_and_basename ()
alpar@9 13088 {
alpar@9 13089 case ${1} in
alpar@9 13090 */*) func_dirname_result="${1%/*}${2}" ;;
alpar@9 13091 * ) func_dirname_result="${3}" ;;
alpar@9 13092 esac
alpar@9 13093 func_basename_result="${1##*/}"
alpar@9 13094 }
alpar@9 13095
alpar@9 13096 # func_stripname prefix suffix name
alpar@9 13097 # strip PREFIX and SUFFIX off of NAME.
alpar@9 13098 # PREFIX and SUFFIX must not contain globbing or regex special
alpar@9 13099 # characters, hashes, percent signs, but SUFFIX may contain a leading
alpar@9 13100 # dot (in which case that matches only a dot).
alpar@9 13101 func_stripname ()
alpar@9 13102 {
alpar@9 13103 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
alpar@9 13104 # positional parameters, so assign one to ordinary parameter first.
alpar@9 13105 func_stripname_result=${3}
alpar@9 13106 func_stripname_result=${func_stripname_result#"${1}"}
alpar@9 13107 func_stripname_result=${func_stripname_result%"${2}"}
alpar@9 13108 }
alpar@9 13109
alpar@9 13110 # func_opt_split
alpar@9 13111 func_opt_split ()
alpar@9 13112 {
alpar@9 13113 func_opt_split_opt=${1%%=*}
alpar@9 13114 func_opt_split_arg=${1#*=}
alpar@9 13115 }
alpar@9 13116
alpar@9 13117 # func_lo2o object
alpar@9 13118 func_lo2o ()
alpar@9 13119 {
alpar@9 13120 case ${1} in
alpar@9 13121 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
alpar@9 13122 *) func_lo2o_result=${1} ;;
alpar@9 13123 esac
alpar@9 13124 }
alpar@9 13125
alpar@9 13126 # func_xform libobj-or-source
alpar@9 13127 func_xform ()
alpar@9 13128 {
alpar@9 13129 func_xform_result=${1%.*}.lo
alpar@9 13130 }
alpar@9 13131
alpar@9 13132 # func_arith arithmetic-term...
alpar@9 13133 func_arith ()
alpar@9 13134 {
alpar@9 13135 func_arith_result=$(( $* ))
alpar@9 13136 }
alpar@9 13137
alpar@9 13138 # func_len string
alpar@9 13139 # STRING may not start with a hyphen.
alpar@9 13140 func_len ()
alpar@9 13141 {
alpar@9 13142 func_len_result=${#1}
alpar@9 13143 }
alpar@9 13144
alpar@9 13145 _LT_EOF
alpar@9 13146 ;;
alpar@9 13147 *) # Bourne compatible functions.
alpar@9 13148 cat << \_LT_EOF >> "$cfgfile"
alpar@9 13149
alpar@9 13150 # func_dirname file append nondir_replacement
alpar@9 13151 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
alpar@9 13152 # otherwise set result to NONDIR_REPLACEMENT.
alpar@9 13153 func_dirname ()
alpar@9 13154 {
alpar@9 13155 # Extract subdirectory from the argument.
alpar@9 13156 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
alpar@9 13157 if test "X$func_dirname_result" = "X${1}"; then
alpar@9 13158 func_dirname_result="${3}"
alpar@9 13159 else
alpar@9 13160 func_dirname_result="$func_dirname_result${2}"
alpar@9 13161 fi
alpar@9 13162 }
alpar@9 13163
alpar@9 13164 # func_basename file
alpar@9 13165 func_basename ()
alpar@9 13166 {
alpar@9 13167 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
alpar@9 13168 }
alpar@9 13169
alpar@9 13170
alpar@9 13171 # func_stripname prefix suffix name
alpar@9 13172 # strip PREFIX and SUFFIX off of NAME.
alpar@9 13173 # PREFIX and SUFFIX must not contain globbing or regex special
alpar@9 13174 # characters, hashes, percent signs, but SUFFIX may contain a leading
alpar@9 13175 # dot (in which case that matches only a dot).
alpar@9 13176 # func_strip_suffix prefix name
alpar@9 13177 func_stripname ()
alpar@9 13178 {
alpar@9 13179 case ${2} in
alpar@9 13180 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
alpar@9 13181 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
alpar@9 13182 esac
alpar@9 13183 }
alpar@9 13184
alpar@9 13185 # sed scripts:
alpar@9 13186 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
alpar@9 13187 my_sed_long_arg='1s/^-[^=]*=//'
alpar@9 13188
alpar@9 13189 # func_opt_split
alpar@9 13190 func_opt_split ()
alpar@9 13191 {
alpar@9 13192 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
alpar@9 13193 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
alpar@9 13194 }
alpar@9 13195
alpar@9 13196 # func_lo2o object
alpar@9 13197 func_lo2o ()
alpar@9 13198 {
alpar@9 13199 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
alpar@9 13200 }
alpar@9 13201
alpar@9 13202 # func_xform libobj-or-source
alpar@9 13203 func_xform ()
alpar@9 13204 {
alpar@9 13205 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
alpar@9 13206 }
alpar@9 13207
alpar@9 13208 # func_arith arithmetic-term...
alpar@9 13209 func_arith ()
alpar@9 13210 {
alpar@9 13211 func_arith_result=`expr "$@"`
alpar@9 13212 }
alpar@9 13213
alpar@9 13214 # func_len string
alpar@9 13215 # STRING may not start with a hyphen.
alpar@9 13216 func_len ()
alpar@9 13217 {
alpar@9 13218 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
alpar@9 13219 }
alpar@9 13220
alpar@9 13221 _LT_EOF
alpar@9 13222 esac
alpar@9 13223
alpar@9 13224 case $lt_shell_append in
alpar@9 13225 yes)
alpar@9 13226 cat << \_LT_EOF >> "$cfgfile"
alpar@9 13227
alpar@9 13228 # func_append var value
alpar@9 13229 # Append VALUE to the end of shell variable VAR.
alpar@9 13230 func_append ()
alpar@9 13231 {
alpar@9 13232 eval "$1+=\$2"
alpar@9 13233 }
alpar@9 13234 _LT_EOF
alpar@9 13235 ;;
alpar@9 13236 *)
alpar@9 13237 cat << \_LT_EOF >> "$cfgfile"
alpar@9 13238
alpar@9 13239 # func_append var value
alpar@9 13240 # Append VALUE to the end of shell variable VAR.
alpar@9 13241 func_append ()
alpar@9 13242 {
alpar@9 13243 eval "$1=\$$1\$2"
alpar@9 13244 }
alpar@9 13245
alpar@9 13246 _LT_EOF
alpar@9 13247 ;;
alpar@9 13248 esac
alpar@9 13249
alpar@9 13250
alpar@9 13251 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
alpar@9 13252 || (rm -f "$cfgfile"; exit 1)
alpar@9 13253
alpar@9 13254 mv -f "$cfgfile" "$ofile" ||
alpar@9 13255 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
alpar@9 13256 chmod +x "$ofile"
alpar@9 13257
alpar@9 13258 ;;
alpar@9 13259
alpar@9 13260 esac
alpar@9 13261 done # for ac_tag
alpar@9 13262
alpar@9 13263
alpar@9 13264 as_fn_exit 0
alpar@9 13265 _ACEOF
alpar@9 13266 ac_clean_files=$ac_clean_files_save
alpar@9 13267
alpar@9 13268 test $ac_write_fail = 0 ||
alpar@9 13269 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
alpar@9 13270
alpar@9 13271
alpar@9 13272 # configure is writing to config.log, and then calls config.status.
alpar@9 13273 # config.status does its own redirection, appending to config.log.
alpar@9 13274 # Unfortunately, on DOS this fails, as config.log is still kept open
alpar@9 13275 # by configure, so config.status won't be able to write to it; its
alpar@9 13276 # output is simply discarded. So we exec the FD to /dev/null,
alpar@9 13277 # effectively closing config.log, so it can be properly (re)opened and
alpar@9 13278 # appended to by config.status. When coming back to configure, we
alpar@9 13279 # need to make the FD available again.
alpar@9 13280 if test "$no_create" != yes; then
alpar@9 13281 ac_cs_success=:
alpar@9 13282 ac_config_status_args=
alpar@9 13283 test "$silent" = yes &&
alpar@9 13284 ac_config_status_args="$ac_config_status_args --quiet"
alpar@9 13285 exec 5>/dev/null
alpar@9 13286 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
alpar@9 13287 exec 5>>config.log
alpar@9 13288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
alpar@9 13289 # would make configure fail if this is the last instruction.
alpar@9 13290 $ac_cs_success || as_fn_exit $?
alpar@9 13291 fi
alpar@9 13292 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
alpar@9 13293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
alpar@9 13294 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
alpar@9 13295 fi
alpar@9 13296
alpar@9 13297