drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1 | #! /bin/sh |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
drh | bb777d5 | 2018-06-05 23:51:52 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for sqlite 3.25.0. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 4 | # |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5 | # |
| 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 7 | # |
| 8 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 18 | emulate sh |
| 19 | NULLCMD=: |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
| 24 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 30 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 31 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 32 | |
| 33 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 58 | case $arg in #( |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
| 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
| 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
| 79 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 80 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 81 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
| 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 90 | as_myself= |
| 91 | case $0 in #(( |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 100 | IFS=$as_save_IFS |
| 101 | |
| 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
| 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 111 | exit 1 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 112 | fi |
| 113 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 121 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 131 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
| 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
| 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
| 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
| 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 200 | if (eval "$as_required") 2>/dev/null; then : |
| 201 | as_have_required=yes |
| 202 | else |
| 203 | as_have_required=no |
| 204 | fi |
| 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 206 | |
| 207 | else |
| 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 209 | as_found=false |
| 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 211 | do |
| 212 | IFS=$as_save_IFS |
| 213 | test -z "$as_dir" && as_dir=. |
| 214 | as_found=: |
| 215 | case $as_dir in #( |
| 216 | /*) |
| 217 | for as_base in sh bash ksh sh5; do |
| 218 | # Try only shells that exist, to save several forks. |
| 219 | as_shell=$as_dir/$as_base |
| 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 222 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | break 2 |
| 225 | fi |
| 226 | fi |
| 227 | done;; |
| 228 | esac |
| 229 | as_found=false |
| 230 | done |
| 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 233 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 234 | fi; } |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | if test "x$CONFIG_SHELL" != x; then : |
| 239 | export CONFIG_SHELL |
| 240 | # We cannot yet assume a decent shell, so we have to provide a |
| 241 | # neutralization value for shells without unset; and this also |
| 242 | # works around shells that cannot unset nonexistent variables. |
| 243 | # Preserve -v and -x to the replacement shell. |
| 244 | BASH_ENV=/dev/null |
| 245 | ENV=/dev/null |
| 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 | case $- in # (((( |
| 248 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 249 | *v* ) as_opts=-v ;; |
| 250 | *x* ) as_opts=-x ;; |
| 251 | * ) as_opts= ;; |
| 252 | esac |
| 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 255 | # out after a failed `exec'. |
| 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 | exit 255 |
| 258 | fi |
| 259 | |
| 260 | if test x$as_have_required = xno; then : |
| 261 | $as_echo "$0: This script requires a shell more modern than all" |
| 262 | $as_echo "$0: the shells that I found on your system." |
| 263 | if test x${ZSH_VERSION+set} = xset ; then |
| 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 266 | else |
| 267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 268 | $0: including any error possibly output before this |
| 269 | $0: message. Then install a modern shell, or manually run |
| 270 | $0: the script under such a shell if you do have one." |
| 271 | fi |
| 272 | exit 1 |
| 273 | fi |
| 274 | fi |
| 275 | fi |
| 276 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 277 | export SHELL |
| 278 | # Unset more variables known to interfere with behavior of common tools. |
| 279 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 280 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 281 | |
| 282 | ## --------------------- ## |
| 283 | ## M4sh Shell Functions. ## |
| 284 | ## --------------------- ## |
| 285 | # as_fn_unset VAR |
| 286 | # --------------- |
| 287 | # Portably unset VAR. |
| 288 | as_fn_unset () |
| 289 | { |
| 290 | { eval $1=; unset $1;} |
| 291 | } |
| 292 | as_unset=as_fn_unset |
| 293 | |
| 294 | # as_fn_set_status STATUS |
| 295 | # ----------------------- |
| 296 | # Set $? to STATUS, without forking. |
| 297 | as_fn_set_status () |
| 298 | { |
| 299 | return $1 |
| 300 | } # as_fn_set_status |
| 301 | |
| 302 | # as_fn_exit STATUS |
| 303 | # ----------------- |
| 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 305 | as_fn_exit () |
| 306 | { |
| 307 | set +e |
| 308 | as_fn_set_status $1 |
| 309 | exit $1 |
| 310 | } # as_fn_exit |
| 311 | |
| 312 | # as_fn_mkdir_p |
| 313 | # ------------- |
| 314 | # Create "$as_dir" as a directory, including parents if necessary. |
| 315 | as_fn_mkdir_p () |
| 316 | { |
| 317 | |
| 318 | case $as_dir in #( |
| 319 | -*) as_dir=./$as_dir;; |
| 320 | esac |
| 321 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 322 | as_dirs= |
| 323 | while :; do |
| 324 | case $as_dir in #( |
| 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 326 | *) as_qdir=$as_dir;; |
| 327 | esac |
| 328 | as_dirs="'$as_qdir' $as_dirs" |
| 329 | as_dir=`$as_dirname -- "$as_dir" || |
| 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 332 | X"$as_dir" : 'X\(//\)$' \| \ |
| 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 334 | $as_echo X"$as_dir" | |
| 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 336 | s//\1/ |
| 337 | q |
| 338 | } |
| 339 | /^X\(\/\/\)[^/].*/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\).*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | s/.*/./; q'` |
| 352 | test -d "$as_dir" && break |
| 353 | done |
| 354 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 356 | |
| 357 | |
| 358 | } # as_fn_mkdir_p |
| 359 | |
| 360 | # as_fn_executable_p FILE |
| 361 | # ----------------------- |
| 362 | # Test if FILE is an executable regular file. |
| 363 | as_fn_executable_p () |
| 364 | { |
| 365 | test -f "$1" && test -x "$1" |
| 366 | } # as_fn_executable_p |
| 367 | # as_fn_append VAR VALUE |
| 368 | # ---------------------- |
| 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 370 | # advantage of any shell optimizations that allow amortized linear growth over |
| 371 | # repeated appends, instead of the typical quadratic growth present in naive |
| 372 | # implementations. |
| 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 374 | eval 'as_fn_append () |
| 375 | { |
| 376 | eval $1+=\$2 |
| 377 | }' |
| 378 | else |
| 379 | as_fn_append () |
| 380 | { |
| 381 | eval $1=\$$1\$2 |
| 382 | } |
| 383 | fi # as_fn_append |
| 384 | |
| 385 | # as_fn_arith ARG... |
| 386 | # ------------------ |
| 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 389 | # must be portable across $(()) and expr. |
| 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 391 | eval 'as_fn_arith () |
| 392 | { |
| 393 | as_val=$(( $* )) |
| 394 | }' |
| 395 | else |
| 396 | as_fn_arith () |
| 397 | { |
| 398 | as_val=`expr "$@" || test $? -eq 1` |
| 399 | } |
| 400 | fi # as_fn_arith |
| 401 | |
| 402 | |
| 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 404 | # ---------------------------------------- |
| 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 407 | # script with STATUS, using 1 if that was 0. |
| 408 | as_fn_error () |
| 409 | { |
| 410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 411 | if test "$4"; then |
| 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 414 | fi |
| 415 | $as_echo "$as_me: error: $2" >&2 |
| 416 | as_fn_exit $as_status |
| 417 | } # as_fn_error |
| 418 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 421 | as_expr=expr |
| 422 | else |
| 423 | as_expr=false |
| 424 | fi |
| 425 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 427 | as_basename=basename |
| 428 | else |
| 429 | as_basename=false |
| 430 | fi |
| 431 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 433 | as_dirname=dirname |
| 434 | else |
| 435 | as_dirname=false |
| 436 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 437 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 438 | as_me=`$as_basename -- "$0" || |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 440 | X"$0" : 'X\(//\)$' \| \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 442 | $as_echo X/"$0" | |
| 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 444 | s//\1/ |
| 445 | q |
| 446 | } |
| 447 | /^X\/\(\/\/\)$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\).*/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | s/.*/./; q'` |
| 456 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 457 | # Avoid depending upon Character Ranges. |
| 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 461 | as_cr_digits='0123456789' |
| 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 463 | |
| 464 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 470 | sed -n ' |
| 471 | p |
| 472 | /[$]LINENO/= |
| 473 | ' <$as_myself | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 474 | sed ' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 475 | s/[$]LINENO.*/&-/ |
| 476 | t lineno |
| 477 | b |
| 478 | :lineno |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 479 | N |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 480 | :loop |
| 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 482 | t loop |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 483 | s/-\n.*// |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 484 | ' >$as_me.lineno && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 485 | chmod +x "$as_me.lineno" || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 487 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 489 | # already done that, so ensure we don't try to do so again and fall |
| 490 | # in an infinite loop. This has already happened in practice. |
| 491 | _as_can_reexec=no; export _as_can_reexec |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 492 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 493 | # (the dirname of $[0] is not the place where we might find the |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 494 | # original and so on. Autoconf is especially sensitive to this). |
| 495 | . "./$as_me.lineno" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 496 | # Exit status is that of the last command. |
| 497 | exit |
| 498 | } |
| 499 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 500 | ECHO_C= ECHO_N= ECHO_T= |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 501 | case `echo -n x` in #((((( |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 502 | -n*) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 503 | case `echo 'xy\c'` in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 505 | xy) ECHO_C='\c';; |
| 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 507 | ECHO_T=' ';; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 508 | esac;; |
| 509 | *) |
| 510 | ECHO_N='-n';; |
| 511 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 512 | |
| 513 | rm -f conf$$ conf$$.exe conf$$.file |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 514 | if test -d conf$$.dir; then |
| 515 | rm -f conf$$.dir/conf$$.file |
| 516 | else |
| 517 | rm -f conf$$.dir |
| 518 | mkdir conf$$.dir 2>/dev/null |
| 519 | fi |
| 520 | if (echo >conf$$.file) 2>/dev/null; then |
| 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 522 | as_ln_s='ln -s' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 523 | # ... but there are two gotchas: |
| 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 526 | # In both cases, we have to default to `cp -pR'. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 528 | as_ln_s='cp -pR' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s=ln |
| 531 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 532 | as_ln_s='cp -pR' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 533 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 534 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 536 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 538 | rmdir conf$$.dir 2>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 539 | |
| 540 | if mkdir -p . 2>/dev/null; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 542 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 543 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 544 | as_mkdir_p=false |
| 545 | fi |
| 546 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 547 | as_test_x='test -x' |
| 548 | as_executable_p=as_fn_executable_p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 552 | |
| 553 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 555 | |
| 556 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 557 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 558 | # Check that we are running under the correct shell. |
| 559 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 560 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 561 | case X$lt_ECHO in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 562 | X*--fallback-echo) |
| 563 | # Remove one level of quotation (which was required for Make). |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 564 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 565 | ;; |
| 566 | esac |
| 567 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 568 | ECHO=${lt_ECHO-echo} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 569 | if test "X$1" = X--no-reexec; then |
| 570 | # Discard the --no-reexec flag, and continue. |
| 571 | shift |
| 572 | elif test "X$1" = X--fallback-echo; then |
| 573 | # Avoid inline document here, it may be left over |
| 574 | : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 575 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 576 | # Yippee, $ECHO works! |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 577 | : |
| 578 | else |
| 579 | # Restart under the correct shell. |
| 580 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 581 | fi |
| 582 | |
| 583 | if test "X$1" = X--fallback-echo; then |
| 584 | # used as fallback echo |
| 585 | shift |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 586 | cat <<_LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 587 | $* |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 588 | _LT_EOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 589 | exit 0 |
| 590 | fi |
| 591 | |
| 592 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 593 | # if CDPATH is set. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 594 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 595 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 596 | if test -z "$lt_ECHO"; then |
| 597 | if test "X${echo_test_string+set}" != Xset; then |
| 598 | # find a string as large as possible, as long as the shell can cope with it |
| 599 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 600 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 601 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 602 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 603 | then |
| 604 | break |
| 605 | fi |
| 606 | done |
| 607 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 608 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 609 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 610 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 611 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 612 | : |
| 613 | else |
| 614 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 615 | # backslashes. This makes it impossible to quote backslashes using |
| 616 | # echo "$something" | sed 's/\\/\\\\/g' |
| 617 | # |
| 618 | # So, first we look for a working echo in the user's PATH. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 619 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 620 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 621 | for dir in $PATH /usr/ucb; do |
| 622 | IFS="$lt_save_ifs" |
| 623 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 624 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 625 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 626 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 627 | ECHO="$dir/echo" |
| 628 | break |
| 629 | fi |
| 630 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 631 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 632 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 633 | if test "X$ECHO" = Xecho; then |
| 634 | # We didn't find a better echo, so look for alternatives. |
| 635 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 636 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 637 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 638 | # This shell has a builtin print -r that does the trick. |
| 639 | ECHO='print -r' |
| 640 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 641 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 642 | # If we have ksh, try running configure again with it. |
| 643 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 644 | export ORIGINAL_CONFIG_SHELL |
| 645 | CONFIG_SHELL=/bin/ksh |
| 646 | export CONFIG_SHELL |
| 647 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 648 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 649 | # Try using printf. |
| 650 | ECHO='printf %s\n' |
| 651 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 652 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 653 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 654 | # Cool, printf works |
| 655 | : |
| 656 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 657 | test "X$echo_testing_string" = 'X\t' && |
| 658 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 659 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 660 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 661 | export CONFIG_SHELL |
| 662 | SHELL="$CONFIG_SHELL" |
| 663 | export SHELL |
| 664 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 665 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 666 | test "X$echo_testing_string" = 'X\t' && |
| 667 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 668 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 669 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 670 | else |
| 671 | # maybe with a smaller string... |
| 672 | prev=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 673 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 674 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 675 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 676 | then |
| 677 | break |
| 678 | fi |
| 679 | prev="$cmd" |
| 680 | done |
| 681 | |
| 682 | if test "$prev" != 'sed 50q "$0"'; then |
| 683 | echo_test_string=`eval $prev` |
| 684 | export echo_test_string |
| 685 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 686 | else |
| 687 | # Oops. We lost completely, so just stick with echo. |
| 688 | ECHO=echo |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 689 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 690 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 691 | fi |
| 692 | fi |
| 693 | fi |
| 694 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 695 | |
| 696 | # Copy echo and quote the copy suitably for passing to libtool from |
| 697 | # the Makefile, instead of quoting the original, which is used later. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 698 | lt_ECHO=$ECHO |
| 699 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 700 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 701 | fi |
| 702 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 703 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 704 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 705 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 706 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 707 | exec 6>&1 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 708 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 709 | # Name of the host. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 710 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 711 | # so uname gets run too. |
| 712 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 713 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 714 | # |
| 715 | # Initializations. |
| 716 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 717 | ac_default_prefix=/usr/local |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 718 | ac_clean_files= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 719 | ac_config_libobj_dir=. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 720 | LIBOBJS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 721 | cross_compiling=no |
| 722 | subdirs= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 723 | MFLAGS= |
| 724 | MAKEFLAGS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 725 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 726 | # Identity of this package. |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 727 | PACKAGE_NAME='sqlite' |
| 728 | PACKAGE_TARNAME='sqlite' |
drh | bb777d5 | 2018-06-05 23:51:52 +0000 | [diff] [blame] | 729 | PACKAGE_VERSION='3.25.0' |
| 730 | PACKAGE_STRING='sqlite 3.25.0' |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 731 | PACKAGE_BUGREPORT='' |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 732 | PACKAGE_URL='' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 733 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 734 | # Factoring default headers for most tests. |
| 735 | ac_includes_default="\ |
| 736 | #include <stdio.h> |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 737 | #ifdef HAVE_SYS_TYPES_H |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 738 | # include <sys/types.h> |
| 739 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 740 | #ifdef HAVE_SYS_STAT_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 741 | # include <sys/stat.h> |
| 742 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 743 | #ifdef STDC_HEADERS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 744 | # include <stdlib.h> |
| 745 | # include <stddef.h> |
| 746 | #else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 747 | # ifdef HAVE_STDLIB_H |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 748 | # include <stdlib.h> |
| 749 | # endif |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 750 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 751 | #ifdef HAVE_STRING_H |
| 752 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 753 | # include <memory.h> |
| 754 | # endif |
| 755 | # include <string.h> |
| 756 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 757 | #ifdef HAVE_STRINGS_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 758 | # include <strings.h> |
| 759 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 760 | #ifdef HAVE_INTTYPES_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 761 | # include <inttypes.h> |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 762 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 763 | #ifdef HAVE_STDINT_H |
| 764 | # include <stdint.h> |
| 765 | #endif |
| 766 | #ifdef HAVE_UNISTD_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 767 | # include <unistd.h> |
| 768 | #endif" |
| 769 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 770 | ac_subst_vars='LTLIBOBJS |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 771 | LIBOBJS |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 772 | BUILD_CFLAGS |
| 773 | USE_GCOV |
| 774 | OPT_FEATURE_FLAGS |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 775 | HAVE_ZLIB |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 776 | USE_AMALGAMATION |
| 777 | TARGET_DEBUG |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 778 | TARGET_HAVE_EDITLINE |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 779 | TARGET_HAVE_READLINE |
| 780 | TARGET_READLINE_INC |
| 781 | TARGET_READLINE_LIBS |
| 782 | HAVE_TCL |
| 783 | TCL_SHLIB_SUFFIX |
| 784 | TCL_STUB_LIB_SPEC |
| 785 | TCL_STUB_LIB_FLAG |
| 786 | TCL_STUB_LIB_FILE |
| 787 | TCL_LIB_SPEC |
| 788 | TCL_LIB_FLAG |
| 789 | TCL_LIB_FILE |
| 790 | TCL_INCLUDE_SPEC |
| 791 | TCL_SRC_DIR |
| 792 | TCL_BIN_DIR |
| 793 | TCL_VERSION |
| 794 | TARGET_EXEEXT |
| 795 | SQLITE_OS_WIN |
| 796 | SQLITE_OS_UNIX |
| 797 | BUILD_EXEEXT |
| 798 | TEMP_STORE |
| 799 | ALLOWRELEASE |
| 800 | SQLITE_THREADSAFE |
| 801 | BUILD_CC |
| 802 | VERSION_NUMBER |
| 803 | RELEASE |
| 804 | VERSION |
| 805 | program_prefix |
| 806 | TCLLIBDIR |
| 807 | TCLSH_CMD |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 808 | INSTALL_DATA |
| 809 | INSTALL_SCRIPT |
| 810 | INSTALL_PROGRAM |
| 811 | CPP |
| 812 | OTOOL64 |
| 813 | OTOOL |
| 814 | LIPO |
| 815 | NMEDIT |
| 816 | DSYMUTIL |
| 817 | lt_ECHO |
| 818 | RANLIB |
| 819 | STRIP |
| 820 | AR |
| 821 | OBJDUMP |
| 822 | LN_S |
| 823 | NM |
| 824 | ac_ct_DUMPBIN |
| 825 | DUMPBIN |
| 826 | LD |
| 827 | FGREP |
| 828 | EGREP |
| 829 | GREP |
| 830 | SED |
| 831 | OBJEXT |
| 832 | EXEEXT |
| 833 | ac_ct_CC |
| 834 | CPPFLAGS |
| 835 | LDFLAGS |
| 836 | CFLAGS |
| 837 | CC |
| 838 | host_os |
| 839 | host_vendor |
| 840 | host_cpu |
| 841 | host |
| 842 | build_os |
| 843 | build_vendor |
| 844 | build_cpu |
| 845 | build |
| 846 | LIBTOOL |
| 847 | target_alias |
| 848 | host_alias |
| 849 | build_alias |
| 850 | LIBS |
| 851 | ECHO_T |
| 852 | ECHO_N |
| 853 | ECHO_C |
| 854 | DEFS |
| 855 | mandir |
| 856 | localedir |
| 857 | libdir |
| 858 | psdir |
| 859 | pdfdir |
| 860 | dvidir |
| 861 | htmldir |
| 862 | infodir |
| 863 | docdir |
| 864 | oldincludedir |
| 865 | includedir |
| 866 | localstatedir |
| 867 | sharedstatedir |
| 868 | sysconfdir |
| 869 | datadir |
| 870 | datarootdir |
| 871 | libexecdir |
| 872 | sbindir |
| 873 | bindir |
| 874 | program_transform_name |
| 875 | prefix |
| 876 | exec_prefix |
| 877 | PACKAGE_URL |
| 878 | PACKAGE_BUGREPORT |
| 879 | PACKAGE_STRING |
| 880 | PACKAGE_VERSION |
| 881 | PACKAGE_TARNAME |
| 882 | PACKAGE_NAME |
| 883 | PATH_SEPARATOR |
| 884 | SHELL' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 885 | ac_subst_files='' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 886 | ac_user_opts=' |
| 887 | enable_option_checking |
| 888 | enable_shared |
| 889 | enable_static |
| 890 | with_pic |
| 891 | enable_fast_install |
| 892 | with_gnu_ld |
| 893 | enable_libtool_lock |
| 894 | enable_largefile |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 895 | enable_threadsafe |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 896 | enable_releasemode |
| 897 | enable_tempstore |
| 898 | enable_tcl |
| 899 | with_tcl |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 900 | enable_editline |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 901 | enable_readline |
| 902 | with_readline_lib |
| 903 | with_readline_inc |
| 904 | enable_debug |
| 905 | enable_amalgamation |
| 906 | enable_load_extension |
drh | c530b9c | 2016-07-25 11:27:22 +0000 | [diff] [blame] | 907 | enable_memsys5 |
drh | 5d513ba | 2016-07-25 11:57:21 +0000 | [diff] [blame] | 908 | enable_memsys3 |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 909 | enable_fts3 |
| 910 | enable_fts4 |
| 911 | enable_fts5 |
| 912 | enable_json1 |
drh | 83bebdd | 2017-08-28 17:00:12 +0000 | [diff] [blame] | 913 | enable_update_limit |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 914 | enable_rtree |
drh | 5e18d40 | 2016-05-03 13:14:18 +0000 | [diff] [blame] | 915 | enable_session |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 916 | enable_gcov |
| 917 | ' |
| 918 | ac_precious_vars='build_alias |
| 919 | host_alias |
| 920 | target_alias |
| 921 | CC |
| 922 | CFLAGS |
| 923 | LDFLAGS |
| 924 | LIBS |
| 925 | CPPFLAGS |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 926 | CPP |
| 927 | TCLLIBDIR' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 928 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 929 | |
| 930 | # Initialize some variables set by options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 931 | ac_init_help= |
| 932 | ac_init_version=false |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 933 | ac_unrecognized_opts= |
| 934 | ac_unrecognized_sep= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 935 | # The variables have the same names as the options, with |
| 936 | # dashes changed to underlines. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 937 | cache_file=/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 938 | exec_prefix=NONE |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 939 | no_create= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 940 | no_recursion= |
| 941 | prefix=NONE |
| 942 | program_prefix=NONE |
| 943 | program_suffix=NONE |
| 944 | program_transform_name=s,x,x, |
| 945 | silent= |
| 946 | site= |
| 947 | srcdir= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 948 | verbose= |
| 949 | x_includes=NONE |
| 950 | x_libraries=NONE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 951 | |
| 952 | # Installation directory options. |
| 953 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 954 | # and all the variables that are supposed to be based on exec_prefix |
| 955 | # by default will actually change. |
| 956 | # Use braces instead of parens because sh, perl, etc. also accept them. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 957 | # (The list follows the same order as the GNU Coding Standards.) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 958 | bindir='${exec_prefix}/bin' |
| 959 | sbindir='${exec_prefix}/sbin' |
| 960 | libexecdir='${exec_prefix}/libexec' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 961 | datarootdir='${prefix}/share' |
| 962 | datadir='${datarootdir}' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 963 | sysconfdir='${prefix}/etc' |
| 964 | sharedstatedir='${prefix}/com' |
| 965 | localstatedir='${prefix}/var' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 966 | includedir='${prefix}/include' |
| 967 | oldincludedir='/usr/include' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 968 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 969 | infodir='${datarootdir}/info' |
| 970 | htmldir='${docdir}' |
| 971 | dvidir='${docdir}' |
| 972 | pdfdir='${docdir}' |
| 973 | psdir='${docdir}' |
| 974 | libdir='${exec_prefix}/lib' |
| 975 | localedir='${datarootdir}/locale' |
| 976 | mandir='${datarootdir}/man' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 977 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 978 | ac_prev= |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 979 | ac_dashdash= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 980 | for ac_option |
| 981 | do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 982 | # If the previous option needs an argument, assign it. |
| 983 | if test -n "$ac_prev"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 984 | eval $ac_prev=\$ac_option |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 985 | ac_prev= |
| 986 | continue |
| 987 | fi |
| 988 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 989 | case $ac_option in |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 990 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 991 | *=) ac_optarg= ;; |
| 992 | *) ac_optarg=yes ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 993 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 994 | |
| 995 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 996 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 997 | case $ac_dashdash$ac_option in |
| 998 | --) |
| 999 | ac_dashdash=yes ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1000 | |
| 1001 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1002 | ac_prev=bindir ;; |
| 1003 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1004 | bindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1005 | |
| 1006 | -build | --build | --buil | --bui | --bu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1007 | ac_prev=build_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1008 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1009 | build_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1010 | |
| 1011 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1012 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1013 | ac_prev=cache_file ;; |
| 1014 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1015 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1016 | cache_file=$ac_optarg ;; |
| 1017 | |
| 1018 | --config-cache | -C) |
| 1019 | cache_file=config.cache ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1020 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1021 | -datadir | --datadir | --datadi | --datad) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1022 | ac_prev=datadir ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1023 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1024 | datadir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1025 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1026 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1027 | | --dataroo | --dataro | --datar) |
| 1028 | ac_prev=datarootdir ;; |
| 1029 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1030 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1031 | datarootdir=$ac_optarg ;; |
| 1032 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1033 | -disable-* | --disable-*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1034 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1035 | # Reject names that are not valid shell variable names. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1036 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1037 | as_fn_error $? "invalid feature name: $ac_useropt" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1038 | ac_useropt_orig=$ac_useropt |
| 1039 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1040 | case $ac_user_opts in |
| 1041 | *" |
| 1042 | "enable_$ac_useropt" |
| 1043 | "*) ;; |
| 1044 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1045 | ac_unrecognized_sep=', ';; |
| 1046 | esac |
| 1047 | eval enable_$ac_useropt=no ;; |
| 1048 | |
| 1049 | -docdir | --docdir | --docdi | --doc | --do) |
| 1050 | ac_prev=docdir ;; |
| 1051 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1052 | docdir=$ac_optarg ;; |
| 1053 | |
| 1054 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1055 | ac_prev=dvidir ;; |
| 1056 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1057 | dvidir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1058 | |
| 1059 | -enable-* | --enable-*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1060 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1061 | # Reject names that are not valid shell variable names. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1062 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1063 | as_fn_error $? "invalid feature name: $ac_useropt" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1064 | ac_useropt_orig=$ac_useropt |
| 1065 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1066 | case $ac_user_opts in |
| 1067 | *" |
| 1068 | "enable_$ac_useropt" |
| 1069 | "*) ;; |
| 1070 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1071 | ac_unrecognized_sep=', ';; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1072 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1073 | eval enable_$ac_useropt=\$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1074 | |
| 1075 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1076 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1077 | | --exec | --exe | --ex) |
| 1078 | ac_prev=exec_prefix ;; |
| 1079 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1080 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1081 | | --exec=* | --exe=* | --ex=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1082 | exec_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1083 | |
| 1084 | -gas | --gas | --ga | --g) |
| 1085 | # Obsolete; use --with-gas. |
| 1086 | with_gas=yes ;; |
| 1087 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1088 | -help | --help | --hel | --he | -h) |
| 1089 | ac_init_help=long ;; |
| 1090 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1091 | ac_init_help=recursive ;; |
| 1092 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1093 | ac_init_help=short ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1094 | |
| 1095 | -host | --host | --hos | --ho) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1096 | ac_prev=host_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1097 | -host=* | --host=* | --hos=* | --ho=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1098 | host_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1099 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1100 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1101 | ac_prev=htmldir ;; |
| 1102 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1103 | | --ht=*) |
| 1104 | htmldir=$ac_optarg ;; |
| 1105 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1106 | -includedir | --includedir | --includedi | --included | --include \ |
| 1107 | | --includ | --inclu | --incl | --inc) |
| 1108 | ac_prev=includedir ;; |
| 1109 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1110 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1111 | includedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1112 | |
| 1113 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1114 | ac_prev=infodir ;; |
| 1115 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1116 | infodir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1117 | |
| 1118 | -libdir | --libdir | --libdi | --libd) |
| 1119 | ac_prev=libdir ;; |
| 1120 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1121 | libdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1122 | |
| 1123 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1124 | | --libexe | --libex | --libe) |
| 1125 | ac_prev=libexecdir ;; |
| 1126 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1127 | | --libexe=* | --libex=* | --libe=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1128 | libexecdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1129 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1130 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1131 | ac_prev=localedir ;; |
| 1132 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1133 | localedir=$ac_optarg ;; |
| 1134 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1135 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1136 | | --localstate | --localstat | --localsta | --localst | --locals) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1137 | ac_prev=localstatedir ;; |
| 1138 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1139 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1140 | localstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1141 | |
| 1142 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1143 | ac_prev=mandir ;; |
| 1144 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1145 | mandir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1146 | |
| 1147 | -nfp | --nfp | --nf) |
| 1148 | # Obsolete; use --without-fp. |
| 1149 | with_fp=no ;; |
| 1150 | |
| 1151 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1152 | | --no-cr | --no-c | -n) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1153 | no_create=yes ;; |
| 1154 | |
| 1155 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1156 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1157 | no_recursion=yes ;; |
| 1158 | |
| 1159 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1160 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1161 | | --oldin | --oldi | --old | --ol | --o) |
| 1162 | ac_prev=oldincludedir ;; |
| 1163 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1164 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1165 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1166 | oldincludedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1167 | |
| 1168 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1169 | ac_prev=prefix ;; |
| 1170 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1171 | prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1172 | |
| 1173 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1174 | | --program-pre | --program-pr | --program-p) |
| 1175 | ac_prev=program_prefix ;; |
| 1176 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1177 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1178 | program_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1179 | |
| 1180 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1181 | | --program-suf | --program-su | --program-s) |
| 1182 | ac_prev=program_suffix ;; |
| 1183 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1184 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1185 | program_suffix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1186 | |
| 1187 | -program-transform-name | --program-transform-name \ |
| 1188 | | --program-transform-nam | --program-transform-na \ |
| 1189 | | --program-transform-n | --program-transform- \ |
| 1190 | | --program-transform | --program-transfor \ |
| 1191 | | --program-transfo | --program-transf \ |
| 1192 | | --program-trans | --program-tran \ |
| 1193 | | --progr-tra | --program-tr | --program-t) |
| 1194 | ac_prev=program_transform_name ;; |
| 1195 | -program-transform-name=* | --program-transform-name=* \ |
| 1196 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1197 | | --program-transform-n=* | --program-transform-=* \ |
| 1198 | | --program-transform=* | --program-transfor=* \ |
| 1199 | | --program-transfo=* | --program-transf=* \ |
| 1200 | | --program-trans=* | --program-tran=* \ |
| 1201 | | --progr-tra=* | --program-tr=* | --program-t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1202 | program_transform_name=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1203 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1204 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1205 | ac_prev=pdfdir ;; |
| 1206 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1207 | pdfdir=$ac_optarg ;; |
| 1208 | |
| 1209 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1210 | ac_prev=psdir ;; |
| 1211 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1212 | psdir=$ac_optarg ;; |
| 1213 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1214 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1215 | | -silent | --silent | --silen | --sile | --sil) |
| 1216 | silent=yes ;; |
| 1217 | |
| 1218 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1219 | ac_prev=sbindir ;; |
| 1220 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1221 | | --sbi=* | --sb=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1222 | sbindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1223 | |
| 1224 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1225 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1226 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1227 | | --sha | --sh) |
| 1228 | ac_prev=sharedstatedir ;; |
| 1229 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1230 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1231 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1232 | | --sha=* | --sh=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1233 | sharedstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1234 | |
| 1235 | -site | --site | --sit) |
| 1236 | ac_prev=site ;; |
| 1237 | -site=* | --site=* | --sit=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1238 | site=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1239 | |
| 1240 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1241 | ac_prev=srcdir ;; |
| 1242 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1243 | srcdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1244 | |
| 1245 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1246 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1247 | ac_prev=sysconfdir ;; |
| 1248 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1249 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1250 | sysconfdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1251 | |
| 1252 | -target | --target | --targe | --targ | --tar | --ta | --t) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1253 | ac_prev=target_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1254 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1255 | target_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1256 | |
| 1257 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1258 | verbose=yes ;; |
| 1259 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1260 | -version | --version | --versio | --versi | --vers | -V) |
| 1261 | ac_init_version=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1262 | |
| 1263 | -with-* | --with-*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1264 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1265 | # Reject names that are not valid shell variable names. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1266 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1267 | as_fn_error $? "invalid package name: $ac_useropt" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1268 | ac_useropt_orig=$ac_useropt |
| 1269 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1270 | case $ac_user_opts in |
| 1271 | *" |
| 1272 | "with_$ac_useropt" |
| 1273 | "*) ;; |
| 1274 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1275 | ac_unrecognized_sep=', ';; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1276 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1277 | eval with_$ac_useropt=\$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1278 | |
| 1279 | -without-* | --without-*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1280 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1281 | # Reject names that are not valid shell variable names. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1282 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1283 | as_fn_error $? "invalid package name: $ac_useropt" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1284 | ac_useropt_orig=$ac_useropt |
| 1285 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1286 | case $ac_user_opts in |
| 1287 | *" |
| 1288 | "with_$ac_useropt" |
| 1289 | "*) ;; |
| 1290 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1291 | ac_unrecognized_sep=', ';; |
| 1292 | esac |
| 1293 | eval with_$ac_useropt=no ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1294 | |
| 1295 | --x) |
| 1296 | # Obsolete; use --with-x. |
| 1297 | with_x=yes ;; |
| 1298 | |
| 1299 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1300 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1301 | ac_prev=x_includes ;; |
| 1302 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1303 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1304 | x_includes=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1305 | |
| 1306 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1307 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1308 | ac_prev=x_libraries ;; |
| 1309 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1310 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1311 | x_libraries=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1312 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1313 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1314 | Try \`$0 --help' for more information" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1315 | ;; |
| 1316 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1317 | *=*) |
| 1318 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1319 | # Reject names that are not valid shell variable names. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1320 | case $ac_envvar in #( |
| 1321 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1322 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1323 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1324 | eval $ac_envvar=\$ac_optarg |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1325 | export $ac_envvar ;; |
| 1326 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1327 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1328 | # FIXME: should be removed in autoconf 3.0. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1329 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1330 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1331 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1332 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1333 | ;; |
| 1334 | |
| 1335 | esac |
| 1336 | done |
| 1337 | |
| 1338 | if test -n "$ac_prev"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1339 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1340 | as_fn_error $? "missing argument to $ac_option" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1341 | fi |
| 1342 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1343 | if test -n "$ac_unrecognized_opts"; then |
| 1344 | case $enable_option_checking in |
| 1345 | no) ;; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1346 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1347 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1348 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1349 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1350 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1351 | # Check all directory arguments for consistency. |
| 1352 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1353 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1354 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1355 | libdir localedir mandir |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1356 | do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1357 | eval ac_val=\$$ac_var |
| 1358 | # Remove trailing slashes. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1359 | case $ac_val in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1360 | */ ) |
| 1361 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1362 | eval $ac_var=\$ac_val;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1363 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1364 | # Be sure to have absolute directory names. |
| 1365 | case $ac_val in |
| 1366 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1367 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1368 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1369 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1370 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1371 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1372 | # There might be people who depend on the old broken behavior: `$host' |
| 1373 | # used to hold the argument of --host etc. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1374 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1375 | build=$build_alias |
| 1376 | host=$host_alias |
| 1377 | target=$target_alias |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1378 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1379 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1380 | if test "x$host_alias" != x; then |
| 1381 | if test "x$build_alias" = x; then |
| 1382 | cross_compiling=maybe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1383 | elif test "x$build_alias" != "x$host_alias"; then |
| 1384 | cross_compiling=yes |
| 1385 | fi |
| 1386 | fi |
| 1387 | |
| 1388 | ac_tool_prefix= |
| 1389 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1390 | |
| 1391 | test "$silent" = yes && exec 6>/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1392 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1393 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1394 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1395 | ac_ls_di=`ls -di .` && |
| 1396 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1397 | as_fn_error $? "working directory cannot be determined" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1398 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1399 | as_fn_error $? "pwd does not report name of working directory" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1400 | |
| 1401 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1402 | # Find the source files, if location was not specified. |
| 1403 | if test -z "$srcdir"; then |
| 1404 | ac_srcdir_defaulted=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1405 | # Try the directory containing this script, then the parent directory. |
| 1406 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1407 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1408 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1409 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1410 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1411 | $as_echo X"$as_myself" | |
| 1412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1413 | s//\1/ |
| 1414 | q |
| 1415 | } |
| 1416 | /^X\(\/\/\)[^/].*/{ |
| 1417 | s//\1/ |
| 1418 | q |
| 1419 | } |
| 1420 | /^X\(\/\/\)$/{ |
| 1421 | s//\1/ |
| 1422 | q |
| 1423 | } |
| 1424 | /^X\(\/\).*/{ |
| 1425 | s//\1/ |
| 1426 | q |
| 1427 | } |
| 1428 | s/.*/./; q'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1429 | srcdir=$ac_confdir |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1430 | if test ! -r "$srcdir/$ac_unique_file"; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1431 | srcdir=.. |
| 1432 | fi |
| 1433 | else |
| 1434 | ac_srcdir_defaulted=no |
| 1435 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1436 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1437 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1438 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1439 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1440 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1441 | ac_abs_confdir=`( |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1442 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1443 | pwd)` |
| 1444 | # When building in place, set srcdir=. |
| 1445 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1446 | srcdir=. |
| 1447 | fi |
| 1448 | # Remove unnecessary trailing slashes from srcdir. |
| 1449 | # Double slashes in file names in object file debugging info |
| 1450 | # mess up M-x gdb in Emacs. |
| 1451 | case $srcdir in |
| 1452 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1453 | esac |
| 1454 | for ac_var in $ac_precious_vars; do |
| 1455 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1456 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1457 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1458 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1459 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1460 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1461 | # |
| 1462 | # Report the --help message. |
| 1463 | # |
| 1464 | if test "$ac_init_help" = "long"; then |
| 1465 | # Omit some internal or obsolete options to make the list less imposing. |
| 1466 | # This message is too long to be a string in the A/UX 3.1 sh. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1467 | cat <<_ACEOF |
drh | bb777d5 | 2018-06-05 23:51:52 +0000 | [diff] [blame] | 1468 | \`configure' configures sqlite 3.25.0 to adapt to many kinds of systems. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1469 | |
| 1470 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1471 | |
| 1472 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1473 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1474 | |
| 1475 | Defaults for the options are specified in brackets. |
| 1476 | |
| 1477 | Configuration: |
| 1478 | -h, --help display this help and exit |
| 1479 | --help=short display options specific to this package |
| 1480 | --help=recursive display the short help of all the included packages |
| 1481 | -V, --version display version information and exit |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1482 | -q, --quiet, --silent do not print \`checking ...' messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1483 | --cache-file=FILE cache test results in FILE [disabled] |
| 1484 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1485 | -n, --no-create do not create output files |
| 1486 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1487 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1488 | Installation directories: |
| 1489 | --prefix=PREFIX install architecture-independent files in PREFIX |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1490 | [$ac_default_prefix] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1491 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1492 | [PREFIX] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1493 | |
| 1494 | By default, \`make install' will install all the files in |
| 1495 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1496 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1497 | for instance \`--prefix=\$HOME'. |
| 1498 | |
| 1499 | For better control, use the options below. |
| 1500 | |
| 1501 | Fine tuning of the installation directories: |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1502 | --bindir=DIR user executables [EPREFIX/bin] |
| 1503 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1504 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1505 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1506 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1507 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1508 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1509 | --includedir=DIR C header files [PREFIX/include] |
| 1510 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1511 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1512 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1513 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1514 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1515 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1516 | --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] |
| 1517 | --htmldir=DIR html documentation [DOCDIR] |
| 1518 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1519 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1520 | --psdir=DIR ps documentation [DOCDIR] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1521 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1522 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1523 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1524 | |
| 1525 | System types: |
| 1526 | --build=BUILD configure for building on BUILD [guessed] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1527 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1528 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1529 | fi |
| 1530 | |
| 1531 | if test -n "$ac_init_help"; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 1532 | case $ac_init_help in |
drh | bb777d5 | 2018-06-05 23:51:52 +0000 | [diff] [blame] | 1533 | short | recursive ) echo "Configuration of sqlite 3.25.0:";; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 1534 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1535 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1536 | |
| 1537 | Optional Features: |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1538 | --disable-option-checking ignore unrecognized --enable/--with options |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1539 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1540 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1541 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1542 | --enable-static[=PKGS] build static libraries [default=yes] |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1543 | --enable-fast-install[=PKGS] |
| 1544 | optimize for fast installation [default=yes] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1545 | --disable-libtool-lock avoid locking (might break parallel builds) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1546 | --disable-largefile omit support for large files |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 1547 | --disable-threadsafe Disable mutexing |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1548 | --enable-releasemode Support libtool link to release mode |
| 1549 | --enable-tempstore Use an in-ram database for temporary tables |
| 1550 | (never,no,yes,always) |
| 1551 | --disable-tcl do not build TCL extension |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 1552 | --enable-editline enable BSD editline support |
| 1553 | --disable-readline disable readline support |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1554 | --enable-debug enable debugging & verbose explain |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1555 | --disable-amalgamation Disable the amalgamation and instead build all files |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 1556 | separately |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 1557 | --disable-load-extension |
| 1558 | Disable loading of external extensions |
drh | c530b9c | 2016-07-25 11:27:22 +0000 | [diff] [blame] | 1559 | --enable-memsys5 Enable MEMSYS5 |
drh | 5d513ba | 2016-07-25 11:57:21 +0000 | [diff] [blame] | 1560 | --enable-memsys3 Enable MEMSYS3 |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 1561 | --enable-fts3 Enable the FTS3 extension |
| 1562 | --enable-fts4 Enable the FTS4 extension |
| 1563 | --enable-fts5 Enable the FTS5 extension |
| 1564 | --enable-json1 Enable the JSON1 extension |
drh | 83bebdd | 2017-08-28 17:00:12 +0000 | [diff] [blame] | 1565 | --enable-update-limit Enable the UPDATE/DELETE LIMIT clause |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 1566 | --enable-rtree Enable the RTREE extension |
drh | 5e18d40 | 2016-05-03 13:14:18 +0000 | [diff] [blame] | 1567 | --enable-session Enable the SESSION extension |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 1568 | --enable-gcov Enable coverage testing using gcov |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1569 | |
| 1570 | Optional Packages: |
| 1571 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1572 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1573 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1574 | both] |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1575 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1576 | --with-tcl=DIR directory containing tcl configuration |
| 1577 | (tclConfig.sh) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 1578 | --with-readline-lib specify readline library |
| 1579 | --with-readline-inc specify readline include paths |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1580 | |
| 1581 | Some influential environment variables: |
| 1582 | CC C compiler command |
| 1583 | CFLAGS C compiler flags |
| 1584 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1585 | nonstandard directory <lib dir> |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1586 | LIBS libraries to pass to the linker, e.g. -l<library> |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1587 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1588 | you have headers in a nonstandard directory <include dir> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1589 | CPP C preprocessor |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 1590 | TCLLIBDIR Where to install tcl plugin |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1591 | |
| 1592 | Use these variables to override the choices made by `configure' or to help |
| 1593 | it to find libraries and programs with nonstandard names/locations. |
| 1594 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1595 | Report bugs to the package provider. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1596 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1597 | ac_status=$? |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1598 | fi |
| 1599 | |
| 1600 | if test "$ac_init_help" = "recursive"; then |
| 1601 | # If there are subdirs, report their specific --help. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1602 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1603 | test -d "$ac_dir" || |
| 1604 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1605 | continue |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1606 | ac_builddir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1607 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1608 | case "$ac_dir" in |
| 1609 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1610 | *) |
| 1611 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1612 | # A ".." for each directory in $ac_dir_suffix. |
| 1613 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1614 | case $ac_top_builddir_sub in |
| 1615 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1616 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1617 | esac ;; |
| 1618 | esac |
| 1619 | ac_abs_top_builddir=$ac_pwd |
| 1620 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1621 | # for backward compatibility: |
| 1622 | ac_top_builddir=$ac_top_build_prefix |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1623 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1624 | case $srcdir in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1625 | .) # We are building in place. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1626 | ac_srcdir=. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1627 | ac_top_srcdir=$ac_top_builddir_sub |
| 1628 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1629 | [\\/]* | ?:[\\/]* ) # Absolute name. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1630 | ac_srcdir=$srcdir$ac_dir_suffix; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1631 | ac_top_srcdir=$srcdir |
| 1632 | ac_abs_top_srcdir=$srcdir ;; |
| 1633 | *) # Relative name. |
| 1634 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1635 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1636 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1637 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1638 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1639 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1640 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1641 | # Check for guested configure. |
| 1642 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1643 | echo && |
| 1644 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1645 | elif test -f "$ac_srcdir/configure"; then |
| 1646 | echo && |
| 1647 | $SHELL "$ac_srcdir/configure" --help=recursive |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1648 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1649 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1650 | fi || ac_status=$? |
| 1651 | cd "$ac_pwd" || { ac_status=$?; break; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1652 | done |
| 1653 | fi |
| 1654 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1655 | test -n "$ac_init_help" && exit $ac_status |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1656 | if $ac_init_version; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1657 | cat <<\_ACEOF |
drh | bb777d5 | 2018-06-05 23:51:52 +0000 | [diff] [blame] | 1658 | sqlite configure 3.25.0 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1659 | generated by GNU Autoconf 2.69 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1660 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1661 | Copyright (C) 2012 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1662 | This configure script is free software; the Free Software Foundation |
| 1663 | gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1664 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1665 | exit |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1666 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 1667 | |
| 1668 | ## ------------------------ ## |
| 1669 | ## Autoconf initialization. ## |
| 1670 | ## ------------------------ ## |
| 1671 | |
| 1672 | # ac_fn_c_try_compile LINENO |
| 1673 | # -------------------------- |
| 1674 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1675 | ac_fn_c_try_compile () |
| 1676 | { |
| 1677 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1678 | rm -f conftest.$ac_objext |
| 1679 | if { { ac_try="$ac_compile" |
| 1680 | case "(($ac_try" in |
| 1681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1682 | *) ac_try_echo=$ac_try;; |
| 1683 | esac |
| 1684 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1685 | $as_echo "$ac_try_echo"; } >&5 |
| 1686 | (eval "$ac_compile") 2>conftest.err |
| 1687 | ac_status=$? |
| 1688 | if test -s conftest.err; then |
| 1689 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1690 | cat conftest.er1 >&5 |
| 1691 | mv -f conftest.er1 conftest.err |
| 1692 | fi |
| 1693 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1694 | test $ac_status = 0; } && { |
| 1695 | test -z "$ac_c_werror_flag" || |
| 1696 | test ! -s conftest.err |
| 1697 | } && test -s conftest.$ac_objext; then : |
| 1698 | ac_retval=0 |
| 1699 | else |
| 1700 | $as_echo "$as_me: failed program was:" >&5 |
| 1701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1702 | |
| 1703 | ac_retval=1 |
| 1704 | fi |
| 1705 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1706 | as_fn_set_status $ac_retval |
| 1707 | |
| 1708 | } # ac_fn_c_try_compile |
| 1709 | |
| 1710 | # ac_fn_c_try_link LINENO |
| 1711 | # ----------------------- |
| 1712 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1713 | ac_fn_c_try_link () |
| 1714 | { |
| 1715 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1716 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1717 | if { { ac_try="$ac_link" |
| 1718 | case "(($ac_try" in |
| 1719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1720 | *) ac_try_echo=$ac_try;; |
| 1721 | esac |
| 1722 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1723 | $as_echo "$ac_try_echo"; } >&5 |
| 1724 | (eval "$ac_link") 2>conftest.err |
| 1725 | ac_status=$? |
| 1726 | if test -s conftest.err; then |
| 1727 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1728 | cat conftest.er1 >&5 |
| 1729 | mv -f conftest.er1 conftest.err |
| 1730 | fi |
| 1731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1732 | test $ac_status = 0; } && { |
| 1733 | test -z "$ac_c_werror_flag" || |
| 1734 | test ! -s conftest.err |
| 1735 | } && test -s conftest$ac_exeext && { |
| 1736 | test "$cross_compiling" = yes || |
| 1737 | test -x conftest$ac_exeext |
| 1738 | }; then : |
| 1739 | ac_retval=0 |
| 1740 | else |
| 1741 | $as_echo "$as_me: failed program was:" >&5 |
| 1742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1743 | |
| 1744 | ac_retval=1 |
| 1745 | fi |
| 1746 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1747 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1748 | # interfere with the next link command; also delete a directory that is |
| 1749 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1750 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1751 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1752 | as_fn_set_status $ac_retval |
| 1753 | |
| 1754 | } # ac_fn_c_try_link |
| 1755 | |
| 1756 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1757 | # ------------------------------------------------------- |
| 1758 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1759 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1760 | ac_fn_c_check_header_compile () |
| 1761 | { |
| 1762 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1764 | $as_echo_n "checking for $2... " >&6; } |
| 1765 | if eval \${$3+:} false; then : |
| 1766 | $as_echo_n "(cached) " >&6 |
| 1767 | else |
| 1768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1769 | /* end confdefs.h. */ |
| 1770 | $4 |
| 1771 | #include <$2> |
| 1772 | _ACEOF |
| 1773 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1774 | eval "$3=yes" |
| 1775 | else |
| 1776 | eval "$3=no" |
| 1777 | fi |
| 1778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1779 | fi |
| 1780 | eval ac_res=\$$3 |
| 1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1782 | $as_echo "$ac_res" >&6; } |
| 1783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1784 | |
| 1785 | } # ac_fn_c_check_header_compile |
| 1786 | |
| 1787 | # ac_fn_c_try_cpp LINENO |
| 1788 | # ---------------------- |
| 1789 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1790 | ac_fn_c_try_cpp () |
| 1791 | { |
| 1792 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1793 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1794 | case "(($ac_try" in |
| 1795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1796 | *) ac_try_echo=$ac_try;; |
| 1797 | esac |
| 1798 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1799 | $as_echo "$ac_try_echo"; } >&5 |
| 1800 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1801 | ac_status=$? |
| 1802 | if test -s conftest.err; then |
| 1803 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1804 | cat conftest.er1 >&5 |
| 1805 | mv -f conftest.er1 conftest.err |
| 1806 | fi |
| 1807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1808 | test $ac_status = 0; } > conftest.i && { |
| 1809 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1810 | test ! -s conftest.err |
| 1811 | }; then : |
| 1812 | ac_retval=0 |
| 1813 | else |
| 1814 | $as_echo "$as_me: failed program was:" >&5 |
| 1815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1816 | |
| 1817 | ac_retval=1 |
| 1818 | fi |
| 1819 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1820 | as_fn_set_status $ac_retval |
| 1821 | |
| 1822 | } # ac_fn_c_try_cpp |
| 1823 | |
| 1824 | # ac_fn_c_try_run LINENO |
| 1825 | # ---------------------- |
| 1826 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1827 | # that executables *can* be run. |
| 1828 | ac_fn_c_try_run () |
| 1829 | { |
| 1830 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1831 | if { { ac_try="$ac_link" |
| 1832 | case "(($ac_try" in |
| 1833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1834 | *) ac_try_echo=$ac_try;; |
| 1835 | esac |
| 1836 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1837 | $as_echo "$ac_try_echo"; } >&5 |
| 1838 | (eval "$ac_link") 2>&5 |
| 1839 | ac_status=$? |
| 1840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1841 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1842 | { { case "(($ac_try" in |
| 1843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1844 | *) ac_try_echo=$ac_try;; |
| 1845 | esac |
| 1846 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1847 | $as_echo "$ac_try_echo"; } >&5 |
| 1848 | (eval "$ac_try") 2>&5 |
| 1849 | ac_status=$? |
| 1850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1851 | test $ac_status = 0; }; }; then : |
| 1852 | ac_retval=0 |
| 1853 | else |
| 1854 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1855 | $as_echo "$as_me: failed program was:" >&5 |
| 1856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1857 | |
| 1858 | ac_retval=$ac_status |
| 1859 | fi |
| 1860 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1861 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1862 | as_fn_set_status $ac_retval |
| 1863 | |
| 1864 | } # ac_fn_c_try_run |
| 1865 | |
| 1866 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1867 | # ---------------------------------- |
| 1868 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1869 | ac_fn_c_check_func () |
| 1870 | { |
| 1871 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1873 | $as_echo_n "checking for $2... " >&6; } |
| 1874 | if eval \${$3+:} false; then : |
| 1875 | $as_echo_n "(cached) " >&6 |
| 1876 | else |
| 1877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1878 | /* end confdefs.h. */ |
| 1879 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1880 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1881 | #define $2 innocuous_$2 |
| 1882 | |
| 1883 | /* System header to define __stub macros and hopefully few prototypes, |
| 1884 | which can conflict with char $2 (); below. |
| 1885 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1886 | <limits.h> exists even on freestanding compilers. */ |
| 1887 | |
| 1888 | #ifdef __STDC__ |
| 1889 | # include <limits.h> |
| 1890 | #else |
| 1891 | # include <assert.h> |
| 1892 | #endif |
| 1893 | |
| 1894 | #undef $2 |
| 1895 | |
| 1896 | /* Override any GCC internal prototype to avoid an error. |
| 1897 | Use char because int might match the return type of a GCC |
| 1898 | builtin and then its argument prototype would still apply. */ |
| 1899 | #ifdef __cplusplus |
| 1900 | extern "C" |
| 1901 | #endif |
| 1902 | char $2 (); |
| 1903 | /* The GNU C library defines this for functions which it implements |
| 1904 | to always fail with ENOSYS. Some functions are actually named |
| 1905 | something starting with __ and the normal name is an alias. */ |
| 1906 | #if defined __stub_$2 || defined __stub___$2 |
| 1907 | choke me |
| 1908 | #endif |
| 1909 | |
| 1910 | int |
| 1911 | main () |
| 1912 | { |
| 1913 | return $2 (); |
| 1914 | ; |
| 1915 | return 0; |
| 1916 | } |
| 1917 | _ACEOF |
| 1918 | if ac_fn_c_try_link "$LINENO"; then : |
| 1919 | eval "$3=yes" |
| 1920 | else |
| 1921 | eval "$3=no" |
| 1922 | fi |
| 1923 | rm -f core conftest.err conftest.$ac_objext \ |
| 1924 | conftest$ac_exeext conftest.$ac_ext |
| 1925 | fi |
| 1926 | eval ac_res=\$$3 |
| 1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1928 | $as_echo "$ac_res" >&6; } |
| 1929 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1930 | |
| 1931 | } # ac_fn_c_check_func |
| 1932 | |
| 1933 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1934 | # ------------------------------------------- |
| 1935 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1936 | # variable VAR accordingly. |
| 1937 | ac_fn_c_check_type () |
| 1938 | { |
| 1939 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1941 | $as_echo_n "checking for $2... " >&6; } |
| 1942 | if eval \${$3+:} false; then : |
| 1943 | $as_echo_n "(cached) " >&6 |
| 1944 | else |
| 1945 | eval "$3=no" |
| 1946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1947 | /* end confdefs.h. */ |
| 1948 | $4 |
| 1949 | int |
| 1950 | main () |
| 1951 | { |
| 1952 | if (sizeof ($2)) |
| 1953 | return 0; |
| 1954 | ; |
| 1955 | return 0; |
| 1956 | } |
| 1957 | _ACEOF |
| 1958 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1960 | /* end confdefs.h. */ |
| 1961 | $4 |
| 1962 | int |
| 1963 | main () |
| 1964 | { |
| 1965 | if (sizeof (($2))) |
| 1966 | return 0; |
| 1967 | ; |
| 1968 | return 0; |
| 1969 | } |
| 1970 | _ACEOF |
| 1971 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1972 | |
| 1973 | else |
| 1974 | eval "$3=yes" |
| 1975 | fi |
| 1976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1977 | fi |
| 1978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1979 | fi |
| 1980 | eval ac_res=\$$3 |
| 1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1982 | $as_echo "$ac_res" >&6; } |
| 1983 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1984 | |
| 1985 | } # ac_fn_c_check_type |
| 1986 | |
| 1987 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1988 | # ------------------------------------------------------- |
| 1989 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1990 | # the include files in INCLUDES and setting the cache variable VAR |
| 1991 | # accordingly. |
| 1992 | ac_fn_c_check_header_mongrel () |
| 1993 | { |
| 1994 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1995 | if eval \${$3+:} false; then : |
| 1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1997 | $as_echo_n "checking for $2... " >&6; } |
| 1998 | if eval \${$3+:} false; then : |
| 1999 | $as_echo_n "(cached) " >&6 |
| 2000 | fi |
| 2001 | eval ac_res=\$$3 |
| 2002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2003 | $as_echo "$ac_res" >&6; } |
| 2004 | else |
| 2005 | # Is the header compilable? |
| 2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2007 | $as_echo_n "checking $2 usability... " >&6; } |
| 2008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2009 | /* end confdefs.h. */ |
| 2010 | $4 |
| 2011 | #include <$2> |
| 2012 | _ACEOF |
| 2013 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2014 | ac_header_compiler=yes |
| 2015 | else |
| 2016 | ac_header_compiler=no |
| 2017 | fi |
| 2018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2020 | $as_echo "$ac_header_compiler" >&6; } |
| 2021 | |
| 2022 | # Is the header present? |
| 2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2024 | $as_echo_n "checking $2 presence... " >&6; } |
| 2025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2026 | /* end confdefs.h. */ |
| 2027 | #include <$2> |
| 2028 | _ACEOF |
| 2029 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2030 | ac_header_preproc=yes |
| 2031 | else |
| 2032 | ac_header_preproc=no |
| 2033 | fi |
| 2034 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 2035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2036 | $as_echo "$ac_header_preproc" >&6; } |
| 2037 | |
| 2038 | # So? What about this header? |
| 2039 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2040 | yes:no: ) |
| 2041 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2042 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2043 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2044 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2045 | ;; |
| 2046 | no:yes:* ) |
| 2047 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2048 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2049 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2050 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2052 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2054 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2055 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2056 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2057 | ;; |
| 2058 | esac |
| 2059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2060 | $as_echo_n "checking for $2... " >&6; } |
| 2061 | if eval \${$3+:} false; then : |
| 2062 | $as_echo_n "(cached) " >&6 |
| 2063 | else |
| 2064 | eval "$3=\$ac_header_compiler" |
| 2065 | fi |
| 2066 | eval ac_res=\$$3 |
| 2067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2068 | $as_echo "$ac_res" >&6; } |
| 2069 | fi |
| 2070 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2071 | |
| 2072 | } # ac_fn_c_check_header_mongrel |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2073 | cat >config.log <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2074 | This file contains any messages produced by compilers while |
| 2075 | running configure, to aid debugging if configure makes a mistake. |
| 2076 | |
drh | bb777d5 | 2018-06-05 23:51:52 +0000 | [diff] [blame] | 2077 | It was created by sqlite $as_me 3.25.0, which was |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2078 | generated by GNU Autoconf 2.69. Invocation command line was |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2079 | |
| 2080 | $ $0 $@ |
| 2081 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2082 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2083 | exec 5>>config.log |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2084 | { |
| 2085 | cat <<_ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2086 | ## --------- ## |
| 2087 | ## Platform. ## |
| 2088 | ## --------- ## |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2089 | |
| 2090 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2091 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2092 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2093 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2094 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2095 | |
| 2096 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2097 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2098 | |
| 2099 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2100 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2101 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2102 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2103 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2104 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2105 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2106 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2107 | _ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2108 | |
| 2109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2110 | for as_dir in $PATH |
| 2111 | do |
| 2112 | IFS=$as_save_IFS |
| 2113 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2114 | $as_echo "PATH: $as_dir" |
| 2115 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2116 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2117 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2118 | } >&5 |
| 2119 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2120 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2121 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2122 | |
| 2123 | ## ----------- ## |
| 2124 | ## Core tests. ## |
| 2125 | ## ----------- ## |
| 2126 | |
| 2127 | _ACEOF |
| 2128 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2129 | |
| 2130 | # Keep a trace of the command line. |
| 2131 | # Strip out --no-create and --no-recursion so they do not pile up. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2132 | # Strip out --silent because we don't want to record it for future runs. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2133 | # Also quote any args containing shell meta-characters. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2134 | # Make two passes to allow for proper duplicate-argument suppression. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2135 | ac_configure_args= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2136 | ac_configure_args0= |
| 2137 | ac_configure_args1= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2138 | ac_must_keep_next=false |
| 2139 | for ac_pass in 1 2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2140 | do |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2141 | for ac_arg |
| 2142 | do |
| 2143 | case $ac_arg in |
| 2144 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2145 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2146 | | -silent | --silent | --silen | --sile | --sil) |
| 2147 | continue ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2148 | *\'*) |
| 2149 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2150 | esac |
| 2151 | case $ac_pass in |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2152 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2153 | 2) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2154 | as_fn_append ac_configure_args1 " '$ac_arg'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2155 | if test $ac_must_keep_next = true; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2156 | ac_must_keep_next=false # Got value, back to normal. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2157 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2158 | case $ac_arg in |
| 2159 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2160 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2161 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2162 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2163 | case "$ac_configure_args0 " in |
| 2164 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2165 | esac |
| 2166 | ;; |
| 2167 | -* ) ac_must_keep_next=true ;; |
| 2168 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2169 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2170 | as_fn_append ac_configure_args " '$ac_arg'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2171 | ;; |
| 2172 | esac |
| 2173 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2174 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2175 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2176 | { ac_configure_args1=; unset ac_configure_args1;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2177 | |
| 2178 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2179 | # config.log. We remove comments because anyway the quotes in there |
| 2180 | # would cause problems or look ugly. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2181 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2182 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2183 | trap 'exit_status=$? |
| 2184 | # Save into config.log some information that might help in debugging. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2185 | { |
| 2186 | echo |
| 2187 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2188 | $as_echo "## ---------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2189 | ## Cache variables. ## |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2190 | ## ---------------- ##" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2191 | echo |
| 2192 | # The following way of writing the cache mishandles newlines in values, |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2193 | ( |
| 2194 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2195 | eval ac_val=\$$ac_var |
| 2196 | case $ac_val in #( |
| 2197 | *${as_nl}*) |
| 2198 | case $ac_var in #( |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2199 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2200 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2201 | esac |
| 2202 | case $ac_var in #( |
| 2203 | _ | IFS | as_nl) ;; #( |
| 2204 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2205 | *) { eval $ac_var=; unset $ac_var;} ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2206 | esac ;; |
| 2207 | esac |
| 2208 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2209 | (set) 2>&1 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2210 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2211 | *${as_nl}ac_space=\ *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2212 | sed -n \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2213 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2214 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2215 | ;; #( |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2216 | *) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2217 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2218 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2219 | esac | |
| 2220 | sort |
| 2221 | ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2222 | echo |
| 2223 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2224 | $as_echo "## ----------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2225 | ## Output variables. ## |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2226 | ## ----------------- ##" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2227 | echo |
| 2228 | for ac_var in $ac_subst_vars |
| 2229 | do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2230 | eval ac_val=\$$ac_var |
| 2231 | case $ac_val in |
| 2232 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2233 | esac |
| 2234 | $as_echo "$ac_var='\''$ac_val'\''" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2235 | done | sort |
| 2236 | echo |
| 2237 | |
| 2238 | if test -n "$ac_subst_files"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2239 | $as_echo "## ------------------- ## |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2240 | ## File substitutions. ## |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2241 | ## ------------------- ##" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2242 | echo |
| 2243 | for ac_var in $ac_subst_files |
| 2244 | do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2245 | eval ac_val=\$$ac_var |
| 2246 | case $ac_val in |
| 2247 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2248 | esac |
| 2249 | $as_echo "$ac_var='\''$ac_val'\''" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2250 | done | sort |
| 2251 | echo |
| 2252 | fi |
| 2253 | |
| 2254 | if test -s confdefs.h; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2255 | $as_echo "## ----------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2256 | ## confdefs.h. ## |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2257 | ## ----------- ##" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2258 | echo |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2259 | cat confdefs.h |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2260 | echo |
| 2261 | fi |
| 2262 | test "$ac_signal" != 0 && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2263 | $as_echo "$as_me: caught signal $ac_signal" |
| 2264 | $as_echo "$as_me: exit $exit_status" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2265 | } >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2266 | rm -f core *.core core.conftest.* && |
| 2267 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2268 | exit $exit_status |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2269 | ' 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2270 | for ac_signal in 1 2 13 15; do |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2271 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2272 | done |
| 2273 | ac_signal=0 |
| 2274 | |
| 2275 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2276 | rm -f -r conftest* confdefs.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2277 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2278 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2279 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2280 | # Predefined preprocessor variables. |
| 2281 | |
| 2282 | cat >>confdefs.h <<_ACEOF |
| 2283 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2284 | _ACEOF |
| 2285 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2286 | cat >>confdefs.h <<_ACEOF |
| 2287 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2288 | _ACEOF |
| 2289 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2290 | cat >>confdefs.h <<_ACEOF |
| 2291 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2292 | _ACEOF |
| 2293 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2294 | cat >>confdefs.h <<_ACEOF |
| 2295 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2296 | _ACEOF |
| 2297 | |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 2298 | cat >>confdefs.h <<_ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2299 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 2300 | _ACEOF |
| 2301 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2302 | cat >>confdefs.h <<_ACEOF |
| 2303 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2304 | _ACEOF |
| 2305 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2306 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2307 | # Let the site file select an alternate cache file if it wants to. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2308 | # Prefer an explicitly selected file to automatically selected ones. |
| 2309 | ac_site_file1=NONE |
| 2310 | ac_site_file2=NONE |
| 2311 | if test -n "$CONFIG_SITE"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2312 | # We do not want a PATH search for config.site. |
| 2313 | case $CONFIG_SITE in #(( |
| 2314 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2315 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2316 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2317 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2318 | elif test "x$prefix" != xNONE; then |
| 2319 | ac_site_file1=$prefix/share/config.site |
| 2320 | ac_site_file2=$prefix/etc/config.site |
| 2321 | else |
| 2322 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2323 | ac_site_file2=$ac_default_prefix/etc/config.site |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2324 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2325 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2326 | do |
| 2327 | test "x$ac_site_file" = xNONE && continue |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2328 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2330 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2331 | sed 's/^/| /' "$ac_site_file" >&5 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2332 | . "$ac_site_file" \ |
| 2333 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2334 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2335 | as_fn_error $? "failed to load site script $ac_site_file |
| 2336 | See \`config.log' for more details" "$LINENO" 5; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2337 | fi |
| 2338 | done |
| 2339 | |
| 2340 | if test -r "$cache_file"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2341 | # Some versions of bash will fail to source /dev/null (special files |
| 2342 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2343 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2345 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2346 | case $cache_file in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2347 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2348 | *) . "./$cache_file";; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2349 | esac |
| 2350 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2351 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2353 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2354 | >$cache_file |
| 2355 | fi |
| 2356 | |
| 2357 | # Check that the precious variables saved in the cache have kept the same |
| 2358 | # value. |
| 2359 | ac_cache_corrupted=false |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2360 | for ac_var in $ac_precious_vars; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2361 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2362 | eval ac_new_set=\$ac_env_${ac_var}_set |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2363 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2364 | eval ac_new_val=\$ac_env_${ac_var}_value |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2365 | case $ac_old_set,$ac_new_set in |
| 2366 | set,) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2368 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2369 | ac_cache_corrupted=: ;; |
| 2370 | ,set) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2372 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2373 | ac_cache_corrupted=: ;; |
| 2374 | ,);; |
| 2375 | *) |
| 2376 | if test "x$ac_old_val" != "x$ac_new_val"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2377 | # differences in whitespace do not lead to failure. |
| 2378 | ac_old_val_w=`echo x $ac_old_val` |
| 2379 | ac_new_val_w=`echo x $ac_new_val` |
| 2380 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2382 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2383 | ac_cache_corrupted=: |
| 2384 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2386 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2387 | eval $ac_var=\$ac_old_val |
| 2388 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2389 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2390 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2392 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2393 | fi;; |
| 2394 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2395 | # Pass precious variables to config.status. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2396 | if test "$ac_new_set" = set; then |
| 2397 | case $ac_new_val in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2398 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2399 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2400 | esac |
| 2401 | case " $ac_configure_args " in |
| 2402 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2403 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2404 | esac |
| 2405 | fi |
| 2406 | done |
| 2407 | if $ac_cache_corrupted; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2409 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2411 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2412 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2413 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2414 | ## -------------------- ## |
| 2415 | ## Main body of script. ## |
| 2416 | ## -------------------- ## |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2417 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2418 | ac_ext=c |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2419 | ac_cpp='$CPP $CPPFLAGS' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2423 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2424 | |
| 2425 | |
drh | 0444610 | 2009-06-15 00:04:06 +0000 | [diff] [blame] | 2426 | sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'` |
vapier | faa68db | 2009-04-01 07:38:31 +0000 | [diff] [blame] | 2427 | if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2428 | as_fn_error $? "configure script is out of date: |
vapier | faa68db | 2009-04-01 07:38:31 +0000 | [diff] [blame] | 2429 | configure \$PACKAGE_VERSION = $PACKAGE_VERSION |
| 2430 | top level VERSION file = $sqlite_version_sanity_check |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2431 | please regen with autoconf" "$LINENO" 5 |
vapier | faa68db | 2009-04-01 07:38:31 +0000 | [diff] [blame] | 2432 | fi |
| 2433 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2434 | ######### |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2435 | # Programs needed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2436 | # |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2437 | case `pwd` in |
| 2438 | *\ * | *\ *) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2440 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2441 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2442 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2443 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2444 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 2445 | macro_version='2.2.6' |
| 2446 | macro_revision='1.3012' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2447 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2448 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2449 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2450 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2451 | |
| 2452 | |
| 2453 | |
| 2454 | |
| 2455 | |
| 2456 | |
| 2457 | |
| 2458 | |
| 2459 | |
| 2460 | ltmain="$ac_aux_dir/ltmain.sh" |
| 2461 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2462 | ac_aux_dir= |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2463 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
drh | 0fe0c46 | 2011-09-22 00:56:38 +0000 | [diff] [blame] | 2464 | if test -f "$ac_dir/install-sh"; then |
| 2465 | ac_aux_dir=$ac_dir |
| 2466 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2467 | break |
| 2468 | elif test -f "$ac_dir/install.sh"; then |
| 2469 | ac_aux_dir=$ac_dir |
| 2470 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2471 | break |
| 2472 | elif test -f "$ac_dir/shtool"; then |
| 2473 | ac_aux_dir=$ac_dir |
| 2474 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2475 | break |
| 2476 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2477 | done |
| 2478 | if test -z "$ac_aux_dir"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2479 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2480 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2481 | |
| 2482 | # These three variables are undocumented and unsupported, |
| 2483 | # and are intended to be withdrawn in a future Autoconf release. |
| 2484 | # They can cause serious problems if a builder's source tree is in a directory |
| 2485 | # whose full name contains unusual characters. |
| 2486 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2487 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2488 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2489 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2490 | |
| 2491 | # Make sure we can run config.sub. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2492 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2493 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2494 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2496 | $as_echo_n "checking build system type... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2497 | if ${ac_cv_build+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2498 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2499 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2500 | ac_build_alias=$build_alias |
| 2501 | test "x$ac_build_alias" = x && |
| 2502 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2503 | test "x$ac_build_alias" = x && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2504 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2505 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2506 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2507 | |
| 2508 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2510 | $as_echo "$ac_cv_build" >&6; } |
| 2511 | case $ac_cv_build in |
| 2512 | *-*-*) ;; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2513 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2514 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2515 | build=$ac_cv_build |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2516 | ac_save_IFS=$IFS; IFS='-' |
| 2517 | set x $ac_cv_build |
| 2518 | shift |
| 2519 | build_cpu=$1 |
| 2520 | build_vendor=$2 |
| 2521 | shift; shift |
| 2522 | # Remember, the first character of IFS is used to create $*, |
| 2523 | # except with old shells: |
| 2524 | build_os=$* |
| 2525 | IFS=$ac_save_IFS |
| 2526 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2527 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2528 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2530 | $as_echo_n "checking host system type... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2531 | if ${ac_cv_host+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2532 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2533 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2534 | if test "x$host_alias" = x; then |
| 2535 | ac_cv_host=$ac_cv_build |
| 2536 | else |
| 2537 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2538 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2539 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2540 | |
| 2541 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2543 | $as_echo "$ac_cv_host" >&6; } |
| 2544 | case $ac_cv_host in |
| 2545 | *-*-*) ;; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2546 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2547 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2548 | host=$ac_cv_host |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2549 | ac_save_IFS=$IFS; IFS='-' |
| 2550 | set x $ac_cv_host |
| 2551 | shift |
| 2552 | host_cpu=$1 |
| 2553 | host_vendor=$2 |
| 2554 | shift; shift |
| 2555 | # Remember, the first character of IFS is used to create $*, |
| 2556 | # except with old shells: |
| 2557 | host_os=$* |
| 2558 | IFS=$ac_save_IFS |
| 2559 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2560 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2561 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2562 | ac_ext=c |
| 2563 | ac_cpp='$CPP $CPPFLAGS' |
| 2564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2567 | if test -n "$ac_tool_prefix"; then |
| 2568 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2569 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2571 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2572 | if ${ac_cv_prog_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2573 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2574 | else |
| 2575 | if test -n "$CC"; then |
| 2576 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2577 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2579 | for as_dir in $PATH |
| 2580 | do |
| 2581 | IFS=$as_save_IFS |
| 2582 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2583 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2584 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2585 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2587 | break 2 |
| 2588 | fi |
| 2589 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2590 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2591 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2592 | |
| 2593 | fi |
| 2594 | fi |
| 2595 | CC=$ac_cv_prog_CC |
| 2596 | if test -n "$CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2598 | $as_echo "$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2599 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2601 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2602 | fi |
| 2603 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2604 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2605 | fi |
| 2606 | if test -z "$ac_cv_prog_CC"; then |
| 2607 | ac_ct_CC=$CC |
| 2608 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2609 | set dummy gcc; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2611 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2612 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2613 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2614 | else |
| 2615 | if test -n "$ac_ct_CC"; then |
| 2616 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2617 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2619 | for as_dir in $PATH |
| 2620 | do |
| 2621 | IFS=$as_save_IFS |
| 2622 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2623 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2624 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2625 | ac_cv_prog_ac_ct_CC="gcc" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2627 | break 2 |
| 2628 | fi |
| 2629 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2630 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2631 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2632 | |
| 2633 | fi |
| 2634 | fi |
| 2635 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2636 | if test -n "$ac_ct_CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2638 | $as_echo "$ac_ct_CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2639 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2641 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2642 | fi |
| 2643 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2644 | if test "x$ac_ct_CC" = x; then |
| 2645 | CC="" |
| 2646 | else |
| 2647 | case $cross_compiling:$ac_tool_warned in |
| 2648 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2650 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2651 | ac_tool_warned=yes ;; |
| 2652 | esac |
| 2653 | CC=$ac_ct_CC |
| 2654 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2655 | else |
| 2656 | CC="$ac_cv_prog_CC" |
| 2657 | fi |
| 2658 | |
| 2659 | if test -z "$CC"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2660 | if test -n "$ac_tool_prefix"; then |
| 2661 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2662 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2664 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2665 | if ${ac_cv_prog_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2666 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2667 | else |
| 2668 | if test -n "$CC"; then |
| 2669 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2670 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2672 | for as_dir in $PATH |
| 2673 | do |
| 2674 | IFS=$as_save_IFS |
| 2675 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2676 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2677 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2678 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2680 | break 2 |
| 2681 | fi |
| 2682 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2683 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2684 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2685 | |
| 2686 | fi |
| 2687 | fi |
| 2688 | CC=$ac_cv_prog_CC |
| 2689 | if test -n "$CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2691 | $as_echo "$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2692 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2694 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2695 | fi |
| 2696 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2697 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2698 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2699 | fi |
| 2700 | if test -z "$CC"; then |
| 2701 | # Extract the first word of "cc", so it can be a program name with args. |
| 2702 | set dummy cc; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2704 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2705 | if ${ac_cv_prog_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2706 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2707 | else |
| 2708 | if test -n "$CC"; then |
| 2709 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2710 | else |
| 2711 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2713 | for as_dir in $PATH |
| 2714 | do |
| 2715 | IFS=$as_save_IFS |
| 2716 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2717 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2718 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2719 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2720 | ac_prog_rejected=yes |
| 2721 | continue |
| 2722 | fi |
| 2723 | ac_cv_prog_CC="cc" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2725 | break 2 |
| 2726 | fi |
| 2727 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2728 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2729 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2730 | |
| 2731 | if test $ac_prog_rejected = yes; then |
| 2732 | # We found a bogon in the path, so make sure we never use it. |
| 2733 | set dummy $ac_cv_prog_CC |
| 2734 | shift |
| 2735 | if test $# != 0; then |
| 2736 | # We chose a different compiler from the bogus one. |
| 2737 | # However, it has the same basename, so the bogon will be chosen |
| 2738 | # first if we set CC to just the basename; use the full file name. |
| 2739 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2740 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2741 | fi |
| 2742 | fi |
| 2743 | fi |
| 2744 | fi |
| 2745 | CC=$ac_cv_prog_CC |
| 2746 | if test -n "$CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2748 | $as_echo "$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2749 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2751 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2752 | fi |
| 2753 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2754 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2755 | fi |
| 2756 | if test -z "$CC"; then |
| 2757 | if test -n "$ac_tool_prefix"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2758 | for ac_prog in cl.exe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2759 | do |
| 2760 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2761 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2763 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2764 | if ${ac_cv_prog_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2765 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2766 | else |
| 2767 | if test -n "$CC"; then |
| 2768 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2769 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2771 | for as_dir in $PATH |
| 2772 | do |
| 2773 | IFS=$as_save_IFS |
| 2774 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2775 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2776 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2777 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2779 | break 2 |
| 2780 | fi |
| 2781 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2782 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2783 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2784 | |
| 2785 | fi |
| 2786 | fi |
| 2787 | CC=$ac_cv_prog_CC |
| 2788 | if test -n "$CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2790 | $as_echo "$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2791 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2793 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2794 | fi |
| 2795 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2796 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2797 | test -n "$CC" && break |
| 2798 | done |
| 2799 | fi |
| 2800 | if test -z "$CC"; then |
| 2801 | ac_ct_CC=$CC |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2802 | for ac_prog in cl.exe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2803 | do |
| 2804 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2805 | set dummy $ac_prog; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2807 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2808 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2809 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2810 | else |
| 2811 | if test -n "$ac_ct_CC"; then |
| 2812 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2813 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2815 | for as_dir in $PATH |
| 2816 | do |
| 2817 | IFS=$as_save_IFS |
| 2818 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2819 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2820 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2821 | ac_cv_prog_ac_ct_CC="$ac_prog" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2823 | break 2 |
| 2824 | fi |
| 2825 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2826 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2827 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2828 | |
| 2829 | fi |
| 2830 | fi |
| 2831 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2832 | if test -n "$ac_ct_CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2834 | $as_echo "$ac_ct_CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2835 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2837 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2838 | fi |
| 2839 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2840 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2841 | test -n "$ac_ct_CC" && break |
| 2842 | done |
| 2843 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2844 | if test "x$ac_ct_CC" = x; then |
| 2845 | CC="" |
| 2846 | else |
| 2847 | case $cross_compiling:$ac_tool_warned in |
| 2848 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2850 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2851 | ac_tool_warned=yes ;; |
| 2852 | esac |
| 2853 | CC=$ac_ct_CC |
| 2854 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2855 | fi |
| 2856 | |
| 2857 | fi |
| 2858 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2859 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2860 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2861 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2862 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2863 | See \`config.log' for more details" "$LINENO" 5; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2864 | |
| 2865 | # Provide some information about the compiler. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2866 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2867 | set X $ac_compile |
| 2868 | ac_compiler=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2869 | for ac_option in --version -v -V -qversion; do |
| 2870 | { { ac_try="$ac_compiler $ac_option >&5" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2871 | case "(($ac_try" in |
| 2872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2873 | *) ac_try_echo=$ac_try;; |
| 2874 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2875 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2876 | $as_echo "$ac_try_echo"; } >&5 |
| 2877 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2878 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2879 | if test -s conftest.err; then |
| 2880 | sed '10a\ |
| 2881 | ... rest of stderr output deleted ... |
| 2882 | 10q' conftest.err >conftest.er1 |
| 2883 | cat conftest.er1 >&5 |
| 2884 | fi |
| 2885 | rm -f conftest.er1 conftest.err |
| 2886 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2887 | test $ac_status = 0; } |
| 2888 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2889 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2891 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2892 | |
| 2893 | int |
| 2894 | main () |
| 2895 | { |
| 2896 | |
| 2897 | ; |
| 2898 | return 0; |
| 2899 | } |
| 2900 | _ACEOF |
| 2901 | ac_clean_files_save=$ac_clean_files |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2902 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2903 | # Try to create an executable without -o first, disregard a.out. |
| 2904 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2905 | # of exeext. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2907 | $as_echo_n "checking whether the C compiler works... " >&6; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2908 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2909 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2910 | # The possible output files: |
| 2911 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2912 | |
| 2913 | ac_rmfiles= |
| 2914 | for ac_file in $ac_files |
| 2915 | do |
| 2916 | case $ac_file in |
| 2917 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2918 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2919 | esac |
| 2920 | done |
| 2921 | rm -f $ac_rmfiles |
| 2922 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2923 | if { { ac_try="$ac_link_default" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2924 | case "(($ac_try" in |
| 2925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2926 | *) ac_try_echo=$ac_try;; |
| 2927 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2928 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2929 | $as_echo "$ac_try_echo"; } >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2930 | (eval "$ac_link_default") 2>&5 |
| 2931 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2932 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2933 | test $ac_status = 0; }; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2934 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2935 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2936 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2937 | # so that the user can short-circuit this test for compilers unknown to |
| 2938 | # Autoconf. |
| 2939 | for ac_file in $ac_files '' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2940 | do |
| 2941 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2942 | case $ac_file in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2943 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2944 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2945 | [ab].out ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2946 | # We found the default executable, but exeext='' is most |
| 2947 | # certainly right. |
| 2948 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2949 | *.* ) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2950 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2951 | then :; else |
| 2952 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2953 | fi |
| 2954 | # We set ac_cv_exeext here because the later test for it is not |
| 2955 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2956 | # argument, so we may need to know it at that point already. |
| 2957 | # Even if this section looks crufty: it has the advantage of |
| 2958 | # actually working. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2959 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2960 | * ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2961 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2962 | esac |
| 2963 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2964 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2965 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2966 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2967 | ac_file='' |
| 2968 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2969 | if test -z "$ac_file"; then : |
| 2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2971 | $as_echo "no" >&6; } |
| 2972 | $as_echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2974 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2975 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2976 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2977 | as_fn_error 77 "C compiler cannot create executables |
| 2978 | See \`config.log' for more details" "$LINENO" 5; } |
| 2979 | else |
| 2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2981 | $as_echo "yes" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2982 | fi |
| 2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2984 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2986 | $as_echo "$ac_file" >&6; } |
| 2987 | ac_exeext=$ac_cv_exeext |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2988 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2989 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2990 | ac_clean_files=$ac_clean_files_save |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2992 | $as_echo_n "checking for suffix of executables... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2993 | if { { ac_try="$ac_link" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2994 | case "(($ac_try" in |
| 2995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2996 | *) ac_try_echo=$ac_try;; |
| 2997 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 2998 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2999 | $as_echo "$ac_try_echo"; } >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3000 | (eval "$ac_link") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3001 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3003 | test $ac_status = 0; }; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3004 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3005 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3006 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3007 | # `rm'. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3008 | for ac_file in conftest.exe conftest conftest.*; do |
| 3009 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3010 | case $ac_file in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3011 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3012 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3013 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3014 | * ) break;; |
| 3015 | esac |
| 3016 | done |
| 3017 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3018 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3019 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3020 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3021 | See \`config.log' for more details" "$LINENO" 5; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3022 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3023 | rm -f conftest conftest$ac_cv_exeext |
| 3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3025 | $as_echo "$ac_cv_exeext" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3026 | |
| 3027 | rm -f conftest.$ac_ext |
| 3028 | EXEEXT=$ac_cv_exeext |
| 3029 | ac_exeext=$EXEEXT |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3031 | /* end confdefs.h. */ |
| 3032 | #include <stdio.h> |
| 3033 | int |
| 3034 | main () |
| 3035 | { |
| 3036 | FILE *f = fopen ("conftest.out", "w"); |
| 3037 | return ferror (f) || fclose (f) != 0; |
| 3038 | |
| 3039 | ; |
| 3040 | return 0; |
| 3041 | } |
| 3042 | _ACEOF |
| 3043 | ac_clean_files="$ac_clean_files conftest.out" |
| 3044 | # Check that the compiler produces executables we can run. If not, either |
| 3045 | # the compiler is broken, or we cross compile. |
| 3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3047 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3048 | if test "$cross_compiling" != yes; then |
| 3049 | { { ac_try="$ac_link" |
| 3050 | case "(($ac_try" in |
| 3051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3052 | *) ac_try_echo=$ac_try;; |
| 3053 | esac |
| 3054 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3055 | $as_echo "$ac_try_echo"; } >&5 |
| 3056 | (eval "$ac_link") 2>&5 |
| 3057 | ac_status=$? |
| 3058 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3059 | test $ac_status = 0; } |
| 3060 | if { ac_try='./conftest$ac_cv_exeext' |
| 3061 | { { case "(($ac_try" in |
| 3062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3063 | *) ac_try_echo=$ac_try;; |
| 3064 | esac |
| 3065 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3066 | $as_echo "$ac_try_echo"; } >&5 |
| 3067 | (eval "$ac_try") 2>&5 |
| 3068 | ac_status=$? |
| 3069 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3070 | test $ac_status = 0; }; }; then |
| 3071 | cross_compiling=no |
| 3072 | else |
| 3073 | if test "$cross_compiling" = maybe; then |
| 3074 | cross_compiling=yes |
| 3075 | else |
| 3076 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3077 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3078 | as_fn_error $? "cannot run C compiled programs. |
| 3079 | If you meant to cross compile, use \`--host'. |
| 3080 | See \`config.log' for more details" "$LINENO" 5; } |
| 3081 | fi |
| 3082 | fi |
| 3083 | fi |
| 3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3085 | $as_echo "$cross_compiling" >&6; } |
| 3086 | |
| 3087 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3088 | ac_clean_files=$ac_clean_files_save |
| 3089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3090 | $as_echo_n "checking for suffix of object files... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3091 | if ${ac_cv_objext+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3092 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3093 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3095 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3096 | |
| 3097 | int |
| 3098 | main () |
| 3099 | { |
| 3100 | |
| 3101 | ; |
| 3102 | return 0; |
| 3103 | } |
| 3104 | _ACEOF |
| 3105 | rm -f conftest.o conftest.obj |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3106 | if { { ac_try="$ac_compile" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3107 | case "(($ac_try" in |
| 3108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3109 | *) ac_try_echo=$ac_try;; |
| 3110 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3111 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3112 | $as_echo "$ac_try_echo"; } >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3113 | (eval "$ac_compile") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3114 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3115 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3116 | test $ac_status = 0; }; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3117 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3118 | test -f "$ac_file" || continue; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3119 | case $ac_file in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3120 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3121 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3122 | break;; |
| 3123 | esac |
| 3124 | done |
| 3125 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3126 | $as_echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3128 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3129 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3130 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3131 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3132 | See \`config.log' for more details" "$LINENO" 5; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3133 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3134 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3135 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3137 | $as_echo "$ac_cv_objext" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3138 | OBJEXT=$ac_cv_objext |
| 3139 | ac_objext=$OBJEXT |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3141 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3142 | if ${ac_cv_c_compiler_gnu+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3143 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3144 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3146 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3147 | |
| 3148 | int |
| 3149 | main () |
| 3150 | { |
| 3151 | #ifndef __GNUC__ |
| 3152 | choke me |
| 3153 | #endif |
| 3154 | |
| 3155 | ; |
| 3156 | return 0; |
| 3157 | } |
| 3158 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3159 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3160 | ac_compiler_gnu=yes |
| 3161 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3162 | ac_compiler_gnu=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3163 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3165 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3166 | |
| 3167 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3169 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3170 | if test $ac_compiler_gnu = yes; then |
| 3171 | GCC=yes |
| 3172 | else |
| 3173 | GCC= |
| 3174 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3175 | ac_test_CFLAGS=${CFLAGS+set} |
| 3176 | ac_save_CFLAGS=$CFLAGS |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3178 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3179 | if ${ac_cv_prog_cc_g+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3180 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3181 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3182 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3183 | ac_c_werror_flag=yes |
| 3184 | ac_cv_prog_cc_g=no |
| 3185 | CFLAGS="-g" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3187 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3188 | |
| 3189 | int |
| 3190 | main () |
| 3191 | { |
| 3192 | |
| 3193 | ; |
| 3194 | return 0; |
| 3195 | } |
| 3196 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3197 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3198 | ac_cv_prog_cc_g=yes |
| 3199 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3200 | CFLAGS="" |
| 3201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3202 | /* end confdefs.h. */ |
| 3203 | |
| 3204 | int |
| 3205 | main () |
| 3206 | { |
| 3207 | |
| 3208 | ; |
| 3209 | return 0; |
| 3210 | } |
| 3211 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3212 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3213 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3214 | else |
| 3215 | ac_c_werror_flag=$ac_save_c_werror_flag |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3216 | CFLAGS="-g" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3218 | /* end confdefs.h. */ |
| 3219 | |
| 3220 | int |
| 3221 | main () |
| 3222 | { |
| 3223 | |
| 3224 | ; |
| 3225 | return 0; |
| 3226 | } |
| 3227 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3228 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3229 | ac_cv_prog_cc_g=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3230 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3232 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3234 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3236 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3237 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3239 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3240 | if test "$ac_test_CFLAGS" = set; then |
| 3241 | CFLAGS=$ac_save_CFLAGS |
| 3242 | elif test $ac_cv_prog_cc_g = yes; then |
| 3243 | if test "$GCC" = yes; then |
| 3244 | CFLAGS="-g -O2" |
| 3245 | else |
| 3246 | CFLAGS="-g" |
| 3247 | fi |
| 3248 | else |
| 3249 | if test "$GCC" = yes; then |
| 3250 | CFLAGS="-O2" |
| 3251 | else |
| 3252 | CFLAGS= |
| 3253 | fi |
| 3254 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3256 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3257 | if ${ac_cv_prog_cc_c89+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3258 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3259 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3260 | ac_cv_prog_cc_c89=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3261 | ac_save_CC=$CC |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3263 | /* end confdefs.h. */ |
| 3264 | #include <stdarg.h> |
| 3265 | #include <stdio.h> |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3266 | struct stat; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3267 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3268 | struct buf { int x; }; |
| 3269 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3270 | static char *e (p, i) |
| 3271 | char **p; |
| 3272 | int i; |
| 3273 | { |
| 3274 | return p[i]; |
| 3275 | } |
| 3276 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3277 | { |
| 3278 | char *s; |
| 3279 | va_list v; |
| 3280 | va_start (v,p); |
| 3281 | s = g (p, va_arg (v,int)); |
| 3282 | va_end (v); |
| 3283 | return s; |
| 3284 | } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3285 | |
| 3286 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3287 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3288 | These don't provoke an error unfortunately, instead are silently treated |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3289 | as 'x'. The following induces an error, until -std is added to get |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3290 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3291 | array size at least. It's necessary to write '\x00'==0 to get something |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3292 | that's true only with -std. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3293 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3294 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3295 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3296 | inside strings and character constants. */ |
| 3297 | #define FOO(x) 'x' |
| 3298 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3299 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3300 | int test (int i, double x); |
| 3301 | struct s1 {int (*f) (int a);}; |
| 3302 | struct s2 {int (*f) (double a);}; |
| 3303 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3304 | int argc; |
| 3305 | char **argv; |
| 3306 | int |
| 3307 | main () |
| 3308 | { |
| 3309 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3310 | ; |
| 3311 | return 0; |
| 3312 | } |
| 3313 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3314 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3315 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3316 | do |
| 3317 | CC="$ac_save_CC $ac_arg" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3318 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3319 | ac_cv_prog_cc_c89=$ac_arg |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3320 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3321 | rm -f core conftest.err conftest.$ac_objext |
| 3322 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3323 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3324 | rm -f conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3325 | CC=$ac_save_CC |
| 3326 | |
| 3327 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3328 | # AC_CACHE_VAL |
| 3329 | case "x$ac_cv_prog_cc_c89" in |
| 3330 | x) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3332 | $as_echo "none needed" >&6; } ;; |
| 3333 | xno) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3335 | $as_echo "unsupported" >&6; } ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3336 | *) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3337 | CC="$CC $ac_cv_prog_cc_c89" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3339 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3340 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3341 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3342 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3343 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3344 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3345 | ac_ext=c |
| 3346 | ac_cpp='$CPP $CPPFLAGS' |
| 3347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3350 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3352 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3353 | if ${ac_cv_path_SED+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3354 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3355 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3356 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 3357 | for ac_i in 1 2 3 4 5 6 7; do |
| 3358 | ac_script="$ac_script$as_nl$ac_script" |
| 3359 | done |
| 3360 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3361 | { ac_script=; unset ac_script;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3362 | if test -z "$SED"; then |
| 3363 | ac_path_SED_found=false |
| 3364 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3366 | for as_dir in $PATH |
| 3367 | do |
| 3368 | IFS=$as_save_IFS |
| 3369 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3370 | for ac_prog in sed gsed; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3371 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3372 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3373 | as_fn_executable_p "$ac_path_SED" || continue |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3374 | # Check for GNU ac_path_SED and select it if it is found. |
| 3375 | # Check for GNU $ac_path_SED |
| 3376 | case `"$ac_path_SED" --version 2>&1` in |
| 3377 | *GNU*) |
| 3378 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 3379 | *) |
| 3380 | ac_count=0 |
| 3381 | $as_echo_n 0123456789 >"conftest.in" |
| 3382 | while : |
| 3383 | do |
| 3384 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3385 | mv "conftest.tmp" "conftest.in" |
| 3386 | cp "conftest.in" "conftest.nl" |
| 3387 | $as_echo '' >> "conftest.nl" |
| 3388 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3389 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3390 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3391 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 3392 | # Best one so far, save it but keep looking for a better one |
| 3393 | ac_cv_path_SED="$ac_path_SED" |
| 3394 | ac_path_SED_max=$ac_count |
| 3395 | fi |
| 3396 | # 10*(2^10) chars as input seems more than enough |
| 3397 | test $ac_count -gt 10 && break |
| 3398 | done |
| 3399 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3400 | esac |
| 3401 | |
| 3402 | $ac_path_SED_found && break 3 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3403 | done |
| 3404 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3405 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3406 | IFS=$as_save_IFS |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3407 | if test -z "$ac_cv_path_SED"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3408 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3409 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3410 | else |
| 3411 | ac_cv_path_SED=$SED |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3412 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3413 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3414 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3416 | $as_echo "$ac_cv_path_SED" >&6; } |
| 3417 | SED="$ac_cv_path_SED" |
| 3418 | rm -f conftest.sed |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3419 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3420 | test -z "$SED" && SED=sed |
| 3421 | Xsed="$SED -e 1s/^X//" |
| 3422 | |
| 3423 | |
| 3424 | |
| 3425 | |
| 3426 | |
| 3427 | |
| 3428 | |
| 3429 | |
| 3430 | |
| 3431 | |
| 3432 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3434 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3435 | if ${ac_cv_path_GREP+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3436 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3437 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3438 | if test -z "$GREP"; then |
| 3439 | ac_path_GREP_found=false |
| 3440 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3442 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3443 | do |
| 3444 | IFS=$as_save_IFS |
| 3445 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3446 | for ac_prog in grep ggrep; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3447 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3448 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3449 | as_fn_executable_p "$ac_path_GREP" || continue |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3450 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3451 | # Check for GNU $ac_path_GREP |
| 3452 | case `"$ac_path_GREP" --version 2>&1` in |
| 3453 | *GNU*) |
| 3454 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3455 | *) |
| 3456 | ac_count=0 |
| 3457 | $as_echo_n 0123456789 >"conftest.in" |
| 3458 | while : |
| 3459 | do |
| 3460 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3461 | mv "conftest.tmp" "conftest.in" |
| 3462 | cp "conftest.in" "conftest.nl" |
| 3463 | $as_echo 'GREP' >> "conftest.nl" |
| 3464 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3465 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3466 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3467 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3468 | # Best one so far, save it but keep looking for a better one |
| 3469 | ac_cv_path_GREP="$ac_path_GREP" |
| 3470 | ac_path_GREP_max=$ac_count |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3471 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3472 | # 10*(2^10) chars as input seems more than enough |
| 3473 | test $ac_count -gt 10 && break |
| 3474 | done |
| 3475 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3476 | esac |
| 3477 | |
| 3478 | $ac_path_GREP_found && break 3 |
| 3479 | done |
| 3480 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3481 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3482 | IFS=$as_save_IFS |
| 3483 | if test -z "$ac_cv_path_GREP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3484 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3485 | fi |
| 3486 | else |
| 3487 | ac_cv_path_GREP=$GREP |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3488 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3489 | |
| 3490 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3492 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3493 | GREP="$ac_cv_path_GREP" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3494 | |
| 3495 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3497 | $as_echo_n "checking for egrep... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3498 | if ${ac_cv_path_EGREP+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3499 | $as_echo_n "(cached) " >&6 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3500 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3501 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3502 | then ac_cv_path_EGREP="$GREP -E" |
| 3503 | else |
| 3504 | if test -z "$EGREP"; then |
| 3505 | ac_path_EGREP_found=false |
| 3506 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3508 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3509 | do |
| 3510 | IFS=$as_save_IFS |
| 3511 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3512 | for ac_prog in egrep; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3513 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3514 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3515 | as_fn_executable_p "$ac_path_EGREP" || continue |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3516 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3517 | # Check for GNU $ac_path_EGREP |
| 3518 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3519 | *GNU*) |
| 3520 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3521 | *) |
| 3522 | ac_count=0 |
| 3523 | $as_echo_n 0123456789 >"conftest.in" |
| 3524 | while : |
| 3525 | do |
| 3526 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3527 | mv "conftest.tmp" "conftest.in" |
| 3528 | cp "conftest.in" "conftest.nl" |
| 3529 | $as_echo 'EGREP' >> "conftest.nl" |
| 3530 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3531 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3532 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3533 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3534 | # Best one so far, save it but keep looking for a better one |
| 3535 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3536 | ac_path_EGREP_max=$ac_count |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3537 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3538 | # 10*(2^10) chars as input seems more than enough |
| 3539 | test $ac_count -gt 10 && break |
| 3540 | done |
| 3541 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3542 | esac |
| 3543 | |
| 3544 | $ac_path_EGREP_found && break 3 |
| 3545 | done |
| 3546 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3547 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3548 | IFS=$as_save_IFS |
| 3549 | if test -z "$ac_cv_path_EGREP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3550 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3551 | fi |
| 3552 | else |
| 3553 | ac_cv_path_EGREP=$EGREP |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3554 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3555 | |
| 3556 | fi |
| 3557 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3559 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3560 | EGREP="$ac_cv_path_EGREP" |
| 3561 | |
| 3562 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3564 | $as_echo_n "checking for fgrep... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3565 | if ${ac_cv_path_FGREP+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3566 | $as_echo_n "(cached) " >&6 |
| 3567 | else |
| 3568 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 3569 | then ac_cv_path_FGREP="$GREP -F" |
| 3570 | else |
| 3571 | if test -z "$FGREP"; then |
| 3572 | ac_path_FGREP_found=false |
| 3573 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3575 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3576 | do |
| 3577 | IFS=$as_save_IFS |
| 3578 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3579 | for ac_prog in fgrep; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3580 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3581 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3582 | as_fn_executable_p "$ac_path_FGREP" || continue |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3583 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 3584 | # Check for GNU $ac_path_FGREP |
| 3585 | case `"$ac_path_FGREP" --version 2>&1` in |
| 3586 | *GNU*) |
| 3587 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 3588 | *) |
| 3589 | ac_count=0 |
| 3590 | $as_echo_n 0123456789 >"conftest.in" |
| 3591 | while : |
| 3592 | do |
| 3593 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3594 | mv "conftest.tmp" "conftest.in" |
| 3595 | cp "conftest.in" "conftest.nl" |
| 3596 | $as_echo 'FGREP' >> "conftest.nl" |
| 3597 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3598 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3599 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3600 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 3601 | # Best one so far, save it but keep looking for a better one |
| 3602 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 3603 | ac_path_FGREP_max=$ac_count |
| 3604 | fi |
| 3605 | # 10*(2^10) chars as input seems more than enough |
| 3606 | test $ac_count -gt 10 && break |
| 3607 | done |
| 3608 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3609 | esac |
| 3610 | |
| 3611 | $ac_path_FGREP_found && break 3 |
| 3612 | done |
| 3613 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3614 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3615 | IFS=$as_save_IFS |
| 3616 | if test -z "$ac_cv_path_FGREP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3617 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3618 | fi |
| 3619 | else |
| 3620 | ac_cv_path_FGREP=$FGREP |
| 3621 | fi |
| 3622 | |
| 3623 | fi |
| 3624 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3626 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 3627 | FGREP="$ac_cv_path_FGREP" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3628 | |
| 3629 | |
| 3630 | test -z "$GREP" && GREP=grep |
| 3631 | |
| 3632 | |
| 3633 | |
| 3634 | |
| 3635 | |
| 3636 | |
| 3637 | |
| 3638 | |
| 3639 | |
| 3640 | |
| 3641 | |
| 3642 | |
| 3643 | |
| 3644 | |
| 3645 | |
| 3646 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3647 | |
| 3648 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3649 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3650 | # Check whether --with-gnu-ld was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3651 | if test "${with_gnu_ld+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3652 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3653 | else |
| 3654 | with_gnu_ld=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3655 | fi |
| 3656 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3657 | ac_prog=ld |
| 3658 | if test "$GCC" = yes; then |
| 3659 | # Check if gcc -print-prog-name=ld gives a path. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3661 | $as_echo_n "checking for ld used by $CC... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3662 | case $host in |
| 3663 | *-*-mingw*) |
| 3664 | # gcc leaves a trailing carriage return which upsets mingw |
| 3665 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3666 | *) |
| 3667 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3668 | esac |
| 3669 | case $ac_prog in |
| 3670 | # Accept absolute paths. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3671 | [\\/]* | ?:[\\/]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3672 | re_direlt='/[^/][^/]*/\.\./' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3673 | # Canonicalize the pathname of ld |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3674 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 3675 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 3676 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3677 | done |
| 3678 | test -z "$LD" && LD="$ac_prog" |
| 3679 | ;; |
| 3680 | "") |
| 3681 | # If it fails, then pretend we aren't using GCC. |
| 3682 | ac_prog=ld |
| 3683 | ;; |
| 3684 | *) |
| 3685 | # If it is relative, then search for the first ld in PATH. |
| 3686 | with_gnu_ld=unknown |
| 3687 | ;; |
| 3688 | esac |
| 3689 | elif test "$with_gnu_ld" = yes; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3691 | $as_echo_n "checking for GNU ld... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3692 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3694 | $as_echo_n "checking for non-GNU ld... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3695 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3696 | if ${lt_cv_path_LD+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3697 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3698 | else |
| 3699 | if test -z "$LD"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3700 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3701 | for ac_dir in $PATH; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3702 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3703 | test -z "$ac_dir" && ac_dir=. |
| 3704 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3705 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3706 | # Check to see if the program is GNU ld. I'd rather use --version, |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3707 | # but apparently some variants of GNU ld only accept -v. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3708 | # Break only if it was the GNU/non-GNU ld that we prefer. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3709 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3710 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3711 | test "$with_gnu_ld" != no && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3712 | ;; |
| 3713 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3714 | test "$with_gnu_ld" != yes && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3715 | ;; |
| 3716 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3717 | fi |
| 3718 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3719 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3720 | else |
| 3721 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3722 | fi |
| 3723 | fi |
| 3724 | |
| 3725 | LD="$lt_cv_path_LD" |
| 3726 | if test -n "$LD"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3728 | $as_echo "$LD" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3729 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3731 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3732 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3733 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3735 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3736 | if ${lt_cv_prog_gnu_ld+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3737 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3738 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3739 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3740 | case `$LD -v 2>&1 </dev/null` in |
| 3741 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3742 | lt_cv_prog_gnu_ld=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3743 | ;; |
| 3744 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3745 | lt_cv_prog_gnu_ld=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3746 | ;; |
| 3747 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3748 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3750 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3751 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 3752 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3753 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3754 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3755 | |
| 3756 | |
| 3757 | |
| 3758 | |
| 3759 | |
| 3760 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3762 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3763 | if ${lt_cv_path_NM+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3764 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3765 | else |
| 3766 | if test -n "$NM"; then |
| 3767 | # Let the user override the test. |
| 3768 | lt_cv_path_NM="$NM" |
| 3769 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3770 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 3771 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 3772 | lt_nm_to_check="$lt_nm_to_check nm" |
| 3773 | fi |
| 3774 | for lt_tmp_nm in $lt_nm_to_check; do |
| 3775 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3776 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 3777 | IFS="$lt_save_ifs" |
| 3778 | test -z "$ac_dir" && ac_dir=. |
| 3779 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 3780 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 3781 | # Check to see if the nm accepts a BSD-compat flag. |
| 3782 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3783 | # nm: unknown option "B" ignored |
| 3784 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3785 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3786 | */dev/null* | *'Invalid file or object type'*) |
| 3787 | lt_cv_path_NM="$tmp_nm -B" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3788 | break |
| 3789 | ;; |
| 3790 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3791 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3792 | */dev/null*) |
| 3793 | lt_cv_path_NM="$tmp_nm -p" |
| 3794 | break |
| 3795 | ;; |
| 3796 | *) |
| 3797 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3798 | continue # so that we can try to find one that supports BSD flags |
| 3799 | ;; |
| 3800 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3801 | ;; |
| 3802 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3803 | fi |
| 3804 | done |
| 3805 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3806 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3807 | : ${lt_cv_path_NM=no} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3808 | fi |
| 3809 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3811 | $as_echo "$lt_cv_path_NM" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3812 | if test "$lt_cv_path_NM" != "no"; then |
| 3813 | NM="$lt_cv_path_NM" |
| 3814 | else |
| 3815 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 3816 | if test -n "$ac_tool_prefix"; then |
| 3817 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 3818 | do |
| 3819 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3820 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3822 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3823 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3824 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3825 | else |
| 3826 | if test -n "$DUMPBIN"; then |
| 3827 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 3828 | else |
| 3829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3830 | for as_dir in $PATH |
| 3831 | do |
| 3832 | IFS=$as_save_IFS |
| 3833 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3834 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3836 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3838 | break 2 |
| 3839 | fi |
| 3840 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3841 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3842 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3843 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3844 | fi |
| 3845 | fi |
| 3846 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 3847 | if test -n "$DUMPBIN"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3849 | $as_echo "$DUMPBIN" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3850 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3852 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3853 | fi |
| 3854 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3855 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3856 | test -n "$DUMPBIN" && break |
| 3857 | done |
| 3858 | fi |
| 3859 | if test -z "$DUMPBIN"; then |
| 3860 | ac_ct_DUMPBIN=$DUMPBIN |
| 3861 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 3862 | do |
| 3863 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3864 | set dummy $ac_prog; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3866 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3867 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3868 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3869 | else |
| 3870 | if test -n "$ac_ct_DUMPBIN"; then |
| 3871 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 3872 | else |
| 3873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3874 | for as_dir in $PATH |
| 3875 | do |
| 3876 | IFS=$as_save_IFS |
| 3877 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3878 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3880 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3882 | break 2 |
| 3883 | fi |
| 3884 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3885 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3886 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3887 | |
| 3888 | fi |
| 3889 | fi |
| 3890 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 3891 | if test -n "$ac_ct_DUMPBIN"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3893 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3894 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3896 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3897 | fi |
| 3898 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3899 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3900 | test -n "$ac_ct_DUMPBIN" && break |
| 3901 | done |
| 3902 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3903 | if test "x$ac_ct_DUMPBIN" = x; then |
| 3904 | DUMPBIN=":" |
| 3905 | else |
| 3906 | case $cross_compiling:$ac_tool_warned in |
| 3907 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3908 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3909 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3910 | ac_tool_warned=yes ;; |
| 3911 | esac |
| 3912 | DUMPBIN=$ac_ct_DUMPBIN |
| 3913 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3914 | fi |
| 3915 | |
| 3916 | |
| 3917 | if test "$DUMPBIN" != ":"; then |
| 3918 | NM="$DUMPBIN" |
| 3919 | fi |
| 3920 | fi |
| 3921 | test -z "$NM" && NM=nm |
| 3922 | |
| 3923 | |
| 3924 | |
| 3925 | |
| 3926 | |
| 3927 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3929 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3930 | if ${lt_cv_nm_interface+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3931 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3932 | else |
| 3933 | lt_cv_nm_interface="BSD nm" |
| 3934 | echo "int some_variable = 0;" > conftest.$ac_ext |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 3935 | (eval echo "\"\$as_me:3935: $ac_compile\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3936 | (eval "$ac_compile" 2>conftest.err) |
| 3937 | cat conftest.err >&5 |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 3938 | (eval echo "\"\$as_me:3938: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3939 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 3940 | cat conftest.err >&5 |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 3941 | (eval echo "\"\$as_me:3941: output\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3942 | cat conftest.out >&5 |
| 3943 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 3944 | lt_cv_nm_interface="MS dumpbin" |
| 3945 | fi |
| 3946 | rm -f conftest* |
| 3947 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3949 | $as_echo "$lt_cv_nm_interface" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3950 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3952 | $as_echo_n "checking whether ln -s works... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3953 | LN_S=$as_ln_s |
| 3954 | if test "$LN_S" = "ln -s"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3956 | $as_echo "yes" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3957 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3959 | $as_echo "no, using $LN_S" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3960 | fi |
| 3961 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3962 | # find the maximum length of command line arguments |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3964 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 3965 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3966 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3967 | else |
| 3968 | i=0 |
| 3969 | teststring="ABCD" |
| 3970 | |
| 3971 | case $build_os in |
| 3972 | msdosdjgpp*) |
| 3973 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 3974 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 3975 | # during glob expansion). Even if it were fixed, the result of this |
| 3976 | # check would be larger than it should be. |
| 3977 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 3978 | ;; |
| 3979 | |
| 3980 | gnu*) |
| 3981 | # Under GNU Hurd, this test is not required because there is |
| 3982 | # no limit to the length of command line arguments. |
| 3983 | # Libtool will interpret -1 as no limit whatsoever |
| 3984 | lt_cv_sys_max_cmd_len=-1; |
| 3985 | ;; |
| 3986 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 3987 | cygwin* | mingw* | cegcc*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3988 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 3989 | # about 5 minutes as the teststring grows exponentially. |
| 3990 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 3991 | # you end up with a "frozen" computer, even though with patience |
| 3992 | # the test eventually succeeds (with a max line length of 256k). |
| 3993 | # Instead, let's just punt: use the minimum linelength reported by |
| 3994 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 3995 | lt_cv_sys_max_cmd_len=8192; |
| 3996 | ;; |
| 3997 | |
| 3998 | amigaos*) |
| 3999 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 4000 | # So we just punt and use a minimum line length of 8192. |
| 4001 | lt_cv_sys_max_cmd_len=8192; |
| 4002 | ;; |
| 4003 | |
| 4004 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 4005 | # This has been around since 386BSD, at least. Likely further. |
| 4006 | if test -x /sbin/sysctl; then |
| 4007 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 4008 | elif test -x /usr/sbin/sysctl; then |
| 4009 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 4010 | else |
| 4011 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 4012 | fi |
| 4013 | # And add a safety zone |
| 4014 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4015 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4016 | ;; |
| 4017 | |
| 4018 | interix*) |
| 4019 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 4020 | lt_cv_sys_max_cmd_len=196608 |
| 4021 | ;; |
| 4022 | |
| 4023 | osf*) |
| 4024 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 4025 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 4026 | # nice to cause kernel panics so lets avoid the loop below. |
| 4027 | # First set a reasonable default. |
| 4028 | lt_cv_sys_max_cmd_len=16384 |
| 4029 | # |
| 4030 | if test -x /sbin/sysconfig; then |
| 4031 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 4032 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 4033 | esac |
| 4034 | fi |
| 4035 | ;; |
| 4036 | sco3.2v5*) |
| 4037 | lt_cv_sys_max_cmd_len=102400 |
| 4038 | ;; |
| 4039 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 4040 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 4041 | if test -n "$kargmax"; then |
| 4042 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 4043 | else |
| 4044 | lt_cv_sys_max_cmd_len=32768 |
| 4045 | fi |
| 4046 | ;; |
| 4047 | *) |
| 4048 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 4049 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 4050 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4051 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4052 | else |
| 4053 | # Make teststring a little bigger before we do anything with it. |
| 4054 | # a 1K string should be a reasonable start. |
| 4055 | for i in 1 2 3 4 5 6 7 8 ; do |
| 4056 | teststring=$teststring$teststring |
| 4057 | done |
| 4058 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 4059 | # If test is not a shell built-in, we'll probably end up computing a |
| 4060 | # maximum length that is only half of the actual maximum length, but |
| 4061 | # we can't tell. |
| 4062 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 4063 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 4064 | test $i != 17 # 1/2 MB should be enough |
| 4065 | do |
| 4066 | i=`expr $i + 1` |
| 4067 | teststring=$teststring$teststring |
| 4068 | done |
| 4069 | # Only check the string length outside the loop. |
| 4070 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 4071 | teststring= |
| 4072 | # Add a significant safety factor because C++ compilers can tack on |
| 4073 | # massive amounts of additional arguments before passing them to the |
| 4074 | # linker. It appears as though 1/2 is a usable value. |
| 4075 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4076 | fi |
| 4077 | ;; |
| 4078 | esac |
| 4079 | |
| 4080 | fi |
| 4081 | |
| 4082 | if test -n $lt_cv_sys_max_cmd_len ; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4084 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4085 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4087 | $as_echo "none" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4088 | fi |
| 4089 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 4090 | |
| 4091 | |
| 4092 | |
| 4093 | |
| 4094 | |
| 4095 | |
| 4096 | : ${CP="cp -f"} |
| 4097 | : ${MV="mv -f"} |
| 4098 | : ${RM="rm -f"} |
| 4099 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4101 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4102 | # Try some XSI features |
| 4103 | xsi_shell=no |
| 4104 | ( _lt_dummy="a/b/c" |
| 4105 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 4106 | = c,a/b,, \ |
| 4107 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 4108 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 4109 | && xsi_shell=yes |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4111 | $as_echo "$xsi_shell" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4112 | |
| 4113 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4115 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4116 | lt_shell_append=no |
| 4117 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 4118 | >/dev/null 2>&1 \ |
| 4119 | && lt_shell_append=yes |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4121 | $as_echo "$lt_shell_append" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4122 | |
| 4123 | |
| 4124 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 4125 | lt_unset=unset |
| 4126 | else |
| 4127 | lt_unset=false |
| 4128 | fi |
| 4129 | |
| 4130 | |
| 4131 | |
| 4132 | |
| 4133 | |
| 4134 | # test EBCDIC or ASCII |
| 4135 | case `echo X|tr X '\101'` in |
| 4136 | A) # ASCII based system |
| 4137 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 4138 | lt_SP2NL='tr \040 \012' |
| 4139 | lt_NL2SP='tr \015\012 \040\040' |
| 4140 | ;; |
| 4141 | *) # EBCDIC based system |
| 4142 | lt_SP2NL='tr \100 \n' |
| 4143 | lt_NL2SP='tr \r\n \100\100' |
| 4144 | ;; |
| 4145 | esac |
| 4146 | |
| 4147 | |
| 4148 | |
| 4149 | |
| 4150 | |
| 4151 | |
| 4152 | |
| 4153 | |
| 4154 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4156 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4157 | if ${lt_cv_ld_reload_flag+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4158 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4159 | else |
| 4160 | lt_cv_ld_reload_flag='-r' |
| 4161 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4163 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4164 | reload_flag=$lt_cv_ld_reload_flag |
| 4165 | case $reload_flag in |
| 4166 | "" | " "*) ;; |
| 4167 | *) reload_flag=" $reload_flag" ;; |
| 4168 | esac |
| 4169 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4170 | case $host_os in |
| 4171 | darwin*) |
| 4172 | if test "$GCC" = yes; then |
| 4173 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4174 | else |
| 4175 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4176 | fi |
| 4177 | ;; |
| 4178 | esac |
| 4179 | |
| 4180 | |
| 4181 | |
| 4182 | |
| 4183 | |
| 4184 | |
| 4185 | |
| 4186 | |
| 4187 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4188 | if test -n "$ac_tool_prefix"; then |
| 4189 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 4190 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4192 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4193 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4194 | $as_echo_n "(cached) " >&6 |
| 4195 | else |
| 4196 | if test -n "$OBJDUMP"; then |
| 4197 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 4198 | else |
| 4199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4200 | for as_dir in $PATH |
| 4201 | do |
| 4202 | IFS=$as_save_IFS |
| 4203 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4204 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4205 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4206 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4208 | break 2 |
| 4209 | fi |
| 4210 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4211 | done |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4212 | IFS=$as_save_IFS |
| 4213 | |
| 4214 | fi |
| 4215 | fi |
| 4216 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 4217 | if test -n "$OBJDUMP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4219 | $as_echo "$OBJDUMP" >&6; } |
| 4220 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4222 | $as_echo "no" >&6; } |
| 4223 | fi |
| 4224 | |
| 4225 | |
| 4226 | fi |
| 4227 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 4228 | ac_ct_OBJDUMP=$OBJDUMP |
| 4229 | # Extract the first word of "objdump", so it can be a program name with args. |
| 4230 | set dummy objdump; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4232 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4233 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4234 | $as_echo_n "(cached) " >&6 |
| 4235 | else |
| 4236 | if test -n "$ac_ct_OBJDUMP"; then |
| 4237 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 4238 | else |
| 4239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4240 | for as_dir in $PATH |
| 4241 | do |
| 4242 | IFS=$as_save_IFS |
| 4243 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4244 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4246 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4248 | break 2 |
| 4249 | fi |
| 4250 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4251 | done |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4252 | IFS=$as_save_IFS |
| 4253 | |
| 4254 | fi |
| 4255 | fi |
| 4256 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 4257 | if test -n "$ac_ct_OBJDUMP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4259 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 4260 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4262 | $as_echo "no" >&6; } |
| 4263 | fi |
| 4264 | |
| 4265 | if test "x$ac_ct_OBJDUMP" = x; then |
| 4266 | OBJDUMP="false" |
| 4267 | else |
| 4268 | case $cross_compiling:$ac_tool_warned in |
| 4269 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4271 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4272 | ac_tool_warned=yes ;; |
| 4273 | esac |
| 4274 | OBJDUMP=$ac_ct_OBJDUMP |
| 4275 | fi |
| 4276 | else |
| 4277 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 4278 | fi |
| 4279 | |
| 4280 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4281 | |
| 4282 | |
| 4283 | |
| 4284 | |
| 4285 | |
| 4286 | |
| 4287 | |
| 4288 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4289 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4291 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4292 | if ${lt_cv_deplibs_check_method+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4293 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4294 | else |
| 4295 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4296 | lt_cv_file_magic_test_file= |
| 4297 | lt_cv_deplibs_check_method='unknown' |
| 4298 | # Need to set the preceding variable on all platforms that support |
| 4299 | # interlibrary dependencies. |
| 4300 | # 'none' -- dependencies not supported. |
| 4301 | # `unknown' -- same as none, but documents that we really don't know. |
| 4302 | # 'pass_all' -- all dependencies passed with no checks. |
| 4303 | # 'test_compile' -- check by making test program. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4304 | # 'file_magic [[regex]]' -- check by looking for files in library path |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4305 | # which responds to the $file_magic_cmd with a given extended regex. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4306 | # If you have `file' or equivalent on your system and you're not sure |
| 4307 | # whether `pass_all' will *always* work, you probably want this one. |
| 4308 | |
| 4309 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4310 | aix[4-9]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4311 | lt_cv_deplibs_check_method=pass_all |
| 4312 | ;; |
| 4313 | |
| 4314 | beos*) |
| 4315 | lt_cv_deplibs_check_method=pass_all |
| 4316 | ;; |
| 4317 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4318 | bsdi[45]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4319 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4320 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4321 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4322 | ;; |
| 4323 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4324 | cygwin*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4325 | # func_win32_libid is a shell function defined in ltmain.sh |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4326 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4327 | lt_cv_file_magic_cmd='func_win32_libid' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4328 | ;; |
| 4329 | |
| 4330 | mingw* | pw32*) |
| 4331 | # Base MSYS/MinGW do not provide the 'file' command needed by |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4332 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 4333 | # unless we find 'file', for example because we are cross-compiling. |
| 4334 | if ( file / ) >/dev/null 2>&1; then |
| 4335 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4336 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4337 | else |
| 4338 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4339 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4340 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4341 | ;; |
| 4342 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4343 | cegcc) |
| 4344 | # use the weaker test based on 'objdump'. See mingw*. |
| 4345 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 4346 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4347 | ;; |
| 4348 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4349 | darwin* | rhapsody*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4350 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4351 | ;; |
| 4352 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4353 | freebsd* | dragonfly*) |
| 4354 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4355 | case $host_cpu in |
| 4356 | i*86 ) |
| 4357 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4358 | # Let's accept both of them until this is cleared up. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4359 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4360 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4361 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4362 | ;; |
| 4363 | esac |
| 4364 | else |
| 4365 | lt_cv_deplibs_check_method=pass_all |
| 4366 | fi |
| 4367 | ;; |
| 4368 | |
| 4369 | gnu*) |
| 4370 | lt_cv_deplibs_check_method=pass_all |
| 4371 | ;; |
| 4372 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4373 | hpux10.20* | hpux11*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4374 | lt_cv_file_magic_cmd=/usr/bin/file |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4375 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4376 | ia64*) |
| 4377 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4378 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4379 | ;; |
| 4380 | hppa*64*) |
| 4381 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| 4382 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4383 | ;; |
| 4384 | *) |
| 4385 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4386 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4387 | ;; |
| 4388 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4389 | ;; |
| 4390 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4391 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4392 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4393 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 4394 | ;; |
| 4395 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4396 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4397 | case $LD in |
| 4398 | *-32|*"-32 ") libmagic=32-bit;; |
| 4399 | *-n32|*"-n32 ") libmagic=N32;; |
| 4400 | *-64|*"-64 ") libmagic=64-bit;; |
| 4401 | *) libmagic=never-match;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4402 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4403 | lt_cv_deplibs_check_method=pass_all |
| 4404 | ;; |
| 4405 | |
| 4406 | # This must be Linux ELF. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4407 | linux* | k*bsd*-gnu) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4408 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4409 | ;; |
| 4410 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4411 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4412 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4413 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4414 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4415 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4416 | fi |
| 4417 | ;; |
| 4418 | |
| 4419 | newos6*) |
| 4420 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4421 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4422 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4423 | ;; |
| 4424 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4425 | *nto* | *qnx*) |
| 4426 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4427 | ;; |
| 4428 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4429 | openbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4430 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4431 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4432 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4433 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4434 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4435 | ;; |
| 4436 | |
| 4437 | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4438 | lt_cv_deplibs_check_method=pass_all |
| 4439 | ;; |
| 4440 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4441 | rdos*) |
| 4442 | lt_cv_deplibs_check_method=pass_all |
| 4443 | ;; |
| 4444 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4445 | solaris*) |
| 4446 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4447 | ;; |
| 4448 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4449 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 4450 | lt_cv_deplibs_check_method=pass_all |
| 4451 | ;; |
| 4452 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4453 | sysv4 | sysv4.3*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4454 | case $host_vendor in |
| 4455 | motorola) |
| 4456 | 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]' |
| 4457 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4458 | ;; |
| 4459 | ncr) |
| 4460 | lt_cv_deplibs_check_method=pass_all |
| 4461 | ;; |
| 4462 | sequent) |
| 4463 | lt_cv_file_magic_cmd='/bin/file' |
| 4464 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4465 | ;; |
| 4466 | sni) |
| 4467 | lt_cv_file_magic_cmd='/bin/file' |
| 4468 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4469 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4470 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4471 | siemens) |
| 4472 | lt_cv_deplibs_check_method=pass_all |
| 4473 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4474 | pc) |
| 4475 | lt_cv_deplibs_check_method=pass_all |
| 4476 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4477 | esac |
| 4478 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4479 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4480 | tpf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4481 | lt_cv_deplibs_check_method=pass_all |
| 4482 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4483 | esac |
| 4484 | |
| 4485 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4487 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4488 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4489 | deplibs_check_method=$lt_cv_deplibs_check_method |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4490 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4491 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4492 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4493 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4494 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4495 | |
| 4496 | |
| 4497 | |
| 4498 | |
| 4499 | |
| 4500 | |
| 4501 | |
| 4502 | |
| 4503 | if test -n "$ac_tool_prefix"; then |
| 4504 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 4505 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4507 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4508 | if ${ac_cv_prog_AR+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4509 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4510 | else |
| 4511 | if test -n "$AR"; then |
| 4512 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4513 | else |
| 4514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4515 | for as_dir in $PATH |
| 4516 | do |
| 4517 | IFS=$as_save_IFS |
| 4518 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4519 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4520 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4521 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4523 | break 2 |
| 4524 | fi |
| 4525 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4526 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4527 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4528 | |
| 4529 | fi |
| 4530 | fi |
| 4531 | AR=$ac_cv_prog_AR |
| 4532 | if test -n "$AR"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4534 | $as_echo "$AR" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4535 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4537 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4538 | fi |
| 4539 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4540 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4541 | fi |
| 4542 | if test -z "$ac_cv_prog_AR"; then |
| 4543 | ac_ct_AR=$AR |
| 4544 | # Extract the first word of "ar", so it can be a program name with args. |
| 4545 | set dummy ar; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4547 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4548 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4549 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4550 | else |
| 4551 | if test -n "$ac_ct_AR"; then |
| 4552 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4553 | else |
| 4554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4555 | for as_dir in $PATH |
| 4556 | do |
| 4557 | IFS=$as_save_IFS |
| 4558 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4561 | ac_cv_prog_ac_ct_AR="ar" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4563 | break 2 |
| 4564 | fi |
| 4565 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4566 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4567 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4568 | |
| 4569 | fi |
| 4570 | fi |
| 4571 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4572 | if test -n "$ac_ct_AR"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4574 | $as_echo "$ac_ct_AR" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4575 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4577 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4578 | fi |
| 4579 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4580 | if test "x$ac_ct_AR" = x; then |
| 4581 | AR="false" |
| 4582 | else |
| 4583 | case $cross_compiling:$ac_tool_warned in |
| 4584 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4586 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4587 | ac_tool_warned=yes ;; |
| 4588 | esac |
| 4589 | AR=$ac_ct_AR |
| 4590 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4591 | else |
| 4592 | AR="$ac_cv_prog_AR" |
| 4593 | fi |
| 4594 | |
| 4595 | test -z "$AR" && AR=ar |
| 4596 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 4597 | |
| 4598 | |
| 4599 | |
| 4600 | |
| 4601 | |
| 4602 | |
| 4603 | |
| 4604 | |
| 4605 | |
| 4606 | |
| 4607 | |
| 4608 | if test -n "$ac_tool_prefix"; then |
| 4609 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4610 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4612 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4613 | if ${ac_cv_prog_STRIP+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4614 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4615 | else |
| 4616 | if test -n "$STRIP"; then |
| 4617 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4618 | else |
| 4619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4620 | for as_dir in $PATH |
| 4621 | do |
| 4622 | IFS=$as_save_IFS |
| 4623 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4624 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4625 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4626 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4628 | break 2 |
| 4629 | fi |
| 4630 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4631 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4632 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4633 | |
| 4634 | fi |
| 4635 | fi |
| 4636 | STRIP=$ac_cv_prog_STRIP |
| 4637 | if test -n "$STRIP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4639 | $as_echo "$STRIP" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4640 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4642 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4643 | fi |
| 4644 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4645 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4646 | fi |
| 4647 | if test -z "$ac_cv_prog_STRIP"; then |
| 4648 | ac_ct_STRIP=$STRIP |
| 4649 | # Extract the first word of "strip", so it can be a program name with args. |
| 4650 | set dummy strip; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4652 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4653 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4654 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4655 | else |
| 4656 | if test -n "$ac_ct_STRIP"; then |
| 4657 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4658 | else |
| 4659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4660 | for as_dir in $PATH |
| 4661 | do |
| 4662 | IFS=$as_save_IFS |
| 4663 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4665 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4666 | ac_cv_prog_ac_ct_STRIP="strip" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4668 | break 2 |
| 4669 | fi |
| 4670 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4671 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4672 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4673 | |
| 4674 | fi |
| 4675 | fi |
| 4676 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4677 | if test -n "$ac_ct_STRIP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4679 | $as_echo "$ac_ct_STRIP" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4680 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4682 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4683 | fi |
| 4684 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4685 | if test "x$ac_ct_STRIP" = x; then |
| 4686 | STRIP=":" |
| 4687 | else |
| 4688 | case $cross_compiling:$ac_tool_warned in |
| 4689 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4691 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4692 | ac_tool_warned=yes ;; |
| 4693 | esac |
| 4694 | STRIP=$ac_ct_STRIP |
| 4695 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4696 | else |
| 4697 | STRIP="$ac_cv_prog_STRIP" |
| 4698 | fi |
| 4699 | |
| 4700 | test -z "$STRIP" && STRIP=: |
| 4701 | |
| 4702 | |
| 4703 | |
| 4704 | |
| 4705 | |
| 4706 | |
| 4707 | if test -n "$ac_tool_prefix"; then |
| 4708 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4709 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4711 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4712 | if ${ac_cv_prog_RANLIB+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4713 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4714 | else |
| 4715 | if test -n "$RANLIB"; then |
| 4716 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4717 | else |
| 4718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4719 | for as_dir in $PATH |
| 4720 | do |
| 4721 | IFS=$as_save_IFS |
| 4722 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4723 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4724 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4725 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4727 | break 2 |
| 4728 | fi |
| 4729 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4730 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4731 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4732 | |
| 4733 | fi |
| 4734 | fi |
| 4735 | RANLIB=$ac_cv_prog_RANLIB |
| 4736 | if test -n "$RANLIB"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4738 | $as_echo "$RANLIB" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4739 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4741 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4742 | fi |
| 4743 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4744 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4745 | fi |
| 4746 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4747 | ac_ct_RANLIB=$RANLIB |
| 4748 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4749 | set dummy ranlib; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4751 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4752 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4753 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4754 | else |
| 4755 | if test -n "$ac_ct_RANLIB"; then |
| 4756 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4757 | else |
| 4758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4759 | for as_dir in $PATH |
| 4760 | do |
| 4761 | IFS=$as_save_IFS |
| 4762 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4763 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4764 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4765 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4767 | break 2 |
| 4768 | fi |
| 4769 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4770 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4771 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4772 | |
| 4773 | fi |
| 4774 | fi |
| 4775 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4776 | if test -n "$ac_ct_RANLIB"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4778 | $as_echo "$ac_ct_RANLIB" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4779 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4781 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4782 | fi |
| 4783 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4784 | if test "x$ac_ct_RANLIB" = x; then |
| 4785 | RANLIB=":" |
| 4786 | else |
| 4787 | case $cross_compiling:$ac_tool_warned in |
| 4788 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4790 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4791 | ac_tool_warned=yes ;; |
| 4792 | esac |
| 4793 | RANLIB=$ac_ct_RANLIB |
| 4794 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4795 | else |
| 4796 | RANLIB="$ac_cv_prog_RANLIB" |
| 4797 | fi |
| 4798 | |
| 4799 | test -z "$RANLIB" && RANLIB=: |
| 4800 | |
| 4801 | |
| 4802 | |
| 4803 | |
| 4804 | |
| 4805 | |
| 4806 | # Determine commands to create old-style static archives. |
| 4807 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 4808 | old_postinstall_cmds='chmod 644 $oldlib' |
| 4809 | old_postuninstall_cmds= |
| 4810 | |
| 4811 | if test -n "$RANLIB"; then |
| 4812 | case $host_os in |
| 4813 | openbsd*) |
| 4814 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 4815 | ;; |
| 4816 | *) |
| 4817 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 4818 | ;; |
| 4819 | esac |
| 4820 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 4821 | fi |
| 4822 | |
| 4823 | |
| 4824 | |
| 4825 | |
| 4826 | |
| 4827 | |
| 4828 | |
| 4829 | |
| 4830 | |
| 4831 | |
| 4832 | |
| 4833 | |
| 4834 | |
| 4835 | |
| 4836 | |
| 4837 | |
| 4838 | |
| 4839 | |
| 4840 | |
| 4841 | |
| 4842 | |
| 4843 | |
| 4844 | |
| 4845 | |
| 4846 | |
| 4847 | |
| 4848 | |
| 4849 | |
| 4850 | |
| 4851 | |
| 4852 | |
| 4853 | |
| 4854 | |
| 4855 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4856 | # If no C compiler was specified, use CC. |
| 4857 | LTCC=${LTCC-"$CC"} |
| 4858 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4859 | # If no C compiler flags were specified, use CFLAGS. |
| 4860 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 4861 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4862 | # Allow CC to be a program name with arguments. |
| 4863 | compiler=$CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4864 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4865 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4866 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4868 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4869 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4870 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4871 | else |
| 4872 | |
| 4873 | # These are sane defaults that work on at least a few old systems. |
| 4874 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 4875 | |
| 4876 | # Character class describing NM global symbol codes. |
| 4877 | symcode='[BCDEGRST]' |
| 4878 | |
| 4879 | # Regexp to match symbols that can be accessed directly from C. |
| 4880 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 4881 | |
| 4882 | # Define system-specific variables. |
| 4883 | case $host_os in |
| 4884 | aix*) |
| 4885 | symcode='[BCDT]' |
| 4886 | ;; |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4887 | cygwin* | mingw* | pw32* | cegcc*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4888 | symcode='[ABCDGISTW]' |
| 4889 | ;; |
| 4890 | hpux*) |
| 4891 | if test "$host_cpu" = ia64; then |
| 4892 | symcode='[ABCDEGRST]' |
| 4893 | fi |
| 4894 | ;; |
| 4895 | irix* | nonstopux*) |
| 4896 | symcode='[BCDEGRST]' |
| 4897 | ;; |
| 4898 | osf*) |
| 4899 | symcode='[BCDEGQRST]' |
| 4900 | ;; |
| 4901 | solaris*) |
| 4902 | symcode='[BDRT]' |
| 4903 | ;; |
| 4904 | sco3.2v5*) |
| 4905 | symcode='[DT]' |
| 4906 | ;; |
| 4907 | sysv4.2uw2*) |
| 4908 | symcode='[DT]' |
| 4909 | ;; |
| 4910 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 4911 | symcode='[ABDT]' |
| 4912 | ;; |
| 4913 | sysv4) |
| 4914 | symcode='[DFNSTU]' |
| 4915 | ;; |
| 4916 | esac |
| 4917 | |
| 4918 | # If we're using GNU nm, then use its standard symbol codes. |
| 4919 | case `$NM -V 2>&1` in |
| 4920 | *GNU* | *'with BFD'*) |
| 4921 | symcode='[ABCDGIRSTW]' ;; |
| 4922 | esac |
| 4923 | |
| 4924 | # Transform an extracted symbol line into a proper C declaration. |
| 4925 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 4926 | # so use this general approach. |
| 4927 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4928 | |
| 4929 | # Transform an extracted symbol line into symbol name and symbol address |
| 4930 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 4931 | 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'" |
| 4932 | |
| 4933 | # Handle CRLF in mingw tool chain |
| 4934 | opt_cr= |
| 4935 | case $build_os in |
| 4936 | mingw*) |
| 4937 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 4938 | ;; |
| 4939 | esac |
| 4940 | |
| 4941 | # Try without a prefix underscore, then with it. |
| 4942 | for ac_symprfx in "" "_"; do |
| 4943 | |
| 4944 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 4945 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 4946 | |
| 4947 | # Write the raw and C identifiers. |
| 4948 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 4949 | # Fake it for dumpbin and say T for any non-static function |
| 4950 | # and D for any global variable. |
| 4951 | # Also find C++ and __fastcall symbols from MSVC++, |
| 4952 | # which start with @ or ?. |
| 4953 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 4954 | " {last_section=section; section=\$ 3};"\ |
| 4955 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 4956 | " \$ 0!~/External *\|/{next};"\ |
| 4957 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 4958 | " {if(hide[section]) next};"\ |
| 4959 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 4960 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 4961 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 4962 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 4963 | " ' prfx=^$ac_symprfx" |
| 4964 | else |
| 4965 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 4966 | fi |
| 4967 | |
| 4968 | # Check to see that the pipe works correctly. |
| 4969 | pipe_works=no |
| 4970 | |
| 4971 | rm -f conftest* |
| 4972 | cat > conftest.$ac_ext <<_LT_EOF |
| 4973 | #ifdef __cplusplus |
| 4974 | extern "C" { |
| 4975 | #endif |
| 4976 | char nm_test_var; |
| 4977 | void nm_test_func(void); |
| 4978 | void nm_test_func(void){} |
| 4979 | #ifdef __cplusplus |
| 4980 | } |
| 4981 | #endif |
| 4982 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 4983 | _LT_EOF |
| 4984 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4985 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4986 | (eval $ac_compile) 2>&5 |
| 4987 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4989 | test $ac_status = 0; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4990 | # Now try to grab the symbols. |
| 4991 | nlist=conftest.nm |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4992 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4993 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 4994 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 4995 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4996 | test $ac_status = 0; } && test -s "$nlist"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4997 | # Try sorting and uniquifying the output. |
| 4998 | if sort "$nlist" | uniq > "$nlist"T; then |
| 4999 | mv -f "$nlist"T "$nlist" |
| 5000 | else |
| 5001 | rm -f "$nlist"T |
| 5002 | fi |
| 5003 | |
| 5004 | # Make sure that we snagged all the symbols we need. |
| 5005 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 5006 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 5007 | cat <<_LT_EOF > conftest.$ac_ext |
| 5008 | #ifdef __cplusplus |
| 5009 | extern "C" { |
| 5010 | #endif |
| 5011 | |
| 5012 | _LT_EOF |
| 5013 | # Now generate the symbol file. |
| 5014 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 5015 | |
| 5016 | cat <<_LT_EOF >> conftest.$ac_ext |
| 5017 | |
| 5018 | /* The mapping between symbol names and symbols. */ |
| 5019 | const struct { |
| 5020 | const char *name; |
| 5021 | void *address; |
| 5022 | } |
| 5023 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 5024 | { |
| 5025 | { "@PROGRAM@", (void *) 0 }, |
| 5026 | _LT_EOF |
| 5027 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 5028 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 5029 | {0, (void *) 0} |
| 5030 | }; |
| 5031 | |
| 5032 | /* This works around a problem in FreeBSD linker */ |
| 5033 | #ifdef FREEBSD_WORKAROUND |
| 5034 | static const void *lt_preloaded_setup() { |
| 5035 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 5036 | } |
| 5037 | #endif |
| 5038 | |
| 5039 | #ifdef __cplusplus |
| 5040 | } |
| 5041 | #endif |
| 5042 | _LT_EOF |
| 5043 | # Now try linking the two files. |
| 5044 | mv conftest.$ac_objext conftstm.$ac_objext |
| 5045 | lt_save_LIBS="$LIBS" |
| 5046 | lt_save_CFLAGS="$CFLAGS" |
| 5047 | LIBS="conftstm.$ac_objext" |
| 5048 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5049 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5050 | (eval $ac_link) 2>&5 |
| 5051 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5052 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5053 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5054 | pipe_works=yes |
| 5055 | fi |
| 5056 | LIBS="$lt_save_LIBS" |
| 5057 | CFLAGS="$lt_save_CFLAGS" |
| 5058 | else |
| 5059 | echo "cannot find nm_test_func in $nlist" >&5 |
| 5060 | fi |
| 5061 | else |
| 5062 | echo "cannot find nm_test_var in $nlist" >&5 |
| 5063 | fi |
| 5064 | else |
| 5065 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 5066 | fi |
| 5067 | else |
| 5068 | echo "$progname: failed program was:" >&5 |
| 5069 | cat conftest.$ac_ext >&5 |
| 5070 | fi |
| 5071 | rm -rf conftest* conftst* |
| 5072 | |
| 5073 | # Do not use the global_symbol_pipe unless it works. |
| 5074 | if test "$pipe_works" = yes; then |
| 5075 | break |
| 5076 | else |
| 5077 | lt_cv_sys_global_symbol_pipe= |
| 5078 | fi |
| 5079 | done |
| 5080 | |
| 5081 | fi |
| 5082 | |
| 5083 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 5084 | lt_cv_sys_global_symbol_to_cdecl= |
| 5085 | fi |
| 5086 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5088 | $as_echo "failed" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5089 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5091 | $as_echo "ok" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5092 | fi |
| 5093 | |
| 5094 | |
| 5095 | |
| 5096 | |
| 5097 | |
| 5098 | |
| 5099 | |
| 5100 | |
| 5101 | |
| 5102 | |
| 5103 | |
| 5104 | |
| 5105 | |
| 5106 | |
| 5107 | |
| 5108 | |
| 5109 | |
| 5110 | |
| 5111 | |
| 5112 | |
| 5113 | |
| 5114 | |
| 5115 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5116 | # Check whether --enable-libtool-lock was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5117 | if test "${enable_libtool_lock+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5118 | enableval=$enable_libtool_lock; |
| 5119 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5120 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5121 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5122 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5123 | # Some flags need to be propagated to the compiler or linker for good |
| 5124 | # libtool support. |
| 5125 | case $host in |
| 5126 | ia64-*-hpux*) |
| 5127 | # Find out which ABI we are using. |
| 5128 | echo 'int i;' > conftest.$ac_ext |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5129 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5130 | (eval $ac_compile) 2>&5 |
| 5131 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5133 | test $ac_status = 0; }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5134 | case `/usr/bin/file conftest.$ac_objext` in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5135 | *ELF-32*) |
| 5136 | HPUX_IA64_MODE="32" |
| 5137 | ;; |
| 5138 | *ELF-64*) |
| 5139 | HPUX_IA64_MODE="64" |
| 5140 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5141 | esac |
| 5142 | fi |
| 5143 | rm -rf conftest* |
| 5144 | ;; |
| 5145 | *-*-irix6*) |
| 5146 | # Find out which ABI we are using. |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 5147 | echo '#line 5147 "configure"' > conftest.$ac_ext |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5148 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5149 | (eval $ac_compile) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5150 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5151 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5152 | test $ac_status = 0; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5153 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 5154 | case `/usr/bin/file conftest.$ac_objext` in |
| 5155 | *32-bit*) |
| 5156 | LD="${LD-ld} -melf32bsmip" |
| 5157 | ;; |
| 5158 | *N32*) |
| 5159 | LD="${LD-ld} -melf32bmipn32" |
| 5160 | ;; |
| 5161 | *64-bit*) |
| 5162 | LD="${LD-ld} -melf64bmip" |
| 5163 | ;; |
| 5164 | esac |
| 5165 | else |
| 5166 | case `/usr/bin/file conftest.$ac_objext` in |
| 5167 | *32-bit*) |
| 5168 | LD="${LD-ld} -32" |
| 5169 | ;; |
| 5170 | *N32*) |
| 5171 | LD="${LD-ld} -n32" |
| 5172 | ;; |
| 5173 | *64-bit*) |
| 5174 | LD="${LD-ld} -64" |
| 5175 | ;; |
| 5176 | esac |
| 5177 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5178 | fi |
| 5179 | rm -rf conftest* |
| 5180 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5181 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5182 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 5183 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5184 | # Find out which ABI we are using. |
| 5185 | echo 'int i;' > conftest.$ac_ext |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5186 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5187 | (eval $ac_compile) 2>&5 |
| 5188 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5189 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5190 | test $ac_status = 0; }; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5191 | case `/usr/bin/file conftest.o` in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5192 | *32-bit*) |
| 5193 | case $host in |
| 5194 | x86_64-*kfreebsd*-gnu) |
| 5195 | LD="${LD-ld} -m elf_i386_fbsd" |
| 5196 | ;; |
| 5197 | x86_64-*linux*) |
| 5198 | LD="${LD-ld} -m elf_i386" |
| 5199 | ;; |
| 5200 | ppc64-*linux*|powerpc64-*linux*) |
| 5201 | LD="${LD-ld} -m elf32ppclinux" |
| 5202 | ;; |
| 5203 | s390x-*linux*) |
| 5204 | LD="${LD-ld} -m elf_s390" |
| 5205 | ;; |
| 5206 | sparc64-*linux*) |
| 5207 | LD="${LD-ld} -m elf32_sparc" |
| 5208 | ;; |
| 5209 | esac |
| 5210 | ;; |
| 5211 | *64-bit*) |
| 5212 | case $host in |
| 5213 | x86_64-*kfreebsd*-gnu) |
| 5214 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 5215 | ;; |
| 5216 | x86_64-*linux*) |
| 5217 | LD="${LD-ld} -m elf_x86_64" |
| 5218 | ;; |
| 5219 | ppc*-*linux*|powerpc*-*linux*) |
| 5220 | LD="${LD-ld} -m elf64ppc" |
| 5221 | ;; |
| 5222 | s390*-*linux*|s390*-*tpf*) |
| 5223 | LD="${LD-ld} -m elf64_s390" |
| 5224 | ;; |
| 5225 | sparc*-*linux*) |
| 5226 | LD="${LD-ld} -m elf64_sparc" |
| 5227 | ;; |
| 5228 | esac |
| 5229 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5230 | esac |
| 5231 | fi |
| 5232 | rm -rf conftest* |
| 5233 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5234 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5235 | *-*-sco3.2v5*) |
| 5236 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5237 | SAVE_CFLAGS="$CFLAGS" |
| 5238 | CFLAGS="$CFLAGS -belf" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5240 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5241 | if ${lt_cv_cc_needs_belf+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5242 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5243 | else |
| 5244 | ac_ext=c |
| 5245 | ac_cpp='$CPP $CPPFLAGS' |
| 5246 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5247 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5248 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5249 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5251 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5252 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5253 | int |
| 5254 | main () |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5255 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5256 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5257 | ; |
| 5258 | return 0; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5259 | } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5260 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5261 | if ac_fn_c_try_link "$LINENO"; then : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5262 | lt_cv_cc_needs_belf=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5263 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5264 | lt_cv_cc_needs_belf=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5265 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5266 | rm -f core conftest.err conftest.$ac_objext \ |
| 5267 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5268 | ac_ext=c |
| 5269 | ac_cpp='$CPP $CPPFLAGS' |
| 5270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5273 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5274 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5276 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5277 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5278 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5279 | CFLAGS="$SAVE_CFLAGS" |
| 5280 | fi |
| 5281 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5282 | sparc*-*solaris*) |
| 5283 | # Find out which ABI we are using. |
| 5284 | echo 'int i;' > conftest.$ac_ext |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5285 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5286 | (eval $ac_compile) 2>&5 |
| 5287 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5288 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5289 | test $ac_status = 0; }; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5290 | case `/usr/bin/file conftest.o` in |
| 5291 | *64-bit*) |
| 5292 | case $lt_cv_prog_gnu_ld in |
| 5293 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5294 | *) |
| 5295 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 5296 | LD="${LD-ld} -64" |
| 5297 | fi |
| 5298 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5299 | esac |
| 5300 | ;; |
| 5301 | esac |
| 5302 | fi |
| 5303 | rm -rf conftest* |
| 5304 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5305 | esac |
| 5306 | |
| 5307 | need_locks="$enable_libtool_lock" |
| 5308 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5309 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5310 | case $host_os in |
| 5311 | rhapsody* | darwin*) |
| 5312 | if test -n "$ac_tool_prefix"; then |
| 5313 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 5314 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5316 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5317 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5318 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5319 | else |
| 5320 | if test -n "$DSYMUTIL"; then |
| 5321 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 5322 | else |
| 5323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5324 | for as_dir in $PATH |
| 5325 | do |
| 5326 | IFS=$as_save_IFS |
| 5327 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5328 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5330 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5332 | break 2 |
| 5333 | fi |
| 5334 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5335 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5336 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5337 | |
| 5338 | fi |
| 5339 | fi |
| 5340 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 5341 | if test -n "$DSYMUTIL"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5343 | $as_echo "$DSYMUTIL" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5344 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5346 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5347 | fi |
| 5348 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5349 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5350 | fi |
| 5351 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 5352 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 5353 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 5354 | set dummy dsymutil; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5356 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5357 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5358 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5359 | else |
| 5360 | if test -n "$ac_ct_DSYMUTIL"; then |
| 5361 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 5362 | else |
| 5363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5364 | for as_dir in $PATH |
| 5365 | do |
| 5366 | IFS=$as_save_IFS |
| 5367 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5368 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5369 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5370 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5372 | break 2 |
| 5373 | fi |
| 5374 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5375 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5376 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5377 | |
| 5378 | fi |
| 5379 | fi |
| 5380 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 5381 | if test -n "$ac_ct_DSYMUTIL"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5383 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5384 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5386 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5387 | fi |
| 5388 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5389 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 5390 | DSYMUTIL=":" |
| 5391 | else |
| 5392 | case $cross_compiling:$ac_tool_warned in |
| 5393 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5395 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5396 | ac_tool_warned=yes ;; |
| 5397 | esac |
| 5398 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 5399 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5400 | else |
| 5401 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 5402 | fi |
| 5403 | |
| 5404 | if test -n "$ac_tool_prefix"; then |
| 5405 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 5406 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5408 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5409 | if ${ac_cv_prog_NMEDIT+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5410 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5411 | else |
| 5412 | if test -n "$NMEDIT"; then |
| 5413 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 5414 | else |
| 5415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5416 | for as_dir in $PATH |
| 5417 | do |
| 5418 | IFS=$as_save_IFS |
| 5419 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5420 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5421 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5422 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5424 | break 2 |
| 5425 | fi |
| 5426 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5427 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5428 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5429 | |
| 5430 | fi |
| 5431 | fi |
| 5432 | NMEDIT=$ac_cv_prog_NMEDIT |
| 5433 | if test -n "$NMEDIT"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5435 | $as_echo "$NMEDIT" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5436 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5438 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5439 | fi |
| 5440 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5441 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5442 | fi |
| 5443 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 5444 | ac_ct_NMEDIT=$NMEDIT |
| 5445 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 5446 | set dummy nmedit; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5448 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5449 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5450 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5451 | else |
| 5452 | if test -n "$ac_ct_NMEDIT"; then |
| 5453 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 5454 | else |
| 5455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5456 | for as_dir in $PATH |
| 5457 | do |
| 5458 | IFS=$as_save_IFS |
| 5459 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5460 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5461 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5462 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5464 | break 2 |
| 5465 | fi |
| 5466 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5467 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5468 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5469 | |
| 5470 | fi |
| 5471 | fi |
| 5472 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 5473 | if test -n "$ac_ct_NMEDIT"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5475 | $as_echo "$ac_ct_NMEDIT" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5476 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5478 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5479 | fi |
| 5480 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5481 | if test "x$ac_ct_NMEDIT" = x; then |
| 5482 | NMEDIT=":" |
| 5483 | else |
| 5484 | case $cross_compiling:$ac_tool_warned in |
| 5485 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5487 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5488 | ac_tool_warned=yes ;; |
| 5489 | esac |
| 5490 | NMEDIT=$ac_ct_NMEDIT |
| 5491 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5492 | else |
| 5493 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 5494 | fi |
| 5495 | |
| 5496 | if test -n "$ac_tool_prefix"; then |
| 5497 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 5498 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5500 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5501 | if ${ac_cv_prog_LIPO+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5502 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5503 | else |
| 5504 | if test -n "$LIPO"; then |
| 5505 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 5506 | else |
| 5507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5508 | for as_dir in $PATH |
| 5509 | do |
| 5510 | IFS=$as_save_IFS |
| 5511 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5512 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5513 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5514 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5516 | break 2 |
| 5517 | fi |
| 5518 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5519 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5520 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5521 | |
| 5522 | fi |
| 5523 | fi |
| 5524 | LIPO=$ac_cv_prog_LIPO |
| 5525 | if test -n "$LIPO"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5527 | $as_echo "$LIPO" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5528 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5530 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5531 | fi |
| 5532 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5533 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5534 | fi |
| 5535 | if test -z "$ac_cv_prog_LIPO"; then |
| 5536 | ac_ct_LIPO=$LIPO |
| 5537 | # Extract the first word of "lipo", so it can be a program name with args. |
| 5538 | set dummy lipo; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5540 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5541 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5542 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5543 | else |
| 5544 | if test -n "$ac_ct_LIPO"; then |
| 5545 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 5546 | else |
| 5547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5548 | for as_dir in $PATH |
| 5549 | do |
| 5550 | IFS=$as_save_IFS |
| 5551 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5552 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5553 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5554 | ac_cv_prog_ac_ct_LIPO="lipo" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5556 | break 2 |
| 5557 | fi |
| 5558 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5559 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5560 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5561 | |
| 5562 | fi |
| 5563 | fi |
| 5564 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 5565 | if test -n "$ac_ct_LIPO"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5567 | $as_echo "$ac_ct_LIPO" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5568 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5570 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5571 | fi |
| 5572 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5573 | if test "x$ac_ct_LIPO" = x; then |
| 5574 | LIPO=":" |
| 5575 | else |
| 5576 | case $cross_compiling:$ac_tool_warned in |
| 5577 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5579 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5580 | ac_tool_warned=yes ;; |
| 5581 | esac |
| 5582 | LIPO=$ac_ct_LIPO |
| 5583 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5584 | else |
| 5585 | LIPO="$ac_cv_prog_LIPO" |
| 5586 | fi |
| 5587 | |
| 5588 | if test -n "$ac_tool_prefix"; then |
| 5589 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 5590 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5592 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5593 | if ${ac_cv_prog_OTOOL+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5594 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5595 | else |
| 5596 | if test -n "$OTOOL"; then |
| 5597 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 5598 | else |
| 5599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5600 | for as_dir in $PATH |
| 5601 | do |
| 5602 | IFS=$as_save_IFS |
| 5603 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5604 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5605 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5606 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5608 | break 2 |
| 5609 | fi |
| 5610 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5611 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5612 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5613 | |
| 5614 | fi |
| 5615 | fi |
| 5616 | OTOOL=$ac_cv_prog_OTOOL |
| 5617 | if test -n "$OTOOL"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5619 | $as_echo "$OTOOL" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5620 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5622 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5623 | fi |
| 5624 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5625 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5626 | fi |
| 5627 | if test -z "$ac_cv_prog_OTOOL"; then |
| 5628 | ac_ct_OTOOL=$OTOOL |
| 5629 | # Extract the first word of "otool", so it can be a program name with args. |
| 5630 | set dummy otool; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5632 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5633 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5634 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5635 | else |
| 5636 | if test -n "$ac_ct_OTOOL"; then |
| 5637 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 5638 | else |
| 5639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5640 | for as_dir in $PATH |
| 5641 | do |
| 5642 | IFS=$as_save_IFS |
| 5643 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5644 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5645 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5646 | ac_cv_prog_ac_ct_OTOOL="otool" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5648 | break 2 |
| 5649 | fi |
| 5650 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5651 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5652 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5653 | |
| 5654 | fi |
| 5655 | fi |
| 5656 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 5657 | if test -n "$ac_ct_OTOOL"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5659 | $as_echo "$ac_ct_OTOOL" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5660 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5662 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5663 | fi |
| 5664 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5665 | if test "x$ac_ct_OTOOL" = x; then |
| 5666 | OTOOL=":" |
| 5667 | else |
| 5668 | case $cross_compiling:$ac_tool_warned in |
| 5669 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5671 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5672 | ac_tool_warned=yes ;; |
| 5673 | esac |
| 5674 | OTOOL=$ac_ct_OTOOL |
| 5675 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5676 | else |
| 5677 | OTOOL="$ac_cv_prog_OTOOL" |
| 5678 | fi |
| 5679 | |
| 5680 | if test -n "$ac_tool_prefix"; then |
| 5681 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 5682 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5684 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5685 | if ${ac_cv_prog_OTOOL64+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5686 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5687 | else |
| 5688 | if test -n "$OTOOL64"; then |
| 5689 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 5690 | else |
| 5691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5692 | for as_dir in $PATH |
| 5693 | do |
| 5694 | IFS=$as_save_IFS |
| 5695 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5696 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5698 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5700 | break 2 |
| 5701 | fi |
| 5702 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5703 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5704 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5705 | |
| 5706 | fi |
| 5707 | fi |
| 5708 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 5709 | if test -n "$OTOOL64"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5711 | $as_echo "$OTOOL64" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5712 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5714 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5715 | fi |
| 5716 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5717 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5718 | fi |
| 5719 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 5720 | ac_ct_OTOOL64=$OTOOL64 |
| 5721 | # Extract the first word of "otool64", so it can be a program name with args. |
| 5722 | set dummy otool64; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5724 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5725 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5726 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5727 | else |
| 5728 | if test -n "$ac_ct_OTOOL64"; then |
| 5729 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 5730 | else |
| 5731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5732 | for as_dir in $PATH |
| 5733 | do |
| 5734 | IFS=$as_save_IFS |
| 5735 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5737 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5738 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5740 | break 2 |
| 5741 | fi |
| 5742 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5743 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5744 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5745 | |
| 5746 | fi |
| 5747 | fi |
| 5748 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 5749 | if test -n "$ac_ct_OTOOL64"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5751 | $as_echo "$ac_ct_OTOOL64" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5752 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5754 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5755 | fi |
| 5756 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5757 | if test "x$ac_ct_OTOOL64" = x; then |
| 5758 | OTOOL64=":" |
| 5759 | else |
| 5760 | case $cross_compiling:$ac_tool_warned in |
| 5761 | yes:) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5763 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5764 | ac_tool_warned=yes ;; |
| 5765 | esac |
| 5766 | OTOOL64=$ac_ct_OTOOL64 |
| 5767 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5768 | else |
| 5769 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 5770 | fi |
| 5771 | |
| 5772 | |
| 5773 | |
| 5774 | |
| 5775 | |
| 5776 | |
| 5777 | |
| 5778 | |
| 5779 | |
| 5780 | |
| 5781 | |
| 5782 | |
| 5783 | |
| 5784 | |
| 5785 | |
| 5786 | |
| 5787 | |
| 5788 | |
| 5789 | |
| 5790 | |
| 5791 | |
| 5792 | |
| 5793 | |
| 5794 | |
| 5795 | |
| 5796 | |
| 5797 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5799 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5800 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5801 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5802 | else |
| 5803 | lt_cv_apple_cc_single_mod=no |
| 5804 | if test -z "${LT_MULTI_MODULE}"; then |
| 5805 | # By default we will add the -single_module flag. You can override |
| 5806 | # by either setting the environment variable LT_MULTI_MODULE |
| 5807 | # non-empty at configure time, or by adding -multi_module to the |
| 5808 | # link flags. |
| 5809 | rm -rf libconftest.dylib* |
| 5810 | echo "int foo(void){return 1;}" > conftest.c |
| 5811 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 5812 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 5813 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 5814 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 5815 | _lt_result=$? |
| 5816 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 5817 | lt_cv_apple_cc_single_mod=yes |
| 5818 | else |
| 5819 | cat conftest.err >&5 |
| 5820 | fi |
| 5821 | rm -rf libconftest.dylib* |
| 5822 | rm -f conftest.* |
| 5823 | fi |
| 5824 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5826 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5828 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5829 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5830 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5831 | else |
| 5832 | lt_cv_ld_exported_symbols_list=no |
| 5833 | save_LDFLAGS=$LDFLAGS |
| 5834 | echo "_main" > conftest.sym |
| 5835 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5837 | /* end confdefs.h. */ |
| 5838 | |
| 5839 | int |
| 5840 | main () |
| 5841 | { |
| 5842 | |
| 5843 | ; |
| 5844 | return 0; |
| 5845 | } |
| 5846 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5847 | if ac_fn_c_try_link "$LINENO"; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5848 | lt_cv_ld_exported_symbols_list=yes |
| 5849 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5850 | lt_cv_ld_exported_symbols_list=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5851 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5852 | rm -f core conftest.err conftest.$ac_objext \ |
| 5853 | conftest$ac_exeext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5854 | LDFLAGS="$save_LDFLAGS" |
| 5855 | |
| 5856 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5858 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5859 | case $host_os in |
| 5860 | rhapsody* | darwin1.[012]) |
| 5861 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 5862 | darwin1.*) |
| 5863 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 5864 | darwin*) # darwin 5.x on |
| 5865 | # if running on 10.5 or later, the deployment target defaults |
| 5866 | # to the OS version, if on x86, and 10.4, the deployment |
| 5867 | # target defaults to 10.4. Don't you love it? |
| 5868 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 5869 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 5870 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 5871 | 10.[012]*) |
| 5872 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 5873 | 10.*) |
| 5874 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 5875 | esac |
| 5876 | ;; |
| 5877 | esac |
| 5878 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 5879 | _lt_dar_single_mod='$single_module' |
| 5880 | fi |
| 5881 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 5882 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 5883 | else |
| 5884 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 5885 | fi |
| 5886 | if test "$DSYMUTIL" != ":"; then |
| 5887 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 5888 | else |
| 5889 | _lt_dsymutil= |
| 5890 | fi |
| 5891 | ;; |
| 5892 | esac |
| 5893 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5894 | ac_ext=c |
| 5895 | ac_cpp='$CPP $CPPFLAGS' |
| 5896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5900 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5901 | # On Suns, sometimes $CPP names a directory. |
| 5902 | if test -n "$CPP" && test -d "$CPP"; then |
| 5903 | CPP= |
| 5904 | fi |
| 5905 | if test -z "$CPP"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5906 | if ${ac_cv_prog_CPP+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5907 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5908 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5909 | # Double quotes because CPP needs to be expanded |
| 5910 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5911 | do |
| 5912 | ac_preproc_ok=false |
| 5913 | for ac_c_preproc_warn_flag in '' yes |
| 5914 | do |
| 5915 | # Use a header file that comes with gcc, so configuring glibc |
| 5916 | # with a fresh cross-compiler works. |
| 5917 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5918 | # <limits.h> exists even on freestanding compilers. |
| 5919 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5920 | # not just through cpp. "Syntax error" is here to catch this case. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5922 | /* end confdefs.h. */ |
| 5923 | #ifdef __STDC__ |
| 5924 | # include <limits.h> |
| 5925 | #else |
| 5926 | # include <assert.h> |
| 5927 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5928 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5929 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5930 | if ac_fn_c_try_cpp "$LINENO"; then : |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5931 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5932 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5933 | # Broken: fails on valid input. |
| 5934 | continue |
| 5935 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5936 | rm -f conftest.err conftest.i conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5937 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5938 | # OK, works on sane cases. Now check whether nonexistent headers |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5939 | # can be detected and how. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5941 | /* end confdefs.h. */ |
| 5942 | #include <ac_nonexistent.h> |
| 5943 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5944 | if ac_fn_c_try_cpp "$LINENO"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5945 | # Broken: success on invalid input. |
| 5946 | continue |
| 5947 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5948 | # Passes both tests. |
| 5949 | ac_preproc_ok=: |
| 5950 | break |
| 5951 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5952 | rm -f conftest.err conftest.i conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5953 | |
| 5954 | done |
| 5955 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5956 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 5957 | if $ac_preproc_ok; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5958 | break |
| 5959 | fi |
| 5960 | |
| 5961 | done |
| 5962 | ac_cv_prog_CPP=$CPP |
| 5963 | |
| 5964 | fi |
| 5965 | CPP=$ac_cv_prog_CPP |
| 5966 | else |
| 5967 | ac_cv_prog_CPP=$CPP |
| 5968 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5970 | $as_echo "$CPP" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5971 | ac_preproc_ok=false |
| 5972 | for ac_c_preproc_warn_flag in '' yes |
| 5973 | do |
| 5974 | # Use a header file that comes with gcc, so configuring glibc |
| 5975 | # with a fresh cross-compiler works. |
| 5976 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5977 | # <limits.h> exists even on freestanding compilers. |
| 5978 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5979 | # not just through cpp. "Syntax error" is here to catch this case. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5981 | /* end confdefs.h. */ |
| 5982 | #ifdef __STDC__ |
| 5983 | # include <limits.h> |
| 5984 | #else |
| 5985 | # include <assert.h> |
| 5986 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5987 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5988 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5989 | if ac_fn_c_try_cpp "$LINENO"; then : |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5990 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5991 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5992 | # Broken: fails on valid input. |
| 5993 | continue |
| 5994 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5995 | rm -f conftest.err conftest.i conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5996 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5997 | # OK, works on sane cases. Now check whether nonexistent headers |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5998 | # can be detected and how. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 5999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6000 | /* end confdefs.h. */ |
| 6001 | #include <ac_nonexistent.h> |
| 6002 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6003 | if ac_fn_c_try_cpp "$LINENO"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6004 | # Broken: success on invalid input. |
| 6005 | continue |
| 6006 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6007 | # Passes both tests. |
| 6008 | ac_preproc_ok=: |
| 6009 | break |
| 6010 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6011 | rm -f conftest.err conftest.i conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6012 | |
| 6013 | done |
| 6014 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6015 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 6016 | if $ac_preproc_ok; then : |
| 6017 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6018 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6019 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6020 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6021 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 6022 | See \`config.log' for more details" "$LINENO" 5; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6023 | fi |
| 6024 | |
| 6025 | ac_ext=c |
| 6026 | ac_cpp='$CPP $CPPFLAGS' |
| 6027 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6028 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6029 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6030 | |
| 6031 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6033 | $as_echo_n "checking for ANSI C header files... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6034 | if ${ac_cv_header_stdc+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6035 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6036 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6038 | /* end confdefs.h. */ |
| 6039 | #include <stdlib.h> |
| 6040 | #include <stdarg.h> |
| 6041 | #include <string.h> |
| 6042 | #include <float.h> |
| 6043 | |
| 6044 | int |
| 6045 | main () |
| 6046 | { |
| 6047 | |
| 6048 | ; |
| 6049 | return 0; |
| 6050 | } |
| 6051 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6052 | if ac_fn_c_try_compile "$LINENO"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6053 | ac_cv_header_stdc=yes |
| 6054 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6055 | ac_cv_header_stdc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6056 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6058 | |
| 6059 | if test $ac_cv_header_stdc = yes; then |
| 6060 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6062 | /* end confdefs.h. */ |
| 6063 | #include <string.h> |
| 6064 | |
| 6065 | _ACEOF |
| 6066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6067 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6068 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6069 | else |
| 6070 | ac_cv_header_stdc=no |
| 6071 | fi |
| 6072 | rm -f conftest* |
| 6073 | |
| 6074 | fi |
| 6075 | |
| 6076 | if test $ac_cv_header_stdc = yes; then |
| 6077 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6079 | /* end confdefs.h. */ |
| 6080 | #include <stdlib.h> |
| 6081 | |
| 6082 | _ACEOF |
| 6083 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6084 | $EGREP "free" >/dev/null 2>&1; then : |
| 6085 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6086 | else |
| 6087 | ac_cv_header_stdc=no |
| 6088 | fi |
| 6089 | rm -f conftest* |
| 6090 | |
| 6091 | fi |
| 6092 | |
| 6093 | if test $ac_cv_header_stdc = yes; then |
| 6094 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6095 | if test "$cross_compiling" = yes; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6096 | : |
| 6097 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6099 | /* end confdefs.h. */ |
| 6100 | #include <ctype.h> |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6101 | #include <stdlib.h> |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6102 | #if ((' ' & 0x0FF) == 0x020) |
| 6103 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6104 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6105 | #else |
| 6106 | # define ISLOWER(c) \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6107 | (('a' <= (c) && (c) <= 'i') \ |
| 6108 | || ('j' <= (c) && (c) <= 'r') \ |
| 6109 | || ('s' <= (c) && (c) <= 'z')) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6110 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6111 | #endif |
| 6112 | |
| 6113 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6114 | int |
| 6115 | main () |
| 6116 | { |
| 6117 | int i; |
| 6118 | for (i = 0; i < 256; i++) |
| 6119 | if (XOR (islower (i), ISLOWER (i)) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6120 | || toupper (i) != TOUPPER (i)) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6121 | return 2; |
| 6122 | return 0; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6123 | } |
| 6124 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6125 | if ac_fn_c_try_run "$LINENO"; then : |
| 6126 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6127 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6128 | ac_cv_header_stdc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6129 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6130 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6131 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6132 | fi |
| 6133 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6134 | fi |
| 6135 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6137 | $as_echo "$ac_cv_header_stdc" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6138 | if test $ac_cv_header_stdc = yes; then |
| 6139 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6140 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6141 | |
| 6142 | fi |
| 6143 | |
| 6144 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6145 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6146 | inttypes.h stdint.h unistd.h |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6147 | do : |
| 6148 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6149 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6150 | " |
| 6151 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6152 | cat >>confdefs.h <<_ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6153 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6154 | _ACEOF |
| 6155 | |
| 6156 | fi |
| 6157 | |
| 6158 | done |
| 6159 | |
| 6160 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6161 | for ac_header in dlfcn.h |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6162 | do : |
| 6163 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 6164 | " |
| 6165 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6166 | cat >>confdefs.h <<_ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6167 | #define HAVE_DLFCN_H 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6168 | _ACEOF |
| 6169 | |
| 6170 | fi |
| 6171 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6172 | done |
| 6173 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6174 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6175 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6176 | # Set options |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6177 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6178 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6179 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6180 | enable_dlopen=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6181 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6182 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6183 | enable_win32_dll=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6184 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6185 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6186 | # Check whether --enable-shared was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6187 | if test "${enable_shared+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6188 | enableval=$enable_shared; p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6189 | case $enableval in |
| 6190 | yes) enable_shared=yes ;; |
| 6191 | no) enable_shared=no ;; |
| 6192 | *) |
| 6193 | enable_shared=no |
| 6194 | # Look at the argument we got. We use all the common list separators. |
| 6195 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6196 | for pkg in $enableval; do |
| 6197 | IFS="$lt_save_ifs" |
| 6198 | if test "X$pkg" = "X$p"; then |
| 6199 | enable_shared=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6200 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6201 | done |
| 6202 | IFS="$lt_save_ifs" |
| 6203 | ;; |
| 6204 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6205 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6206 | enable_shared=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6207 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6208 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6209 | |
| 6210 | |
| 6211 | |
| 6212 | |
| 6213 | |
| 6214 | |
| 6215 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6216 | |
| 6217 | # Check whether --enable-static was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6218 | if test "${enable_static+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6219 | enableval=$enable_static; p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6220 | case $enableval in |
| 6221 | yes) enable_static=yes ;; |
| 6222 | no) enable_static=no ;; |
| 6223 | *) |
| 6224 | enable_static=no |
| 6225 | # Look at the argument we got. We use all the common list separators. |
| 6226 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6227 | for pkg in $enableval; do |
| 6228 | IFS="$lt_save_ifs" |
| 6229 | if test "X$pkg" = "X$p"; then |
| 6230 | enable_static=yes |
| 6231 | fi |
| 6232 | done |
| 6233 | IFS="$lt_save_ifs" |
| 6234 | ;; |
| 6235 | esac |
| 6236 | else |
| 6237 | enable_static=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6238 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6239 | |
| 6240 | |
| 6241 | |
| 6242 | |
| 6243 | |
| 6244 | |
| 6245 | |
| 6246 | |
| 6247 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6248 | |
| 6249 | # Check whether --with-pic was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6250 | if test "${with_pic+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6251 | withval=$with_pic; pic_mode="$withval" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6252 | else |
| 6253 | pic_mode=default |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6254 | fi |
| 6255 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6256 | |
| 6257 | test -z "$pic_mode" && pic_mode=default |
| 6258 | |
| 6259 | |
| 6260 | |
| 6261 | |
| 6262 | |
| 6263 | |
| 6264 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6265 | # Check whether --enable-fast-install was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6266 | if test "${enable_fast_install+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6267 | enableval=$enable_fast_install; p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6268 | case $enableval in |
| 6269 | yes) enable_fast_install=yes ;; |
| 6270 | no) enable_fast_install=no ;; |
| 6271 | *) |
| 6272 | enable_fast_install=no |
| 6273 | # Look at the argument we got. We use all the common list separators. |
| 6274 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6275 | for pkg in $enableval; do |
| 6276 | IFS="$lt_save_ifs" |
| 6277 | if test "X$pkg" = "X$p"; then |
| 6278 | enable_fast_install=yes |
| 6279 | fi |
| 6280 | done |
| 6281 | IFS="$lt_save_ifs" |
| 6282 | ;; |
| 6283 | esac |
| 6284 | else |
| 6285 | enable_fast_install=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6286 | fi |
| 6287 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6288 | |
| 6289 | |
| 6290 | |
| 6291 | |
| 6292 | |
| 6293 | |
| 6294 | |
| 6295 | |
| 6296 | |
| 6297 | |
| 6298 | # This can be used to rebuild libtool when needed |
| 6299 | LIBTOOL_DEPS="$ltmain" |
| 6300 | |
| 6301 | # Always use our own libtool. |
| 6302 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 6303 | |
| 6304 | |
| 6305 | |
| 6306 | |
| 6307 | |
| 6308 | |
| 6309 | |
| 6310 | |
| 6311 | |
| 6312 | |
| 6313 | |
| 6314 | |
| 6315 | |
| 6316 | |
| 6317 | |
| 6318 | |
| 6319 | |
| 6320 | |
| 6321 | |
| 6322 | |
| 6323 | |
| 6324 | |
| 6325 | |
| 6326 | |
| 6327 | |
| 6328 | test -z "$LN_S" && LN_S="ln -s" |
| 6329 | |
| 6330 | |
| 6331 | |
| 6332 | |
| 6333 | |
| 6334 | |
| 6335 | |
| 6336 | |
| 6337 | |
| 6338 | |
| 6339 | |
| 6340 | |
| 6341 | |
| 6342 | |
| 6343 | if test -n "${ZSH_VERSION+set}" ; then |
| 6344 | setopt NO_GLOB_SUBST |
| 6345 | fi |
| 6346 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6348 | $as_echo_n "checking for objdir... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6349 | if ${lt_cv_objdir+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6350 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6351 | else |
| 6352 | rm -f .libs 2>/dev/null |
| 6353 | mkdir .libs 2>/dev/null |
| 6354 | if test -d .libs; then |
| 6355 | lt_cv_objdir=.libs |
| 6356 | else |
| 6357 | # MS-DOS does not allow filenames that begin with a dot. |
| 6358 | lt_cv_objdir=_libs |
| 6359 | fi |
| 6360 | rmdir .libs 2>/dev/null |
| 6361 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6363 | $as_echo "$lt_cv_objdir" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6364 | objdir=$lt_cv_objdir |
| 6365 | |
| 6366 | |
| 6367 | |
| 6368 | |
| 6369 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6370 | cat >>confdefs.h <<_ACEOF |
| 6371 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 6372 | _ACEOF |
| 6373 | |
| 6374 | |
| 6375 | |
| 6376 | |
| 6377 | |
| 6378 | |
| 6379 | |
| 6380 | |
| 6381 | |
| 6382 | |
| 6383 | |
| 6384 | |
| 6385 | |
| 6386 | |
| 6387 | |
| 6388 | |
| 6389 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6390 | case $host_os in |
| 6391 | aix3*) |
| 6392 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6393 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6394 | # vanish in a puff of smoke. |
| 6395 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6396 | COLLECT_NAMES= |
| 6397 | export COLLECT_NAMES |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6398 | fi |
| 6399 | ;; |
| 6400 | esac |
| 6401 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6402 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6403 | # metacharacters that are still active within double-quoted strings. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6404 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6405 | |
| 6406 | # Same as above, but do not quote variable references. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6407 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6408 | |
| 6409 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6410 | # double_quote_subst'ed string. |
| 6411 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6412 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6413 | # Sed substitution to delay expansion of an escaped single quote. |
| 6414 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 6415 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6416 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6417 | no_glob_subst='s/\*/\\\*/g' |
| 6418 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6419 | # Global variables: |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6420 | ofile=libtool |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6421 | can_build_shared=yes |
| 6422 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6423 | # All known linkers require a `.a' archive for static linking (except MSVC, |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6424 | # which needs '.lib'). |
| 6425 | libext=a |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6426 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6427 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6428 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6429 | old_CC="$CC" |
| 6430 | old_CFLAGS="$CFLAGS" |
| 6431 | |
| 6432 | # Set sane defaults for various variables |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6433 | test -z "$CC" && CC=cc |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6434 | test -z "$LTCC" && LTCC=$CC |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6435 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6436 | test -z "$LD" && LD=ld |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6437 | test -z "$ac_objext" && ac_objext=o |
| 6438 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6439 | for cc_temp in $compiler""; do |
| 6440 | case $cc_temp in |
| 6441 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6442 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6443 | \-*) ;; |
| 6444 | *) break;; |
| 6445 | esac |
| 6446 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6447 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6448 | |
| 6449 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6450 | # Only perform the check for file, if the check method requires it |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6451 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6452 | case $deplibs_check_method in |
| 6453 | file_magic*) |
| 6454 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6456 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6457 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6458 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6459 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6460 | case $MAGIC_CMD in |
| 6461 | [\\/*] | ?:[\\/]*) |
| 6462 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6463 | ;; |
| 6464 | *) |
| 6465 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6466 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6467 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6468 | for ac_dir in $ac_dummy; do |
| 6469 | IFS="$lt_save_ifs" |
| 6470 | test -z "$ac_dir" && ac_dir=. |
| 6471 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 6472 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 6473 | if test -n "$file_magic_test_file"; then |
| 6474 | case $deplibs_check_method in |
| 6475 | "file_magic "*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6476 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6477 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6478 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6479 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6480 | : |
| 6481 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6482 | cat <<_LT_EOF 1>&2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6483 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6484 | *** Warning: the command libtool uses to detect shared libraries, |
| 6485 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6486 | *** The result is that libtool may fail to recognize shared libraries |
| 6487 | *** as such. This will affect the creation of libtool libraries that |
| 6488 | *** depend on shared libraries, but programs linked with such libtool |
| 6489 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6490 | *** may want to report the problem to your system manager and/or to |
| 6491 | *** bug-libtool@gnu.org |
| 6492 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6493 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6494 | fi ;; |
| 6495 | esac |
| 6496 | fi |
| 6497 | break |
| 6498 | fi |
| 6499 | done |
| 6500 | IFS="$lt_save_ifs" |
| 6501 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6502 | ;; |
| 6503 | esac |
| 6504 | fi |
| 6505 | |
| 6506 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6507 | if test -n "$MAGIC_CMD"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6509 | $as_echo "$MAGIC_CMD" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6510 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6512 | $as_echo "no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6513 | fi |
| 6514 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6515 | |
| 6516 | |
| 6517 | |
| 6518 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6519 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 6520 | if test -n "$ac_tool_prefix"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6522 | $as_echo_n "checking for file... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6523 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6524 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6525 | else |
| 6526 | case $MAGIC_CMD in |
| 6527 | [\\/*] | ?:[\\/]*) |
| 6528 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6529 | ;; |
| 6530 | *) |
| 6531 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6532 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6533 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6534 | for ac_dir in $ac_dummy; do |
| 6535 | IFS="$lt_save_ifs" |
| 6536 | test -z "$ac_dir" && ac_dir=. |
| 6537 | if test -f $ac_dir/file; then |
| 6538 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 6539 | if test -n "$file_magic_test_file"; then |
| 6540 | case $deplibs_check_method in |
| 6541 | "file_magic "*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6542 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6543 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6544 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6545 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6546 | : |
| 6547 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6548 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6549 | |
| 6550 | *** Warning: the command libtool uses to detect shared libraries, |
| 6551 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6552 | *** The result is that libtool may fail to recognize shared libraries |
| 6553 | *** as such. This will affect the creation of libtool libraries that |
| 6554 | *** depend on shared libraries, but programs linked with such libtool |
| 6555 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6556 | *** may want to report the problem to your system manager and/or to |
| 6557 | *** bug-libtool@gnu.org |
| 6558 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6559 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6560 | fi ;; |
| 6561 | esac |
| 6562 | fi |
| 6563 | break |
| 6564 | fi |
| 6565 | done |
| 6566 | IFS="$lt_save_ifs" |
| 6567 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6568 | ;; |
| 6569 | esac |
| 6570 | fi |
| 6571 | |
| 6572 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6573 | if test -n "$MAGIC_CMD"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6575 | $as_echo "$MAGIC_CMD" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6576 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6578 | $as_echo "no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6579 | fi |
| 6580 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6581 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6582 | else |
| 6583 | MAGIC_CMD=: |
| 6584 | fi |
| 6585 | fi |
| 6586 | |
| 6587 | fi |
| 6588 | ;; |
| 6589 | esac |
| 6590 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6591 | # Use C for the default configuration in the libtool script |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6592 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6593 | lt_save_CC="$CC" |
| 6594 | ac_ext=c |
| 6595 | ac_cpp='$CPP $CPPFLAGS' |
| 6596 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6597 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6598 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6599 | |
| 6600 | |
| 6601 | # Source file extension for C test sources. |
| 6602 | ac_ext=c |
| 6603 | |
| 6604 | # Object file extension for compiled C test sources. |
| 6605 | objext=o |
| 6606 | objext=$objext |
| 6607 | |
| 6608 | # Code to be used in simple compile tests |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6609 | lt_simple_compile_test_code="int some_variable = 0;" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6610 | |
| 6611 | # Code to be used in simple link tests |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6612 | lt_simple_link_test_code='int main(){return(0);}' |
| 6613 | |
| 6614 | |
| 6615 | |
| 6616 | |
| 6617 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6618 | |
| 6619 | |
| 6620 | # If no C compiler was specified, use CC. |
| 6621 | LTCC=${LTCC-"$CC"} |
| 6622 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6623 | # If no C compiler flags were specified, use CFLAGS. |
| 6624 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6625 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6626 | # Allow CC to be a program name with arguments. |
| 6627 | compiler=$CC |
| 6628 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6629 | # Save the default compiler, since it gets overwritten when the other |
| 6630 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 6631 | compiler_DEFAULT=$CC |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6632 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6633 | # save warnings/boilerplate of simple test code |
| 6634 | ac_outfile=conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6635 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6636 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 6637 | _lt_compiler_boilerplate=`cat conftest.err` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6638 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6639 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6640 | ac_outfile=conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6641 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6642 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 6643 | _lt_linker_boilerplate=`cat conftest.err` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6644 | $RM -r conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6645 | |
| 6646 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6647 | if test -n "$compiler"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6648 | |
| 6649 | lt_prog_compiler_no_builtin_flag= |
| 6650 | |
| 6651 | if test "$GCC" = yes; then |
| 6652 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 6653 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6655 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6656 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6657 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6658 | else |
| 6659 | lt_cv_prog_compiler_rtti_exceptions=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6660 | ac_outfile=conftest.$ac_objext |
| 6661 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6662 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 6663 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6664 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6665 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6666 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6667 | # The option is referenced via a variable to avoid confusing sed. |
| 6668 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6669 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6670 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6671 | -e 's:$: $lt_compiler_flag:'` |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 6672 | (eval echo "\"\$as_me:6672: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6673 | (eval "$lt_compile" 2>conftest.err) |
| 6674 | ac_status=$? |
| 6675 | cat conftest.err >&5 |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 6676 | echo "$as_me:6676: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6677 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6678 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6679 | # So say no if there are warnings other than the usual output. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6680 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6681 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6682 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6683 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 6684 | fi |
| 6685 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6686 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6687 | |
| 6688 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6690 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6691 | |
| 6692 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 6693 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 6694 | else |
| 6695 | : |
| 6696 | fi |
| 6697 | |
| 6698 | fi |
| 6699 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6700 | |
| 6701 | |
| 6702 | |
| 6703 | |
| 6704 | |
| 6705 | lt_prog_compiler_wl= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6706 | lt_prog_compiler_pic= |
| 6707 | lt_prog_compiler_static= |
| 6708 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6710 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6711 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6712 | if test "$GCC" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6713 | lt_prog_compiler_wl='-Wl,' |
| 6714 | lt_prog_compiler_static='-static' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6715 | |
| 6716 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6717 | aix*) |
| 6718 | # All AIX code is PIC. |
| 6719 | if test "$host_cpu" = ia64; then |
| 6720 | # AIX 5 now supports IA64 processor |
| 6721 | lt_prog_compiler_static='-Bstatic' |
| 6722 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6723 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6724 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6725 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6726 | case $host_cpu in |
| 6727 | powerpc) |
| 6728 | # see comment about AmigaOS4 .so support |
| 6729 | lt_prog_compiler_pic='-fPIC' |
| 6730 | ;; |
| 6731 | m68k) |
| 6732 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 6733 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 6734 | # like `-m68040'. |
| 6735 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 6736 | ;; |
| 6737 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6738 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6739 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6740 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6741 | # PIC is the default for these OSes. |
| 6742 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6743 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6744 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6745 | # This hack is so that the source file can tell whether it is being |
| 6746 | # built for inclusion in a dll (and should export symbols for example). |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6747 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 6748 | # (--disable-auto-import) libraries |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6749 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6750 | ;; |
| 6751 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6752 | darwin* | rhapsody*) |
| 6753 | # PIC is the default on this platform |
| 6754 | # Common symbols not allowed in MH_DYLIB files |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6755 | lt_prog_compiler_pic='-fno-common' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6756 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6757 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6758 | hpux*) |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6759 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 6760 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 6761 | # sets the default TLS model and affects inlining. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6762 | case $host_cpu in |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6763 | hppa*64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6764 | # +Z the default |
| 6765 | ;; |
| 6766 | *) |
| 6767 | lt_prog_compiler_pic='-fPIC' |
| 6768 | ;; |
| 6769 | esac |
| 6770 | ;; |
| 6771 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6772 | interix[3-9]*) |
| 6773 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 6774 | # Instead, we relocate shared libraries at runtime. |
| 6775 | ;; |
| 6776 | |
| 6777 | msdosdjgpp*) |
| 6778 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6779 | # on systems that don't support them. |
| 6780 | lt_prog_compiler_can_build_shared=no |
| 6781 | enable_shared=no |
| 6782 | ;; |
| 6783 | |
| 6784 | *nto* | *qnx*) |
| 6785 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 6786 | # it will coredump. |
| 6787 | lt_prog_compiler_pic='-fPIC -shared' |
| 6788 | ;; |
| 6789 | |
| 6790 | sysv4*MP*) |
| 6791 | if test -d /usr/nec; then |
| 6792 | lt_prog_compiler_pic=-Kconform_pic |
| 6793 | fi |
| 6794 | ;; |
| 6795 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6796 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6797 | lt_prog_compiler_pic='-fPIC' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6798 | ;; |
| 6799 | esac |
| 6800 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6801 | # PORTME Check for flag to pass linker flags through the system compiler. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6802 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6803 | aix*) |
| 6804 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6805 | if test "$host_cpu" = ia64; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6806 | # AIX 5 now supports IA64 processor |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6807 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6808 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6809 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6810 | fi |
| 6811 | ;; |
| 6812 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6813 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6814 | # This hack is so that the source file can tell whether it is being |
| 6815 | # built for inclusion in a dll (and should export symbols for example). |
| 6816 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6817 | ;; |
| 6818 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6819 | hpux9* | hpux10* | hpux11*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6820 | lt_prog_compiler_wl='-Wl,' |
| 6821 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6822 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6823 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6824 | hppa*64*|ia64*) |
| 6825 | # +Z the default |
| 6826 | ;; |
| 6827 | *) |
| 6828 | lt_prog_compiler_pic='+Z' |
| 6829 | ;; |
| 6830 | esac |
| 6831 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 6832 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6833 | ;; |
| 6834 | |
| 6835 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6836 | lt_prog_compiler_wl='-Wl,' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6837 | # PIC (with -KPIC) is the default. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6838 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6839 | ;; |
| 6840 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6841 | linux* | k*bsd*-gnu) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6842 | case $cc_basename in |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6843 | # old Intel for x86_64 which still supported -KPIC. |
| 6844 | ecc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6845 | lt_prog_compiler_wl='-Wl,' |
| 6846 | lt_prog_compiler_pic='-KPIC' |
| 6847 | lt_prog_compiler_static='-static' |
| 6848 | ;; |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6849 | # icc used to be incompatible with GCC. |
| 6850 | # ICC 10 doesn't accept -KPIC any more. |
| 6851 | icc* | ifort*) |
| 6852 | lt_prog_compiler_wl='-Wl,' |
| 6853 | lt_prog_compiler_pic='-fPIC' |
| 6854 | lt_prog_compiler_static='-static' |
| 6855 | ;; |
| 6856 | # Lahey Fortran 8.1. |
| 6857 | lf95*) |
| 6858 | lt_prog_compiler_wl='-Wl,' |
| 6859 | lt_prog_compiler_pic='--shared' |
| 6860 | lt_prog_compiler_static='--static' |
| 6861 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6862 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 6863 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 6864 | # which looks to be a dead project) |
| 6865 | lt_prog_compiler_wl='-Wl,' |
| 6866 | lt_prog_compiler_pic='-fpic' |
| 6867 | lt_prog_compiler_static='-Bstatic' |
| 6868 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6869 | ccc*) |
| 6870 | lt_prog_compiler_wl='-Wl,' |
| 6871 | # All Alpha code is PIC. |
| 6872 | lt_prog_compiler_static='-non_shared' |
| 6873 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6874 | xl*) |
| 6875 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 6876 | lt_prog_compiler_wl='-Wl,' |
| 6877 | lt_prog_compiler_pic='-qpic' |
| 6878 | lt_prog_compiler_static='-qstaticlink' |
| 6879 | ;; |
| 6880 | *) |
| 6881 | case `$CC -V 2>&1 | sed 5q` in |
| 6882 | *Sun\ C*) |
| 6883 | # Sun C 5.9 |
| 6884 | lt_prog_compiler_pic='-KPIC' |
| 6885 | lt_prog_compiler_static='-Bstatic' |
| 6886 | lt_prog_compiler_wl='-Wl,' |
| 6887 | ;; |
| 6888 | *Sun\ F*) |
| 6889 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 6890 | lt_prog_compiler_pic='-KPIC' |
| 6891 | lt_prog_compiler_static='-Bstatic' |
| 6892 | lt_prog_compiler_wl='' |
| 6893 | ;; |
| 6894 | esac |
| 6895 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6896 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6897 | ;; |
| 6898 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6899 | newsos6) |
| 6900 | lt_prog_compiler_pic='-KPIC' |
| 6901 | lt_prog_compiler_static='-Bstatic' |
| 6902 | ;; |
| 6903 | |
| 6904 | *nto* | *qnx*) |
| 6905 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 6906 | # it will coredump. |
| 6907 | lt_prog_compiler_pic='-fPIC -shared' |
| 6908 | ;; |
| 6909 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6910 | osf3* | osf4* | osf5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6911 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6912 | # All OSF/1 code is PIC. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6913 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6914 | ;; |
| 6915 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6916 | rdos*) |
| 6917 | lt_prog_compiler_static='-non_shared' |
| 6918 | ;; |
| 6919 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6920 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6921 | lt_prog_compiler_pic='-KPIC' |
| 6922 | lt_prog_compiler_static='-Bstatic' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6923 | case $cc_basename in |
| 6924 | f77* | f90* | f95*) |
| 6925 | lt_prog_compiler_wl='-Qoption ld ';; |
| 6926 | *) |
| 6927 | lt_prog_compiler_wl='-Wl,';; |
| 6928 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6929 | ;; |
| 6930 | |
| 6931 | sunos4*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6932 | lt_prog_compiler_wl='-Qoption ld ' |
| 6933 | lt_prog_compiler_pic='-PIC' |
| 6934 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6935 | ;; |
| 6936 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6937 | sysv4 | sysv4.2uw2* | sysv4.3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6938 | lt_prog_compiler_wl='-Wl,' |
| 6939 | lt_prog_compiler_pic='-KPIC' |
| 6940 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6941 | ;; |
| 6942 | |
| 6943 | sysv4*MP*) |
| 6944 | if test -d /usr/nec ;then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6945 | lt_prog_compiler_pic='-Kconform_pic' |
| 6946 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6947 | fi |
| 6948 | ;; |
| 6949 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6950 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 6951 | lt_prog_compiler_wl='-Wl,' |
| 6952 | lt_prog_compiler_pic='-KPIC' |
| 6953 | lt_prog_compiler_static='-Bstatic' |
| 6954 | ;; |
| 6955 | |
| 6956 | unicos*) |
| 6957 | lt_prog_compiler_wl='-Wl,' |
| 6958 | lt_prog_compiler_can_build_shared=no |
| 6959 | ;; |
| 6960 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6961 | uts4*) |
| 6962 | lt_prog_compiler_pic='-pic' |
| 6963 | lt_prog_compiler_static='-Bstatic' |
| 6964 | ;; |
| 6965 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6966 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6967 | lt_prog_compiler_can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6968 | ;; |
| 6969 | esac |
| 6970 | fi |
| 6971 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6972 | case $host_os in |
| 6973 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6974 | *djgpp*) |
| 6975 | lt_prog_compiler_pic= |
| 6976 | ;; |
| 6977 | *) |
| 6978 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 6979 | ;; |
| 6980 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6982 | $as_echo "$lt_prog_compiler_pic" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6983 | |
| 6984 | |
| 6985 | |
| 6986 | |
| 6987 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6988 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6989 | # |
| 6990 | # Check to make sure the PIC flag actually works. |
| 6991 | # |
| 6992 | if test -n "$lt_prog_compiler_pic"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6994 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 6995 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6996 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6997 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6998 | lt_cv_prog_compiler_pic_works=no |
| 6999 | ac_outfile=conftest.$ac_objext |
| 7000 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7001 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7002 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7003 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7004 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7005 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7006 | # The option is referenced via a variable to avoid confusing sed. |
| 7007 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7008 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7009 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7010 | -e 's:$: $lt_compiler_flag:'` |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 7011 | (eval echo "\"\$as_me:7011: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7012 | (eval "$lt_compile" 2>conftest.err) |
| 7013 | ac_status=$? |
| 7014 | cat conftest.err >&5 |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 7015 | echo "$as_me:7015: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7016 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7017 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7018 | # So say no if there are warnings other than the usual output. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7019 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7020 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7021 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7022 | lt_cv_prog_compiler_pic_works=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7023 | fi |
| 7024 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7025 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7026 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7027 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7029 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7030 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7031 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7032 | case $lt_prog_compiler_pic in |
| 7033 | "" | " "*) ;; |
| 7034 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7035 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7036 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7037 | lt_prog_compiler_pic= |
| 7038 | lt_prog_compiler_can_build_shared=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7039 | fi |
| 7040 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7041 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7042 | |
| 7043 | |
| 7044 | |
| 7045 | |
| 7046 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7047 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7048 | # |
| 7049 | # Check to make sure the static flag actually works. |
| 7050 | # |
| 7051 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7053 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7054 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7055 | $as_echo_n "(cached) " >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7056 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7057 | lt_cv_prog_compiler_static_works=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7058 | save_LDFLAGS="$LDFLAGS" |
| 7059 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7060 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7061 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7062 | # The linker can only warn and ignore the option if not recognized |
| 7063 | # So say no if there are warnings |
| 7064 | if test -s conftest.err; then |
| 7065 | # Append any errors to the config.log. |
| 7066 | cat conftest.err 1>&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7067 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7068 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7069 | if diff conftest.exp conftest.er2 >/dev/null; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7070 | lt_cv_prog_compiler_static_works=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7071 | fi |
| 7072 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7073 | lt_cv_prog_compiler_static_works=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7074 | fi |
| 7075 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7076 | $RM -r conftest* |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7077 | LDFLAGS="$save_LDFLAGS" |
| 7078 | |
| 7079 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7081 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7082 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7083 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7084 | : |
| 7085 | else |
| 7086 | lt_prog_compiler_static= |
| 7087 | fi |
| 7088 | |
| 7089 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7090 | |
| 7091 | |
| 7092 | |
| 7093 | |
| 7094 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7096 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7097 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7098 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7099 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7100 | lt_cv_prog_compiler_c_o=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7101 | $RM -r conftest 2>/dev/null |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7102 | mkdir conftest |
| 7103 | cd conftest |
| 7104 | mkdir out |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7105 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7106 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7107 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7108 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7109 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7110 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7111 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7112 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7113 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7114 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7115 | -e 's:$: $lt_compiler_flag:'` |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 7116 | (eval echo "\"\$as_me:7116: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7117 | (eval "$lt_compile" 2>out/conftest.err) |
| 7118 | ac_status=$? |
| 7119 | cat out/conftest.err >&5 |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 7120 | echo "$as_me:7120: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7121 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7122 | then |
| 7123 | # The compiler can only warn and ignore the option if not recognized |
| 7124 | # So say no if there are warnings |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7125 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7126 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7127 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7128 | lt_cv_prog_compiler_c_o=yes |
| 7129 | fi |
| 7130 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7131 | chmod u+w . 2>&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7132 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7133 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7134 | # template instantiation |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7135 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 7136 | $RM out/* && rmdir out |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7137 | cd .. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7138 | $RM -r conftest |
| 7139 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7140 | |
| 7141 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7143 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7144 | |
| 7145 | |
| 7146 | |
| 7147 | |
| 7148 | |
| 7149 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7151 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7152 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7153 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7154 | else |
| 7155 | lt_cv_prog_compiler_c_o=no |
| 7156 | $RM -r conftest 2>/dev/null |
| 7157 | mkdir conftest |
| 7158 | cd conftest |
| 7159 | mkdir out |
| 7160 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7161 | |
| 7162 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7163 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7164 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7165 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7166 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7167 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7168 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7169 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7170 | -e 's:$: $lt_compiler_flag:'` |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 7171 | (eval echo "\"\$as_me:7171: $lt_compile\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7172 | (eval "$lt_compile" 2>out/conftest.err) |
| 7173 | ac_status=$? |
| 7174 | cat out/conftest.err >&5 |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 7175 | echo "$as_me:7175: \$? = $ac_status" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7176 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7177 | then |
| 7178 | # The compiler can only warn and ignore the option if not recognized |
| 7179 | # So say no if there are warnings |
| 7180 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 7181 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7182 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 7183 | lt_cv_prog_compiler_c_o=yes |
| 7184 | fi |
| 7185 | fi |
| 7186 | chmod u+w . 2>&5 |
| 7187 | $RM conftest* |
| 7188 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7189 | # template instantiation |
| 7190 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 7191 | $RM out/* && rmdir out |
| 7192 | cd .. |
| 7193 | $RM -r conftest |
| 7194 | $RM conftest* |
| 7195 | |
| 7196 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7198 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7199 | |
| 7200 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7201 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7202 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7203 | hard_links="nottested" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7204 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7205 | # do not overwrite the value of need_locks provided by the user |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7207 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7208 | hard_links=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7209 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7210 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7211 | touch conftest.a |
| 7212 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7213 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7215 | $as_echo "$hard_links" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7216 | if test "$hard_links" = no; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7218 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7219 | need_locks=warn |
| 7220 | fi |
| 7221 | else |
| 7222 | need_locks=no |
| 7223 | fi |
| 7224 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7225 | |
| 7226 | |
| 7227 | |
| 7228 | |
| 7229 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7231 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7232 | |
| 7233 | runpath_var= |
| 7234 | allow_undefined_flag= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7235 | always_export_symbols=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7236 | archive_cmds= |
| 7237 | archive_expsym_cmds= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7238 | compiler_needs_object=no |
| 7239 | enable_shared_with_static_runtimes=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7240 | export_dynamic_flag_spec= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7241 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7242 | hardcode_automatic=no |
| 7243 | hardcode_direct=no |
| 7244 | hardcode_direct_absolute=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7245 | hardcode_libdir_flag_spec= |
| 7246 | hardcode_libdir_flag_spec_ld= |
| 7247 | hardcode_libdir_separator= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7248 | hardcode_minus_L=no |
| 7249 | hardcode_shlibpath_var=unsupported |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7250 | inherit_rpath=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7251 | link_all_deplibs=unknown |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7252 | module_cmds= |
| 7253 | module_expsym_cmds= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7254 | old_archive_from_new_cmds= |
| 7255 | old_archive_from_expsyms_cmds= |
| 7256 | thread_safe_flag_spec= |
| 7257 | whole_archive_flag_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7258 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7259 | # included in the symbol list |
| 7260 | include_expsyms= |
| 7261 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7262 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7263 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7264 | # as well as any symbol that contains `d'. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7265 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7266 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7267 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7268 | # the symbol is explicitly referenced. Since portable code cannot |
| 7269 | # rely on this symbol name, it's probably fine to never include it in |
| 7270 | # preloaded symbol tables. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7271 | # Exclude shared library initialization/finalization symbols. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7272 | extract_expsyms_cmds= |
| 7273 | |
| 7274 | case $host_os in |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7275 | cygwin* | mingw* | pw32* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7276 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7277 | # When not using gcc, we currently assume that we are using |
| 7278 | # Microsoft Visual C++. |
| 7279 | if test "$GCC" != yes; then |
| 7280 | with_gnu_ld=no |
| 7281 | fi |
| 7282 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7283 | interix*) |
| 7284 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 7285 | with_gnu_ld=yes |
| 7286 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7287 | openbsd*) |
| 7288 | with_gnu_ld=no |
| 7289 | ;; |
| 7290 | esac |
| 7291 | |
| 7292 | ld_shlibs=yes |
| 7293 | if test "$with_gnu_ld" = yes; then |
| 7294 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7295 | wlarc='${wl}' |
| 7296 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7297 | # Set some defaults for GNU ld with shared library support. These |
| 7298 | # are reset later if shared libraries are not supported. Putting them |
| 7299 | # here allows them to be overridden if necessary. |
| 7300 | runpath_var=LD_RUN_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7301 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7302 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7303 | # ancient GNU ld didn't support --whole-archive et. al. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7304 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 7305 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7306 | else |
| 7307 | whole_archive_flag_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7308 | fi |
| 7309 | supports_anon_versioning=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7310 | case `$LD -v 2>&1` in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7311 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7312 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7313 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7314 | *\ 2.11.*) ;; # other 2.11 versions |
| 7315 | *) supports_anon_versioning=yes ;; |
| 7316 | esac |
| 7317 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7318 | # See if GNU ld supports shared libraries. |
| 7319 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7320 | aix[3-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7321 | # On AIX/PPC, the GNU linker is very broken |
| 7322 | if test "$host_cpu" != ia64; then |
| 7323 | ld_shlibs=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7324 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7325 | |
| 7326 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7327 | *** to be unable to reliably create shared libraries on AIX. |
| 7328 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7329 | *** really care for shared libraries, you may want to modify your PATH |
| 7330 | *** so that a non-GNU linker is found, and then restart. |
| 7331 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7332 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7333 | fi |
| 7334 | ;; |
| 7335 | |
| 7336 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7337 | case $host_cpu in |
| 7338 | powerpc) |
| 7339 | # see comment about AmigaOS4 .so support |
| 7340 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7341 | archive_expsym_cmds='' |
| 7342 | ;; |
| 7343 | m68k) |
| 7344 | 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)' |
| 7345 | hardcode_libdir_flag_spec='-L$libdir' |
| 7346 | hardcode_minus_L=yes |
| 7347 | ;; |
| 7348 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7349 | ;; |
| 7350 | |
| 7351 | beos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7352 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7353 | allow_undefined_flag=unsupported |
| 7354 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 7355 | # support --undefined. This deserves some investigation. FIXME |
| 7356 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7357 | else |
| 7358 | ld_shlibs=no |
| 7359 | fi |
| 7360 | ;; |
| 7361 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7362 | cygwin* | mingw* | pw32* | cegcc*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7363 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7364 | # as there is no search path for DLLs. |
| 7365 | hardcode_libdir_flag_spec='-L$libdir' |
| 7366 | allow_undefined_flag=unsupported |
| 7367 | always_export_symbols=no |
| 7368 | enable_shared_with_static_runtimes=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7369 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7370 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7371 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7372 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7373 | # If the export-symbols file already is a .def file (1st line |
| 7374 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7375 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7376 | cp $export_symbols $output_objdir/$soname.def; |
| 7377 | else |
| 7378 | echo EXPORTS > $output_objdir/$soname.def; |
| 7379 | cat $export_symbols >> $output_objdir/$soname.def; |
| 7380 | fi~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7381 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7382 | else |
| 7383 | ld_shlibs=no |
| 7384 | fi |
| 7385 | ;; |
| 7386 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7387 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7388 | hardcode_direct=no |
| 7389 | hardcode_shlibpath_var=no |
| 7390 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7391 | export_dynamic_flag_spec='${wl}-E' |
| 7392 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 7393 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 7394 | # default) and relocated if they conflict, which is a slow very memory |
| 7395 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 7396 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 7397 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 7398 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 7399 | 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' |
| 7400 | ;; |
| 7401 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7402 | gnu* | linux* | tpf* | k*bsd*-gnu) |
| 7403 | tmp_diet=no |
| 7404 | if test "$host_os" = linux-dietlibc; then |
| 7405 | case $cc_basename in |
| 7406 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 7407 | esac |
| 7408 | fi |
| 7409 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 7410 | && test "$tmp_diet" = no |
| 7411 | then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7412 | tmp_addflag= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7413 | tmp_sharedflag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7414 | case $cc_basename,$host_cpu in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7415 | pgcc*) # Portland Group C compiler |
| 7416 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7417 | tmp_addflag=' $pic_flag' |
| 7418 | ;; |
| 7419 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7420 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7421 | tmp_addflag=' $pic_flag -Mnomain' ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7422 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7423 | tmp_addflag=' -i_dynamic' ;; |
| 7424 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 7425 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 7426 | ifc* | ifort*) # Intel Fortran compiler |
| 7427 | tmp_addflag=' -nofor_main' ;; |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7428 | lf95*) # Lahey Fortran 8.1 |
| 7429 | whole_archive_flag_spec= |
| 7430 | tmp_sharedflag='--shared' ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7431 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 7432 | tmp_sharedflag='-qmkshrobj' |
| 7433 | tmp_addflag= ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7434 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7435 | case `$CC -V 2>&1 | sed 5q` in |
| 7436 | *Sun\ C*) # Sun C 5.9 |
| 7437 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 7438 | compiler_needs_object=yes |
| 7439 | tmp_sharedflag='-G' ;; |
| 7440 | *Sun\ F*) # Sun Fortran 8.3 |
| 7441 | tmp_sharedflag='-G' ;; |
| 7442 | esac |
| 7443 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7444 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7445 | if test "x$supports_anon_versioning" = xyes; then |
| 7446 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 7447 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7448 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7449 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 7450 | fi |
| 7451 | |
| 7452 | case $cc_basename in |
| 7453 | xlf*) |
| 7454 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 7455 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 7456 | hardcode_libdir_flag_spec= |
| 7457 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 7458 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 7459 | if test "x$supports_anon_versioning" = xyes; then |
| 7460 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 7461 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7462 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7463 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 7464 | fi |
| 7465 | ;; |
| 7466 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7467 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7468 | ld_shlibs=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7469 | fi |
| 7470 | ;; |
| 7471 | |
| 7472 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7473 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7474 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 7475 | wlarc= |
| 7476 | else |
| 7477 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7478 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7479 | fi |
| 7480 | ;; |
| 7481 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7482 | solaris*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7483 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7484 | ld_shlibs=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7485 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7486 | |
| 7487 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 7488 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 7489 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7490 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 7491 | *** your PATH or compiler configuration so that the native linker is |
| 7492 | *** used, and then restart. |
| 7493 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7494 | _LT_EOF |
| 7495 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7496 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7497 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7498 | else |
| 7499 | ld_shlibs=no |
| 7500 | fi |
| 7501 | ;; |
| 7502 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7503 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 7504 | case `$LD -v 2>&1` in |
| 7505 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 7506 | ld_shlibs=no |
| 7507 | cat <<_LT_EOF 1>&2 |
| 7508 | |
| 7509 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 7510 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 7511 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7512 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 7513 | *** your PATH or compiler configuration so that the native linker is |
| 7514 | *** used, and then restart. |
| 7515 | |
| 7516 | _LT_EOF |
| 7517 | ;; |
| 7518 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7519 | # For security reasons, it is highly recommended that you always |
| 7520 | # use absolute paths for naming shared libraries, and exclude the |
| 7521 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 7522 | # requires that you compile everything twice, which is a pain. |
| 7523 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 7524 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7525 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7526 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7527 | else |
| 7528 | ld_shlibs=no |
| 7529 | fi |
| 7530 | ;; |
| 7531 | esac |
| 7532 | ;; |
| 7533 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7534 | sunos4*) |
| 7535 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7536 | wlarc= |
| 7537 | hardcode_direct=yes |
| 7538 | hardcode_shlibpath_var=no |
| 7539 | ;; |
| 7540 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7541 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7542 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7543 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7544 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7545 | else |
| 7546 | ld_shlibs=no |
| 7547 | fi |
| 7548 | ;; |
| 7549 | esac |
| 7550 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7551 | if test "$ld_shlibs" = no; then |
| 7552 | runpath_var= |
| 7553 | hardcode_libdir_flag_spec= |
| 7554 | export_dynamic_flag_spec= |
| 7555 | whole_archive_flag_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7556 | fi |
| 7557 | else |
| 7558 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 7559 | case $host_os in |
| 7560 | aix3*) |
| 7561 | allow_undefined_flag=unsupported |
| 7562 | always_export_symbols=yes |
| 7563 | 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' |
| 7564 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 7565 | # are no directories specified by -L. |
| 7566 | hardcode_minus_L=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7567 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7568 | # Neither direct hardcoding nor static linking is supported with a |
| 7569 | # broken collect2. |
| 7570 | hardcode_direct=unsupported |
| 7571 | fi |
| 7572 | ;; |
| 7573 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7574 | aix[4-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7575 | if test "$host_cpu" = ia64; then |
| 7576 | # On IA64, the linker does run time linking by default, so we don't |
| 7577 | # have to do anything special. |
| 7578 | aix_use_runtimelinking=no |
| 7579 | exp_sym_flag='-Bexport' |
| 7580 | no_entry_flag="" |
| 7581 | else |
| 7582 | # If we're using GNU nm, then we don't want the "-C" option. |
| 7583 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7584 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 7585 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7586 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7587 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7588 | fi |
| 7589 | aix_use_runtimelinking=no |
| 7590 | |
| 7591 | # Test if we are trying to use run time linking or normal |
| 7592 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 7593 | # need to do runtime linking. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7594 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7595 | for ld_flag in $LDFLAGS; do |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7596 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 7597 | aix_use_runtimelinking=yes |
| 7598 | break |
| 7599 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7600 | done |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7601 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7602 | esac |
| 7603 | |
| 7604 | exp_sym_flag='-bexport' |
| 7605 | no_entry_flag='-bnoentry' |
| 7606 | fi |
| 7607 | |
| 7608 | # When large executables or shared objects are built, AIX ld can |
| 7609 | # have problems creating the table of contents. If linking a library |
| 7610 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 7611 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 7612 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 7613 | |
| 7614 | archive_cmds='' |
| 7615 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7616 | hardcode_direct_absolute=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7617 | hardcode_libdir_separator=':' |
| 7618 | link_all_deplibs=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7619 | file_list_spec='${wl}-f,' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7620 | |
| 7621 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7622 | case $host_os in aix4.[012]|aix4.[012].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7623 | # We only want to do this on AIX 4.2 and lower, the check |
| 7624 | # below for broken collect2 doesn't work under 4.3+ |
| 7625 | collect2name=`${CC} -print-prog-name=collect2` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7626 | if test -f "$collect2name" && |
| 7627 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7628 | then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7629 | # We have reworked collect2 |
| 7630 | : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7631 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7632 | # We have old collect2 |
| 7633 | hardcode_direct=unsupported |
| 7634 | # It fails to find uninstalled libraries when the uninstalled |
| 7635 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 7636 | # to unsupported forces relinking |
| 7637 | hardcode_minus_L=yes |
| 7638 | hardcode_libdir_flag_spec='-L$libdir' |
| 7639 | hardcode_libdir_separator= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7640 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7641 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7642 | esac |
| 7643 | shared_flag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7644 | if test "$aix_use_runtimelinking" = yes; then |
| 7645 | shared_flag="$shared_flag "'${wl}-G' |
| 7646 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7647 | else |
| 7648 | # not using gcc |
| 7649 | if test "$host_cpu" = ia64; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7650 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 7651 | # chokes on -Wl,-G. The following line is correct: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7652 | shared_flag='-G' |
| 7653 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7654 | if test "$aix_use_runtimelinking" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7655 | shared_flag='${wl}-G' |
| 7656 | else |
| 7657 | shared_flag='${wl}-bM:SRE' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7658 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7659 | fi |
| 7660 | fi |
| 7661 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7662 | export_dynamic_flag_spec='${wl}-bexpall' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7663 | # It seems that -bexpall does not export symbols beginning with |
| 7664 | # underscore (_), so it is better to generate a list of symbols to export. |
| 7665 | always_export_symbols=yes |
| 7666 | if test "$aix_use_runtimelinking" = yes; then |
| 7667 | # Warning - without using the other runtime loading flags (-brtl), |
| 7668 | # -berok will link without error, but may produce a broken library. |
| 7669 | allow_undefined_flag='-berok' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7670 | # Determine the default libpath from the value encoded in an |
| 7671 | # empty executable. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7673 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7674 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7675 | int |
| 7676 | main () |
| 7677 | { |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7678 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7679 | ; |
| 7680 | return 0; |
| 7681 | } |
| 7682 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7683 | if ac_fn_c_try_link "$LINENO"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7684 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7685 | lt_aix_libpath_sed=' |
| 7686 | /Import File Strings/,/^$/ { |
| 7687 | /^0/ { |
| 7688 | s/^0 *\(.*\)$/\1/ |
| 7689 | p |
| 7690 | } |
| 7691 | }' |
| 7692 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7693 | # Check for a 64-bit object if we didn't find anything. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7694 | if test -z "$aix_libpath"; then |
| 7695 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 7696 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7697 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7698 | rm -f core conftest.err conftest.$ac_objext \ |
| 7699 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7700 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7701 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7702 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7703 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 7704 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7705 | if test "$host_cpu" = ia64; then |
| 7706 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 7707 | allow_undefined_flag="-z nodefs" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7708 | 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" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7709 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7710 | # Determine the default libpath from the value encoded in an |
| 7711 | # empty executable. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7713 | /* end confdefs.h. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7714 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7715 | int |
| 7716 | main () |
| 7717 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7718 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7719 | ; |
| 7720 | return 0; |
| 7721 | } |
| 7722 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7723 | if ac_fn_c_try_link "$LINENO"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7724 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7725 | lt_aix_libpath_sed=' |
| 7726 | /Import File Strings/,/^$/ { |
| 7727 | /^0/ { |
| 7728 | s/^0 *\(.*\)$/\1/ |
| 7729 | p |
| 7730 | } |
| 7731 | }' |
| 7732 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7733 | # Check for a 64-bit object if we didn't find anything. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7734 | if test -z "$aix_libpath"; then |
| 7735 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 7736 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7737 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7738 | rm -f core conftest.err conftest.$ac_objext \ |
| 7739 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7740 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7741 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7742 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7743 | # Warning - without using the other run time loading flags, |
| 7744 | # -berok will link without error, but may produce a broken library. |
| 7745 | no_undefined_flag=' ${wl}-bernotok' |
| 7746 | allow_undefined_flag=' ${wl}-berok' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7747 | # Exported symbols can be pulled into shared objects from archives |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7748 | whole_archive_flag_spec='$convenience' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7749 | archive_cmds_need_lc=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7750 | # This is similar to how AIX traditionally builds its shared libraries. |
| 7751 | 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' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7752 | fi |
| 7753 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7754 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7755 | |
| 7756 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7757 | case $host_cpu in |
| 7758 | powerpc) |
| 7759 | # see comment about AmigaOS4 .so support |
| 7760 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7761 | archive_expsym_cmds='' |
| 7762 | ;; |
| 7763 | m68k) |
| 7764 | 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)' |
| 7765 | hardcode_libdir_flag_spec='-L$libdir' |
| 7766 | hardcode_minus_L=yes |
| 7767 | ;; |
| 7768 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7769 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7770 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7771 | bsdi[45]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7772 | export_dynamic_flag_spec=-rdynamic |
| 7773 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7774 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7775 | cygwin* | mingw* | pw32* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7776 | # When not using gcc, we currently assume that we are using |
| 7777 | # Microsoft Visual C++. |
| 7778 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 7779 | # no search path for DLLs. |
| 7780 | hardcode_libdir_flag_spec=' ' |
| 7781 | allow_undefined_flag=unsupported |
| 7782 | # Tell ltmain to make .lib files, not .a files. |
| 7783 | libext=lib |
| 7784 | # Tell ltmain to make .dll files, not .so files. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7785 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7786 | # FIXME: Setting linknames here is a bad hack. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7787 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7788 | # The linker will automatically build a .lib file if we build a DLL. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7789 | old_archive_from_new_cmds='true' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7790 | # FIXME: Should let the user specify the lib program. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7791 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7792 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 7793 | enable_shared_with_static_runtimes=yes |
| 7794 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7795 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7796 | darwin* | rhapsody*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7797 | |
| 7798 | |
| 7799 | archive_cmds_need_lc=no |
| 7800 | hardcode_direct=no |
| 7801 | hardcode_automatic=yes |
| 7802 | hardcode_shlibpath_var=unsupported |
| 7803 | whole_archive_flag_spec='' |
| 7804 | link_all_deplibs=yes |
| 7805 | allow_undefined_flag="$_lt_dar_allow_undefined" |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7806 | case $cc_basename in |
| 7807 | ifort*) _lt_dar_can_shared=yes ;; |
| 7808 | *) _lt_dar_can_shared=$GCC ;; |
| 7809 | esac |
| 7810 | if test "$_lt_dar_can_shared" = "yes"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7811 | output_verbose_link_cmd=echo |
| 7812 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 7813 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 7814 | 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}" |
| 7815 | 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}" |
| 7816 | |
| 7817 | else |
| 7818 | ld_shlibs=no |
| 7819 | fi |
| 7820 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7821 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7822 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7823 | dgux*) |
| 7824 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7825 | hardcode_libdir_flag_spec='-L$libdir' |
| 7826 | hardcode_shlibpath_var=no |
| 7827 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7828 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7829 | freebsd1*) |
| 7830 | ld_shlibs=no |
| 7831 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7832 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7833 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 7834 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 7835 | # does not break anything, and helps significantly (at the cost of a little |
| 7836 | # extra space). |
| 7837 | freebsd2.2*) |
| 7838 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 7839 | hardcode_libdir_flag_spec='-R$libdir' |
| 7840 | hardcode_direct=yes |
| 7841 | hardcode_shlibpath_var=no |
| 7842 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7843 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7844 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 7845 | freebsd2*) |
| 7846 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7847 | hardcode_direct=yes |
| 7848 | hardcode_minus_L=yes |
| 7849 | hardcode_shlibpath_var=no |
| 7850 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7851 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7852 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7853 | freebsd* | dragonfly*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7854 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 7855 | hardcode_libdir_flag_spec='-R$libdir' |
| 7856 | hardcode_direct=yes |
| 7857 | hardcode_shlibpath_var=no |
| 7858 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7859 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7860 | hpux9*) |
| 7861 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7862 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7863 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7864 | 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' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7865 | fi |
| 7866 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7867 | hardcode_libdir_separator=: |
| 7868 | hardcode_direct=yes |
| 7869 | |
| 7870 | # hardcode_minus_L: Not really in the search PATH, |
| 7871 | # but as the default location of the library. |
| 7872 | hardcode_minus_L=yes |
| 7873 | export_dynamic_flag_spec='${wl}-E' |
| 7874 | ;; |
| 7875 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7876 | hpux10*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7877 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7878 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7879 | else |
| 7880 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 7881 | fi |
| 7882 | if test "$with_gnu_ld" = no; then |
| 7883 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7884 | hardcode_libdir_flag_spec_ld='+b $libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7885 | hardcode_libdir_separator=: |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7886 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7887 | hardcode_direct_absolute=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7888 | export_dynamic_flag_spec='${wl}-E' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7889 | # hardcode_minus_L: Not really in the search PATH, |
| 7890 | # but as the default location of the library. |
| 7891 | hardcode_minus_L=yes |
| 7892 | fi |
| 7893 | ;; |
| 7894 | |
| 7895 | hpux11*) |
| 7896 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7897 | case $host_cpu in |
| 7898 | hppa*64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7899 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7900 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7901 | ia64*) |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7902 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7903 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7904 | *) |
| 7905 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7906 | ;; |
| 7907 | esac |
| 7908 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7909 | case $host_cpu in |
| 7910 | hppa*64*) |
| 7911 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7912 | ;; |
| 7913 | ia64*) |
| 7914 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7915 | ;; |
| 7916 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7917 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7918 | ;; |
| 7919 | esac |
| 7920 | fi |
| 7921 | if test "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7922 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7923 | hardcode_libdir_separator=: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7924 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7925 | case $host_cpu in |
| 7926 | hppa*64*|ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7927 | hardcode_direct=no |
| 7928 | hardcode_shlibpath_var=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7929 | ;; |
| 7930 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7931 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7932 | hardcode_direct_absolute=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7933 | export_dynamic_flag_spec='${wl}-E' |
| 7934 | |
| 7935 | # hardcode_minus_L: Not really in the search PATH, |
| 7936 | # but as the default location of the library. |
| 7937 | hardcode_minus_L=yes |
| 7938 | ;; |
| 7939 | esac |
| 7940 | fi |
| 7941 | ;; |
| 7942 | |
| 7943 | irix5* | irix6* | nonstopux*) |
| 7944 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7945 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 7946 | # Try to use the -exported_symbol ld option, if it does not |
| 7947 | # work, assume that -exports_file does not work either and |
| 7948 | # implicitly export all symbols. |
| 7949 | save_LDFLAGS="$LDFLAGS" |
| 7950 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7952 | /* end confdefs.h. */ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7953 | int foo(void) {} |
| 7954 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7955 | if ac_fn_c_try_link "$LINENO"; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7956 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 7957 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7958 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 7959 | rm -f core conftest.err conftest.$ac_objext \ |
| 7960 | conftest$ac_exeext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7961 | LDFLAGS="$save_LDFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7962 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7963 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 7964 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7965 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7966 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7967 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7968 | hardcode_libdir_separator=: |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7969 | inherit_rpath=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7970 | link_all_deplibs=yes |
| 7971 | ;; |
| 7972 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7973 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7974 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7975 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 7976 | else |
| 7977 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 7978 | fi |
| 7979 | hardcode_libdir_flag_spec='-R$libdir' |
| 7980 | hardcode_direct=yes |
| 7981 | hardcode_shlibpath_var=no |
| 7982 | ;; |
| 7983 | |
| 7984 | newsos6) |
| 7985 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7986 | hardcode_direct=yes |
| 7987 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7988 | hardcode_libdir_separator=: |
| 7989 | hardcode_shlibpath_var=no |
| 7990 | ;; |
| 7991 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7992 | *nto* | *qnx*) |
| 7993 | ;; |
| 7994 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7995 | openbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7996 | if test -f /usr/libexec/ld.so; then |
| 7997 | hardcode_direct=yes |
| 7998 | hardcode_shlibpath_var=no |
| 7999 | hardcode_direct_absolute=yes |
| 8000 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8001 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8002 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 8003 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8004 | export_dynamic_flag_spec='${wl}-E' |
| 8005 | else |
| 8006 | case $host_os in |
| 8007 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8008 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8009 | hardcode_libdir_flag_spec='-R$libdir' |
| 8010 | ;; |
| 8011 | *) |
| 8012 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8013 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8014 | ;; |
| 8015 | esac |
| 8016 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8017 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8018 | ld_shlibs=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8019 | fi |
| 8020 | ;; |
| 8021 | |
| 8022 | os2*) |
| 8023 | hardcode_libdir_flag_spec='-L$libdir' |
| 8024 | hardcode_minus_L=yes |
| 8025 | allow_undefined_flag=unsupported |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8026 | 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' |
| 8027 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8028 | ;; |
| 8029 | |
| 8030 | osf3*) |
| 8031 | if test "$GCC" = yes; then |
| 8032 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8033 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8034 | else |
| 8035 | allow_undefined_flag=' -expect_unresolved \*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8036 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8037 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8038 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8039 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8040 | hardcode_libdir_separator=: |
| 8041 | ;; |
| 8042 | |
| 8043 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8044 | if test "$GCC" = yes; then |
| 8045 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8046 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8047 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8048 | else |
| 8049 | allow_undefined_flag=' -expect_unresolved \*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8050 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8051 | 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~ |
| 8052 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8053 | |
| 8054 | # Both c and cxx compiler support -rpath directly |
| 8055 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8056 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8057 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8058 | hardcode_libdir_separator=: |
| 8059 | ;; |
| 8060 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8061 | solaris*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8062 | no_undefined_flag=' -z defs' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8063 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8064 | wlarc='${wl}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8065 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8066 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8067 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8068 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8069 | case `$CC -V 2>&1` in |
| 8070 | *"Compilers 5.0"*) |
| 8071 | wlarc='' |
| 8072 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8073 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8074 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 8075 | ;; |
| 8076 | *) |
| 8077 | wlarc='${wl}' |
| 8078 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8079 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8080 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 8081 | ;; |
| 8082 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8083 | fi |
| 8084 | hardcode_libdir_flag_spec='-R$libdir' |
| 8085 | hardcode_shlibpath_var=no |
| 8086 | case $host_os in |
| 8087 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8088 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8089 | # The compiler driver will combine and reorder linker options, |
| 8090 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 8091 | # but is careful enough not to reorder. |
| 8092 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8093 | if test "$GCC" = yes; then |
| 8094 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 8095 | else |
| 8096 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 8097 | fi |
| 8098 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8099 | esac |
| 8100 | link_all_deplibs=yes |
| 8101 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8102 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8103 | sunos4*) |
| 8104 | if test "x$host_vendor" = xsequent; then |
| 8105 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8106 | # files that make .init and .fini sections work. |
| 8107 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8108 | else |
| 8109 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8110 | fi |
| 8111 | hardcode_libdir_flag_spec='-L$libdir' |
| 8112 | hardcode_direct=yes |
| 8113 | hardcode_minus_L=yes |
| 8114 | hardcode_shlibpath_var=no |
| 8115 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8116 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8117 | sysv4) |
| 8118 | case $host_vendor in |
| 8119 | sni) |
| 8120 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8121 | hardcode_direct=yes # is this really true??? |
| 8122 | ;; |
| 8123 | siemens) |
| 8124 | ## LD is ld it makes a PLAMLIB |
| 8125 | ## CC just makes a GrossModule. |
| 8126 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8127 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8128 | hardcode_direct=no |
| 8129 | ;; |
| 8130 | motorola) |
| 8131 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8132 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8133 | ;; |
| 8134 | esac |
| 8135 | runpath_var='LD_RUN_PATH' |
| 8136 | hardcode_shlibpath_var=no |
| 8137 | ;; |
| 8138 | |
| 8139 | sysv4.3*) |
| 8140 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8141 | hardcode_shlibpath_var=no |
| 8142 | export_dynamic_flag_spec='-Bexport' |
| 8143 | ;; |
| 8144 | |
| 8145 | sysv4*MP*) |
| 8146 | if test -d /usr/nec; then |
| 8147 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8148 | hardcode_shlibpath_var=no |
| 8149 | runpath_var=LD_RUN_PATH |
| 8150 | hardcode_runpath_var=yes |
| 8151 | ld_shlibs=yes |
| 8152 | fi |
| 8153 | ;; |
| 8154 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8155 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8156 | no_undefined_flag='${wl}-z,text' |
| 8157 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8158 | hardcode_shlibpath_var=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8159 | runpath_var='LD_RUN_PATH' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8160 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8161 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8162 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8163 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8164 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8165 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8166 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8167 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8168 | ;; |
| 8169 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8170 | sysv5* | sco3.2v5* | sco5v6*) |
| 8171 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 8172 | # link with -lc, and that would cause any symbols used from libc to |
| 8173 | # always be unresolved, which means just about no library would |
| 8174 | # ever link correctly. If we're not using GNU ld we use -z text |
| 8175 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 8176 | # as -z defs. |
| 8177 | no_undefined_flag='${wl}-z,text' |
| 8178 | allow_undefined_flag='${wl}-z,nodefs' |
| 8179 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8180 | hardcode_shlibpath_var=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8181 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8182 | hardcode_libdir_separator=':' |
| 8183 | link_all_deplibs=yes |
| 8184 | export_dynamic_flag_spec='${wl}-Bexport' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8185 | runpath_var='LD_RUN_PATH' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8186 | |
| 8187 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8188 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8189 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8190 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8191 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8192 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8193 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8194 | ;; |
| 8195 | |
| 8196 | uts4*) |
| 8197 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8198 | hardcode_libdir_flag_spec='-L$libdir' |
| 8199 | hardcode_shlibpath_var=no |
| 8200 | ;; |
| 8201 | |
| 8202 | *) |
| 8203 | ld_shlibs=no |
| 8204 | ;; |
| 8205 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8206 | |
| 8207 | if test x$host_vendor = xsni; then |
| 8208 | case $host in |
| 8209 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 8210 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 8211 | ;; |
| 8212 | esac |
| 8213 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8214 | fi |
| 8215 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 8217 | $as_echo "$ld_shlibs" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8218 | test "$ld_shlibs" = no && can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8219 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8220 | with_gnu_ld=$with_gnu_ld |
| 8221 | |
| 8222 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 8223 | |
| 8224 | |
| 8225 | |
| 8226 | |
| 8227 | |
| 8228 | |
| 8229 | |
| 8230 | |
| 8231 | |
| 8232 | |
| 8233 | |
| 8234 | |
| 8235 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8236 | # |
| 8237 | # Do we need to explicitly link libc? |
| 8238 | # |
| 8239 | case "x$archive_cmds_need_lc" in |
| 8240 | x|xyes) |
| 8241 | # Assume -lc should be added |
| 8242 | archive_cmds_need_lc=yes |
| 8243 | |
| 8244 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8245 | case $archive_cmds in |
| 8246 | *'~'*) |
| 8247 | # FIXME: we may have to deal with multi-command sequences. |
| 8248 | ;; |
| 8249 | '$CC '*) |
| 8250 | # Test whether the compiler implicitly links with -lc since on some |
| 8251 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8252 | # to ld, don't add -lc before -lgcc. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 8254 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8255 | $RM conftest* |
| 8256 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8257 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8258 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8259 | (eval $ac_compile) 2>&5 |
| 8260 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8261 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8262 | test $ac_status = 0; } 2>conftest.err; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8263 | soname=conftest |
| 8264 | lib=conftest |
| 8265 | libobjs=conftest.$ac_objext |
| 8266 | deplibs= |
| 8267 | wl=$lt_prog_compiler_wl |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8268 | pic_flag=$lt_prog_compiler_pic |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8269 | compiler_flags=-v |
| 8270 | linker_flags=-v |
| 8271 | verstring= |
| 8272 | output_objdir=. |
| 8273 | libname=conftest |
| 8274 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8275 | allow_undefined_flag= |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8276 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8277 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8278 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8280 | test $ac_status = 0; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8281 | then |
| 8282 | archive_cmds_need_lc=no |
| 8283 | else |
| 8284 | archive_cmds_need_lc=yes |
| 8285 | fi |
| 8286 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8287 | else |
| 8288 | cat conftest.err 1>&5 |
| 8289 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8290 | $RM conftest* |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 8292 | $as_echo "$archive_cmds_need_lc" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8293 | ;; |
| 8294 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8295 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8296 | ;; |
| 8297 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8298 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8299 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 8300 | |
| 8301 | |
| 8302 | |
| 8303 | |
| 8304 | |
| 8305 | |
| 8306 | |
| 8307 | |
| 8308 | |
| 8309 | |
| 8310 | |
| 8311 | |
| 8312 | |
| 8313 | |
| 8314 | |
| 8315 | |
| 8316 | |
| 8317 | |
| 8318 | |
| 8319 | |
| 8320 | |
| 8321 | |
| 8322 | |
| 8323 | |
| 8324 | |
| 8325 | |
| 8326 | |
| 8327 | |
| 8328 | |
| 8329 | |
| 8330 | |
| 8331 | |
| 8332 | |
| 8333 | |
| 8334 | |
| 8335 | |
| 8336 | |
| 8337 | |
| 8338 | |
| 8339 | |
| 8340 | |
| 8341 | |
| 8342 | |
| 8343 | |
| 8344 | |
| 8345 | |
| 8346 | |
| 8347 | |
| 8348 | |
| 8349 | |
| 8350 | |
| 8351 | |
| 8352 | |
| 8353 | |
| 8354 | |
| 8355 | |
| 8356 | |
| 8357 | |
| 8358 | |
| 8359 | |
| 8360 | |
| 8361 | |
| 8362 | |
| 8363 | |
| 8364 | |
| 8365 | |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
| 8371 | |
| 8372 | |
| 8373 | |
| 8374 | |
| 8375 | |
| 8376 | |
| 8377 | |
| 8378 | |
| 8379 | |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | |
| 8386 | |
| 8387 | |
| 8388 | |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | |
| 8394 | |
| 8395 | |
| 8396 | |
| 8397 | |
| 8398 | |
| 8399 | |
| 8400 | |
| 8401 | |
| 8402 | |
| 8403 | |
| 8404 | |
| 8405 | |
| 8406 | |
| 8407 | |
| 8408 | |
| 8409 | |
| 8410 | |
| 8411 | |
| 8412 | |
| 8413 | |
| 8414 | |
| 8415 | |
| 8416 | |
| 8417 | |
| 8418 | |
| 8419 | |
| 8420 | |
| 8421 | |
| 8422 | |
| 8423 | |
| 8424 | |
| 8425 | |
| 8426 | |
| 8427 | |
| 8428 | |
| 8429 | |
| 8430 | |
| 8431 | |
| 8432 | |
| 8433 | |
| 8434 | |
| 8435 | |
| 8436 | |
| 8437 | |
| 8438 | |
| 8439 | |
| 8440 | |
| 8441 | |
| 8442 | |
| 8443 | |
| 8444 | |
| 8445 | |
| 8446 | |
| 8447 | |
| 8448 | |
| 8449 | |
| 8450 | |
| 8451 | |
| 8452 | |
| 8453 | |
| 8454 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 8456 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8457 | |
| 8458 | if test "$GCC" = yes; then |
| 8459 | case $host_os in |
| 8460 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 8461 | *) lt_awk_arg="/^libraries:/" ;; |
| 8462 | esac |
| 8463 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8464 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
| 8465 | # if the path contains ";" then we assume it to be the separator |
| 8466 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8467 | # assumed that no part of a normal pathname contains ";" but that should |
| 8468 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8469 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 8470 | else |
| 8471 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8472 | fi |
| 8473 | # Ok, now we have the path, separated by spaces, we can step through it |
| 8474 | # and add multilib dir if necessary. |
| 8475 | lt_tmp_lt_search_path_spec= |
| 8476 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 8477 | for lt_sys_path in $lt_search_path_spec; do |
| 8478 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 8479 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 8480 | else |
| 8481 | test -d "$lt_sys_path" && \ |
| 8482 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 8483 | fi |
| 8484 | done |
| 8485 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
| 8486 | BEGIN {RS=" "; FS="/|\n";} { |
| 8487 | lt_foo=""; |
| 8488 | lt_count=0; |
| 8489 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 8490 | if ($lt_i != "" && $lt_i != ".") { |
| 8491 | if ($lt_i == "..") { |
| 8492 | lt_count++; |
| 8493 | } else { |
| 8494 | if (lt_count == 0) { |
| 8495 | lt_foo="/" $lt_i lt_foo; |
| 8496 | } else { |
| 8497 | lt_count--; |
| 8498 | } |
| 8499 | } |
| 8500 | } |
| 8501 | } |
| 8502 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 8503 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 8504 | }'` |
| 8505 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
| 8506 | else |
| 8507 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8508 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8509 | library_names_spec= |
| 8510 | libname_spec='lib$name' |
| 8511 | soname_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8512 | shrext_cmds=".so" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8513 | postinstall_cmds= |
| 8514 | postuninstall_cmds= |
| 8515 | finish_cmds= |
| 8516 | finish_eval= |
| 8517 | shlibpath_var= |
| 8518 | shlibpath_overrides_runpath=unknown |
| 8519 | version_type=none |
| 8520 | dynamic_linker="$host_os ld.so" |
| 8521 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8522 | need_lib_prefix=unknown |
| 8523 | hardcode_into_libs=no |
| 8524 | |
| 8525 | # when you set need_version to no, make sure it does not cause -set_version |
| 8526 | # flags to be left without arguments |
| 8527 | need_version=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8528 | |
| 8529 | case $host_os in |
| 8530 | aix3*) |
| 8531 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8532 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8533 | shlibpath_var=LIBPATH |
| 8534 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8535 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8536 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8537 | ;; |
| 8538 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8539 | aix[4-9]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8540 | version_type=linux |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8541 | need_lib_prefix=no |
| 8542 | need_version=no |
| 8543 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8544 | if test "$host_cpu" = ia64; then |
| 8545 | # AIX 5 supports IA64 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8546 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8547 | shlibpath_var=LD_LIBRARY_PATH |
| 8548 | else |
| 8549 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8550 | # for dependence libraries. The import file would start with |
| 8551 | # the line `#! .'. This would cause the generated library to |
| 8552 | # depend on `.', always an invalid library. This was fixed in |
| 8553 | # development snapshots of GCC prior to 3.0. |
| 8554 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8555 | aix4 | aix4.[01] | aix4.[01].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8556 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8557 | echo ' yes ' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8558 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8559 | : |
| 8560 | else |
| 8561 | can_build_shared=no |
| 8562 | fi |
| 8563 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8564 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8565 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8566 | # soname into executable. Probably we can add versioning support to |
| 8567 | # collect2, so additional links can be useful in future. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8568 | if test "$aix_use_runtimelinking" = yes; then |
| 8569 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8570 | # instead of lib<name>.a to let people know that these are not |
| 8571 | # typical AIX shared libraries. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8572 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8573 | else |
| 8574 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8575 | # and later when we are not doing run time linking. |
| 8576 | library_names_spec='${libname}${release}.a $libname.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8577 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8578 | fi |
| 8579 | shlibpath_var=LIBPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8580 | fi |
| 8581 | ;; |
| 8582 | |
| 8583 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8584 | case $host_cpu in |
| 8585 | powerpc) |
| 8586 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 8587 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 8588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8589 | ;; |
| 8590 | m68k) |
| 8591 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8592 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8593 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 8594 | ;; |
| 8595 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8596 | ;; |
| 8597 | |
| 8598 | beos*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8599 | library_names_spec='${libname}${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8600 | dynamic_linker="$host_os ld.so" |
| 8601 | shlibpath_var=LIBRARY_PATH |
| 8602 | ;; |
| 8603 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8604 | bsdi[45]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8605 | version_type=linux |
| 8606 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8607 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8608 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8609 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8610 | shlibpath_var=LD_LIBRARY_PATH |
| 8611 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8612 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8613 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8614 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8615 | # libtool to hard-code these into programs |
| 8616 | ;; |
| 8617 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 8618 | cygwin* | mingw* | pw32* | cegcc*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8619 | version_type=windows |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8620 | shrext_cmds=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8621 | need_version=no |
| 8622 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8623 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8624 | case $GCC,$host_os in |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 8625 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8626 | library_names_spec='$libname.dll.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8627 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8628 | postinstall_cmds='base_file=`basename \${file}`~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8629 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8630 | dldir=$destdir/`dirname \$dlpath`~ |
| 8631 | test -d \$dldir || mkdir -p \$dldir~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8632 | $install_prog $dir/$dlname \$dldir/$dlname~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8633 | chmod a+x \$dldir/$dlname~ |
| 8634 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 8635 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 8636 | fi' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8637 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8638 | dlpath=$dir/\$dldll~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8639 | $RM \$dlpath' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8640 | shlibpath_overrides_runpath=yes |
| 8641 | |
| 8642 | case $host_os in |
| 8643 | cygwin*) |
| 8644 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8645 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8646 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8647 | ;; |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 8648 | mingw* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8649 | # MinGW DLLs use traditional 'lib' prefix |
| 8650 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8651 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8652 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8653 | # It is most probably a Windows format PATH printed by |
| 8654 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8655 | # path with ; separators, and with drive letters. We can handle the |
| 8656 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8657 | # especially as we might pass files found there to a mingw objdump, |
| 8658 | # which wouldn't understand a cygwinified path. Ahh. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8659 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8660 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8661 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8662 | fi |
| 8663 | ;; |
| 8664 | pw32*) |
| 8665 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8666 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8667 | ;; |
| 8668 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8669 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8670 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8671 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8672 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8673 | ;; |
| 8674 | esac |
| 8675 | dynamic_linker='Win32 ld.exe' |
| 8676 | # FIXME: first we should search . and the directory the executable is in |
| 8677 | shlibpath_var=PATH |
| 8678 | ;; |
| 8679 | |
| 8680 | darwin* | rhapsody*) |
| 8681 | dynamic_linker="$host_os dyld" |
| 8682 | version_type=darwin |
| 8683 | need_lib_prefix=no |
| 8684 | need_version=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8685 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8686 | soname_spec='${libname}${release}${major}$shared_ext' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8687 | shlibpath_overrides_runpath=yes |
| 8688 | shlibpath_var=DYLD_LIBRARY_PATH |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8689 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8690 | |
| 8691 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8692 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8693 | ;; |
| 8694 | |
| 8695 | dgux*) |
| 8696 | version_type=linux |
| 8697 | need_lib_prefix=no |
| 8698 | need_version=no |
| 8699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8700 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8701 | shlibpath_var=LD_LIBRARY_PATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8702 | ;; |
| 8703 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8704 | freebsd1*) |
| 8705 | dynamic_linker=no |
| 8706 | ;; |
| 8707 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8708 | freebsd* | dragonfly*) |
| 8709 | # DragonFly does not have aout. When/if they implement a new |
| 8710 | # versioning mechanism, adjust this. |
| 8711 | if test -x /usr/bin/objformat; then |
| 8712 | objformat=`/usr/bin/objformat` |
| 8713 | else |
| 8714 | case $host_os in |
| 8715 | freebsd[123]*) objformat=aout ;; |
| 8716 | *) objformat=elf ;; |
| 8717 | esac |
| 8718 | fi |
| 8719 | # Handle Gentoo/FreeBSD as it was Linux |
| 8720 | case $host_vendor in |
| 8721 | gentoo) |
| 8722 | version_type=linux ;; |
| 8723 | *) |
| 8724 | version_type=freebsd-$objformat ;; |
| 8725 | esac |
| 8726 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8727 | case $version_type in |
| 8728 | freebsd-elf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8730 | need_version=no |
| 8731 | need_lib_prefix=no |
| 8732 | ;; |
| 8733 | freebsd-*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8734 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8735 | need_version=yes |
| 8736 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8737 | linux) |
| 8738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8739 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8740 | need_lib_prefix=no |
| 8741 | need_version=no |
| 8742 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8743 | esac |
| 8744 | shlibpath_var=LD_LIBRARY_PATH |
| 8745 | case $host_os in |
| 8746 | freebsd2*) |
| 8747 | shlibpath_overrides_runpath=yes |
| 8748 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8749 | freebsd3.[01]* | freebsdelf3.[01]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8750 | shlibpath_overrides_runpath=yes |
| 8751 | hardcode_into_libs=yes |
| 8752 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8753 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8754 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8755 | shlibpath_overrides_runpath=no |
| 8756 | hardcode_into_libs=yes |
| 8757 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8758 | *) # from 4.6 on, and DragonFly |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8759 | shlibpath_overrides_runpath=yes |
| 8760 | hardcode_into_libs=yes |
| 8761 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8762 | esac |
| 8763 | ;; |
| 8764 | |
| 8765 | gnu*) |
| 8766 | version_type=linux |
| 8767 | need_lib_prefix=no |
| 8768 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8770 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8771 | shlibpath_var=LD_LIBRARY_PATH |
| 8772 | hardcode_into_libs=yes |
| 8773 | ;; |
| 8774 | |
| 8775 | hpux9* | hpux10* | hpux11*) |
| 8776 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8777 | # link against other versions. |
| 8778 | version_type=sunos |
| 8779 | need_lib_prefix=no |
| 8780 | need_version=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8781 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8782 | ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8783 | shrext_cmds='.so' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8784 | hardcode_into_libs=yes |
| 8785 | dynamic_linker="$host_os dld.so" |
| 8786 | shlibpath_var=LD_LIBRARY_PATH |
| 8787 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8789 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8790 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8791 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8792 | else |
| 8793 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8794 | fi |
| 8795 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8796 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8797 | hppa*64*) |
| 8798 | shrext_cmds='.sl' |
| 8799 | hardcode_into_libs=yes |
| 8800 | dynamic_linker="$host_os dld.sl" |
| 8801 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8802 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8804 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8805 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8806 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8807 | ;; |
| 8808 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8809 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8810 | dynamic_linker="$host_os dld.sl" |
| 8811 | shlibpath_var=SHLIB_PATH |
| 8812 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8814 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8815 | ;; |
| 8816 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8817 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8818 | postinstall_cmds='chmod 555 $lib' |
| 8819 | ;; |
| 8820 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8821 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8822 | version_type=linux |
| 8823 | need_lib_prefix=no |
| 8824 | need_version=no |
| 8825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8826 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8827 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8828 | shlibpath_var=LD_LIBRARY_PATH |
| 8829 | shlibpath_overrides_runpath=no |
| 8830 | hardcode_into_libs=yes |
| 8831 | ;; |
| 8832 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8833 | irix5* | irix6* | nonstopux*) |
| 8834 | case $host_os in |
| 8835 | nonstopux*) version_type=nonstopux ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8836 | *) |
| 8837 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8838 | version_type=linux |
| 8839 | else |
| 8840 | version_type=irix |
| 8841 | fi ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8842 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8843 | need_lib_prefix=no |
| 8844 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8845 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8847 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8848 | irix5* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8849 | libsuff= shlibsuff= |
| 8850 | ;; |
| 8851 | *) |
| 8852 | case $LD in # libtool.m4 will add one of these switches to LD |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8853 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8854 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8855 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8856 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8857 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8858 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8859 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8860 | esac |
| 8861 | ;; |
| 8862 | esac |
| 8863 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8864 | shlibpath_overrides_runpath=no |
| 8865 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8866 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8867 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8868 | ;; |
| 8869 | |
| 8870 | # No shared lib support for Linux oldld, aout, or coff. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8871 | linux*oldld* | linux*aout* | linux*coff*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8872 | dynamic_linker=no |
| 8873 | ;; |
| 8874 | |
| 8875 | # This must be Linux ELF. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8876 | linux* | k*bsd*-gnu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8877 | version_type=linux |
| 8878 | need_lib_prefix=no |
| 8879 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8881 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8882 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8883 | shlibpath_var=LD_LIBRARY_PATH |
| 8884 | shlibpath_overrides_runpath=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8885 | # Some binutils ld are patched to set DT_RUNPATH |
| 8886 | save_LDFLAGS=$LDFLAGS |
| 8887 | save_libdir=$libdir |
| 8888 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 8889 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8891 | /* end confdefs.h. */ |
| 8892 | |
| 8893 | int |
| 8894 | main () |
| 8895 | { |
| 8896 | |
| 8897 | ; |
| 8898 | return 0; |
| 8899 | } |
| 8900 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8901 | if ac_fn_c_try_link "$LINENO"; then : |
| 8902 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8903 | shlibpath_overrides_runpath=yes |
| 8904 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8905 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 8906 | rm -f core conftest.err conftest.$ac_objext \ |
| 8907 | conftest$ac_exeext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8908 | LDFLAGS=$save_LDFLAGS |
| 8909 | libdir=$save_libdir |
| 8910 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8911 | # This implies no fast_install, which is unacceptable. |
| 8912 | # Some rework will be needed to allow for fast_install |
| 8913 | # before this can be enabled. |
| 8914 | hardcode_into_libs=yes |
| 8915 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8916 | # Append ld.so.conf contents to the search path |
| 8917 | if test -f /etc/ld.so.conf; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8918 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8919 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8920 | fi |
| 8921 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8922 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8923 | # powerpc, because MkLinux only supported shared libraries with the |
| 8924 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8925 | # most powerpc-linux boxes support dynamic linking these days and |
| 8926 | # people can always --disable-shared, the test was removed, and we |
| 8927 | # assume the GNU/Linux dynamic linker is in use. |
| 8928 | dynamic_linker='GNU/Linux ld.so' |
| 8929 | ;; |
| 8930 | |
| 8931 | netbsd*) |
| 8932 | version_type=sunos |
| 8933 | need_lib_prefix=no |
| 8934 | need_version=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8935 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8936 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8937 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8938 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8939 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8941 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8942 | dynamic_linker='NetBSD ld.elf_so' |
| 8943 | fi |
| 8944 | shlibpath_var=LD_LIBRARY_PATH |
| 8945 | shlibpath_overrides_runpath=yes |
| 8946 | hardcode_into_libs=yes |
| 8947 | ;; |
| 8948 | |
| 8949 | newsos6) |
| 8950 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8952 | shlibpath_var=LD_LIBRARY_PATH |
| 8953 | shlibpath_overrides_runpath=yes |
| 8954 | ;; |
| 8955 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8956 | *nto* | *qnx*) |
| 8957 | version_type=qnx |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8958 | need_lib_prefix=no |
| 8959 | need_version=no |
| 8960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8961 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8962 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8963 | shlibpath_overrides_runpath=no |
| 8964 | hardcode_into_libs=yes |
| 8965 | dynamic_linker='ldqnx.so' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8966 | ;; |
| 8967 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8968 | openbsd*) |
| 8969 | version_type=sunos |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8970 | sys_lib_dlsearch_path_spec="/usr/lib" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8971 | need_lib_prefix=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8972 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 8973 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8974 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 8975 | *) need_version=no ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8976 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8978 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8979 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8980 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8981 | case $host_os in |
| 8982 | openbsd2.[89] | openbsd2.[89].*) |
| 8983 | shlibpath_overrides_runpath=no |
| 8984 | ;; |
| 8985 | *) |
| 8986 | shlibpath_overrides_runpath=yes |
| 8987 | ;; |
| 8988 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8989 | else |
| 8990 | shlibpath_overrides_runpath=yes |
| 8991 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8992 | ;; |
| 8993 | |
| 8994 | os2*) |
| 8995 | libname_spec='$name' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8996 | shrext_cmds=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8997 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8998 | library_names_spec='$libname${shared_ext} $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8999 | dynamic_linker='OS/2 ld.exe' |
| 9000 | shlibpath_var=LIBPATH |
| 9001 | ;; |
| 9002 | |
| 9003 | osf3* | osf4* | osf5*) |
| 9004 | version_type=osf |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9005 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9006 | need_version=no |
| 9007 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9009 | shlibpath_var=LD_LIBRARY_PATH |
| 9010 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9011 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9012 | ;; |
| 9013 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9014 | rdos*) |
| 9015 | dynamic_linker=no |
| 9016 | ;; |
| 9017 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9018 | solaris*) |
| 9019 | version_type=linux |
| 9020 | need_lib_prefix=no |
| 9021 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9022 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9023 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9024 | shlibpath_var=LD_LIBRARY_PATH |
| 9025 | shlibpath_overrides_runpath=yes |
| 9026 | hardcode_into_libs=yes |
| 9027 | # ldd complains unless libraries are executable |
| 9028 | postinstall_cmds='chmod +x $lib' |
| 9029 | ;; |
| 9030 | |
| 9031 | sunos4*) |
| 9032 | version_type=sunos |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9034 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9035 | shlibpath_var=LD_LIBRARY_PATH |
| 9036 | shlibpath_overrides_runpath=yes |
| 9037 | if test "$with_gnu_ld" = yes; then |
| 9038 | need_lib_prefix=no |
| 9039 | fi |
| 9040 | need_version=yes |
| 9041 | ;; |
| 9042 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9043 | sysv4 | sysv4.3*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9044 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9046 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9047 | shlibpath_var=LD_LIBRARY_PATH |
| 9048 | case $host_vendor in |
| 9049 | sni) |
| 9050 | shlibpath_overrides_runpath=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9051 | need_lib_prefix=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9052 | runpath_var=LD_RUN_PATH |
| 9053 | ;; |
| 9054 | siemens) |
| 9055 | need_lib_prefix=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9056 | ;; |
| 9057 | motorola) |
| 9058 | need_lib_prefix=no |
| 9059 | need_version=no |
| 9060 | shlibpath_overrides_runpath=no |
| 9061 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9062 | ;; |
| 9063 | esac |
| 9064 | ;; |
| 9065 | |
| 9066 | sysv4*MP*) |
| 9067 | if test -d /usr/nec ;then |
| 9068 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9069 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9070 | soname_spec='$libname${shared_ext}.$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9071 | shlibpath_var=LD_LIBRARY_PATH |
| 9072 | fi |
| 9073 | ;; |
| 9074 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9075 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9076 | version_type=freebsd-elf |
| 9077 | need_lib_prefix=no |
| 9078 | need_version=no |
| 9079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9080 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9081 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9082 | shlibpath_overrides_runpath=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9083 | hardcode_into_libs=yes |
| 9084 | if test "$with_gnu_ld" = yes; then |
| 9085 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9086 | else |
| 9087 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9088 | case $host_os in |
| 9089 | sco3.2v5*) |
| 9090 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9091 | ;; |
| 9092 | esac |
| 9093 | fi |
| 9094 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9095 | ;; |
| 9096 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9097 | tpf*) |
| 9098 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 9099 | version_type=linux |
| 9100 | need_lib_prefix=no |
| 9101 | need_version=no |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 9102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9103 | shlibpath_var=LD_LIBRARY_PATH |
| 9104 | shlibpath_overrides_runpath=no |
| 9105 | hardcode_into_libs=yes |
| 9106 | ;; |
| 9107 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9108 | uts4*) |
| 9109 | version_type=linux |
| 9110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9111 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9112 | shlibpath_var=LD_LIBRARY_PATH |
| 9113 | ;; |
| 9114 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9115 | *) |
| 9116 | dynamic_linker=no |
| 9117 | ;; |
| 9118 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9120 | $as_echo "$dynamic_linker" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9121 | test "$dynamic_linker" = no && can_build_shared=no |
| 9122 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9123 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9124 | if test "$GCC" = yes; then |
| 9125 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9126 | fi |
| 9127 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9128 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 9129 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 9130 | fi |
| 9131 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 9132 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 9133 | fi |
| 9134 | |
| 9135 | |
| 9136 | |
| 9137 | |
| 9138 | |
| 9139 | |
| 9140 | |
| 9141 | |
| 9142 | |
| 9143 | |
| 9144 | |
| 9145 | |
| 9146 | |
| 9147 | |
| 9148 | |
| 9149 | |
| 9150 | |
| 9151 | |
| 9152 | |
| 9153 | |
| 9154 | |
| 9155 | |
| 9156 | |
| 9157 | |
| 9158 | |
| 9159 | |
| 9160 | |
| 9161 | |
| 9162 | |
| 9163 | |
| 9164 | |
| 9165 | |
| 9166 | |
| 9167 | |
| 9168 | |
| 9169 | |
| 9170 | |
| 9171 | |
| 9172 | |
| 9173 | |
| 9174 | |
| 9175 | |
| 9176 | |
| 9177 | |
| 9178 | |
| 9179 | |
| 9180 | |
| 9181 | |
| 9182 | |
| 9183 | |
| 9184 | |
| 9185 | |
| 9186 | |
| 9187 | |
| 9188 | |
| 9189 | |
| 9190 | |
| 9191 | |
| 9192 | |
| 9193 | |
| 9194 | |
| 9195 | |
| 9196 | |
| 9197 | |
| 9198 | |
| 9199 | |
| 9200 | |
| 9201 | |
| 9202 | |
| 9203 | |
| 9204 | |
| 9205 | |
| 9206 | |
| 9207 | |
| 9208 | |
| 9209 | |
| 9210 | |
| 9211 | |
| 9212 | |
| 9213 | |
| 9214 | |
| 9215 | |
| 9216 | |
| 9217 | |
| 9218 | |
| 9219 | |
| 9220 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9222 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9223 | hardcode_action= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9224 | if test -n "$hardcode_libdir_flag_spec" || |
| 9225 | test -n "$runpath_var" || |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9226 | test "X$hardcode_automatic" = "Xyes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9227 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9228 | # We can hardcode non-existent directories. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9229 | if test "$hardcode_direct" != no && |
| 9230 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 9231 | # have to relink, otherwise we might link with an installed library |
| 9232 | # when we should be linking with a yet-to-be-installed one |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9233 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9234 | test "$hardcode_minus_L" != no; then |
| 9235 | # Linking always hardcodes the temporary library directory. |
| 9236 | hardcode_action=relink |
| 9237 | else |
| 9238 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 9239 | hardcode_action=immediate |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9240 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9241 | else |
| 9242 | # We cannot hardcode anything, or else we can only hardcode existing |
| 9243 | # directories. |
| 9244 | hardcode_action=unsupported |
| 9245 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9247 | $as_echo "$hardcode_action" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9248 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9249 | if test "$hardcode_action" = relink || |
| 9250 | test "$inherit_rpath" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9251 | # Fast installation is not supported |
| 9252 | enable_fast_install=no |
| 9253 | elif test "$shlibpath_overrides_runpath" = yes || |
| 9254 | test "$enable_shared" = no; then |
| 9255 | # Fast installation is not necessary |
| 9256 | enable_fast_install=needless |
| 9257 | fi |
| 9258 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9259 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9260 | |
| 9261 | |
| 9262 | |
| 9263 | |
| 9264 | if test "x$enable_dlopen" != xyes; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9265 | enable_dlopen=unknown |
| 9266 | enable_dlopen_self=unknown |
| 9267 | enable_dlopen_self_static=unknown |
| 9268 | else |
| 9269 | lt_cv_dlopen=no |
| 9270 | lt_cv_dlopen_libs= |
| 9271 | |
| 9272 | case $host_os in |
| 9273 | beos*) |
| 9274 | lt_cv_dlopen="load_add_on" |
| 9275 | lt_cv_dlopen_libs= |
| 9276 | lt_cv_dlopen_self=yes |
| 9277 | ;; |
| 9278 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 9279 | mingw* | pw32* | cegcc*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9280 | lt_cv_dlopen="LoadLibrary" |
| 9281 | lt_cv_dlopen_libs= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9282 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9283 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9284 | cygwin*) |
| 9285 | lt_cv_dlopen="dlopen" |
| 9286 | lt_cv_dlopen_libs= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9287 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9288 | |
| 9289 | darwin*) |
| 9290 | # if libdl is installed we need to link against it |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9292 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9293 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9294 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9295 | else |
| 9296 | ac_check_lib_save_LIBS=$LIBS |
| 9297 | LIBS="-ldl $LIBS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9299 | /* end confdefs.h. */ |
| 9300 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9301 | /* Override any GCC internal prototype to avoid an error. |
| 9302 | Use char because int might match the return type of a GCC |
| 9303 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9304 | #ifdef __cplusplus |
| 9305 | extern "C" |
| 9306 | #endif |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9307 | char dlopen (); |
| 9308 | int |
| 9309 | main () |
| 9310 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9311 | return dlopen (); |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9312 | ; |
| 9313 | return 0; |
| 9314 | } |
| 9315 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9316 | if ac_fn_c_try_link "$LINENO"; then : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9317 | ac_cv_lib_dl_dlopen=yes |
| 9318 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9319 | ac_cv_lib_dl_dlopen=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9320 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9321 | rm -f core conftest.err conftest.$ac_objext \ |
| 9322 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9323 | LIBS=$ac_check_lib_save_LIBS |
| 9324 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9326 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9327 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9328 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9329 | else |
| 9330 | |
| 9331 | lt_cv_dlopen="dyld" |
| 9332 | lt_cv_dlopen_libs= |
| 9333 | lt_cv_dlopen_self=yes |
| 9334 | |
| 9335 | fi |
| 9336 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9337 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9338 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9339 | *) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9340 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 9341 | if test "x$ac_cv_func_shl_load" = xyes; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9342 | lt_cv_dlopen="shl_load" |
| 9343 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9345 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9346 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9347 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9348 | else |
| 9349 | ac_check_lib_save_LIBS=$LIBS |
| 9350 | LIBS="-ldld $LIBS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9352 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9353 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9354 | /* Override any GCC internal prototype to avoid an error. |
| 9355 | Use char because int might match the return type of a GCC |
| 9356 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9357 | #ifdef __cplusplus |
| 9358 | extern "C" |
| 9359 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9360 | char shl_load (); |
| 9361 | int |
| 9362 | main () |
| 9363 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9364 | return shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9365 | ; |
| 9366 | return 0; |
| 9367 | } |
| 9368 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9369 | if ac_fn_c_try_link "$LINENO"; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9370 | ac_cv_lib_dld_shl_load=yes |
| 9371 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9372 | ac_cv_lib_dld_shl_load=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9373 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9374 | rm -f core conftest.err conftest.$ac_objext \ |
| 9375 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9376 | LIBS=$ac_check_lib_save_LIBS |
| 9377 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9379 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9380 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9381 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9382 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9383 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 9384 | if test "x$ac_cv_func_dlopen" = xyes; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9385 | lt_cv_dlopen="dlopen" |
| 9386 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9388 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9389 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9390 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9391 | else |
| 9392 | ac_check_lib_save_LIBS=$LIBS |
| 9393 | LIBS="-ldl $LIBS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9395 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9396 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9397 | /* Override any GCC internal prototype to avoid an error. |
| 9398 | Use char because int might match the return type of a GCC |
| 9399 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9400 | #ifdef __cplusplus |
| 9401 | extern "C" |
| 9402 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9403 | char dlopen (); |
| 9404 | int |
| 9405 | main () |
| 9406 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9407 | return dlopen (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9408 | ; |
| 9409 | return 0; |
| 9410 | } |
| 9411 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9412 | if ac_fn_c_try_link "$LINENO"; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9413 | ac_cv_lib_dl_dlopen=yes |
| 9414 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9415 | ac_cv_lib_dl_dlopen=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9416 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9417 | rm -f core conftest.err conftest.$ac_objext \ |
| 9418 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9419 | LIBS=$ac_check_lib_save_LIBS |
| 9420 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9422 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9423 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9424 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9425 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9427 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9428 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9429 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9430 | else |
| 9431 | ac_check_lib_save_LIBS=$LIBS |
| 9432 | LIBS="-lsvld $LIBS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9434 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9435 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9436 | /* Override any GCC internal prototype to avoid an error. |
| 9437 | Use char because int might match the return type of a GCC |
| 9438 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9439 | #ifdef __cplusplus |
| 9440 | extern "C" |
| 9441 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9442 | char dlopen (); |
| 9443 | int |
| 9444 | main () |
| 9445 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9446 | return dlopen (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9447 | ; |
| 9448 | return 0; |
| 9449 | } |
| 9450 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9451 | if ac_fn_c_try_link "$LINENO"; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9452 | ac_cv_lib_svld_dlopen=yes |
| 9453 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9454 | ac_cv_lib_svld_dlopen=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9455 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9456 | rm -f core conftest.err conftest.$ac_objext \ |
| 9457 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9458 | LIBS=$ac_check_lib_save_LIBS |
| 9459 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9461 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9462 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9463 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9464 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9466 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9467 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9468 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9469 | else |
| 9470 | ac_check_lib_save_LIBS=$LIBS |
| 9471 | LIBS="-ldld $LIBS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9473 | /* end confdefs.h. */ |
| 9474 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9475 | /* Override any GCC internal prototype to avoid an error. |
| 9476 | Use char because int might match the return type of a GCC |
| 9477 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9478 | #ifdef __cplusplus |
| 9479 | extern "C" |
| 9480 | #endif |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9481 | char dld_link (); |
| 9482 | int |
| 9483 | main () |
| 9484 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9485 | return dld_link (); |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9486 | ; |
| 9487 | return 0; |
| 9488 | } |
| 9489 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9490 | if ac_fn_c_try_link "$LINENO"; then : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9491 | ac_cv_lib_dld_dld_link=yes |
| 9492 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9493 | ac_cv_lib_dld_dld_link=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9494 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9495 | rm -f core conftest.err conftest.$ac_objext \ |
| 9496 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9497 | LIBS=$ac_check_lib_save_LIBS |
| 9498 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9500 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9501 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9502 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9503 | fi |
| 9504 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9505 | |
| 9506 | fi |
| 9507 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9508 | |
| 9509 | fi |
| 9510 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9511 | |
| 9512 | fi |
| 9513 | |
| 9514 | |
| 9515 | fi |
| 9516 | |
| 9517 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9518 | fi |
| 9519 | |
| 9520 | ;; |
| 9521 | esac |
| 9522 | |
| 9523 | if test "x$lt_cv_dlopen" != xno; then |
| 9524 | enable_dlopen=yes |
| 9525 | else |
| 9526 | enable_dlopen=no |
| 9527 | fi |
| 9528 | |
| 9529 | case $lt_cv_dlopen in |
| 9530 | dlopen) |
| 9531 | save_CPPFLAGS="$CPPFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9532 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9533 | |
| 9534 | save_LDFLAGS="$LDFLAGS" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9535 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9536 | |
| 9537 | save_LIBS="$LIBS" |
| 9538 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 9539 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9541 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9542 | if ${lt_cv_dlopen_self+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9543 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9544 | else |
| 9545 | if test "$cross_compiling" = yes; then : |
| 9546 | lt_cv_dlopen_self=cross |
| 9547 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9548 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9549 | lt_status=$lt_dlunknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9550 | cat > conftest.$ac_ext <<_LT_EOF |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 9551 | #line 9551 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9552 | #include "confdefs.h" |
| 9553 | |
| 9554 | #if HAVE_DLFCN_H |
| 9555 | #include <dlfcn.h> |
| 9556 | #endif |
| 9557 | |
| 9558 | #include <stdio.h> |
| 9559 | |
| 9560 | #ifdef RTLD_GLOBAL |
| 9561 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9562 | #else |
| 9563 | # ifdef DL_GLOBAL |
| 9564 | # define LT_DLGLOBAL DL_GLOBAL |
| 9565 | # else |
| 9566 | # define LT_DLGLOBAL 0 |
| 9567 | # endif |
| 9568 | #endif |
| 9569 | |
| 9570 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9571 | find out it does not work in some platform. */ |
| 9572 | #ifndef LT_DLLAZY_OR_NOW |
| 9573 | # ifdef RTLD_LAZY |
| 9574 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9575 | # else |
| 9576 | # ifdef DL_LAZY |
| 9577 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9578 | # else |
| 9579 | # ifdef RTLD_NOW |
| 9580 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9581 | # else |
| 9582 | # ifdef DL_NOW |
| 9583 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9584 | # else |
| 9585 | # define LT_DLLAZY_OR_NOW 0 |
| 9586 | # endif |
| 9587 | # endif |
| 9588 | # endif |
| 9589 | # endif |
| 9590 | #endif |
| 9591 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9592 | void fnord() { int i=42;} |
| 9593 | int main () |
| 9594 | { |
| 9595 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9596 | int status = $lt_dlunknown; |
| 9597 | |
| 9598 | if (self) |
| 9599 | { |
| 9600 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9601 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9602 | /* dlclose (self); */ |
| 9603 | } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9604 | else |
| 9605 | puts (dlerror ()); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9606 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 9607 | return status; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9608 | } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9609 | _LT_EOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9610 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9611 | (eval $ac_link) 2>&5 |
| 9612 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9614 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9615 | (./conftest; exit; ) >&5 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9616 | lt_status=$? |
| 9617 | case x$lt_status in |
| 9618 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 9619 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9620 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9621 | esac |
| 9622 | else : |
| 9623 | # compilation failed |
| 9624 | lt_cv_dlopen_self=no |
| 9625 | fi |
| 9626 | fi |
| 9627 | rm -fr conftest* |
| 9628 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9629 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9630 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9632 | $as_echo "$lt_cv_dlopen_self" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9633 | |
| 9634 | if test "x$lt_cv_dlopen_self" = xyes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9635 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9637 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9638 | if ${lt_cv_dlopen_self_static+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9639 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9640 | else |
| 9641 | if test "$cross_compiling" = yes; then : |
| 9642 | lt_cv_dlopen_self_static=cross |
| 9643 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9644 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9645 | lt_status=$lt_dlunknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9646 | cat > conftest.$ac_ext <<_LT_EOF |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 9647 | #line 9647 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9648 | #include "confdefs.h" |
| 9649 | |
| 9650 | #if HAVE_DLFCN_H |
| 9651 | #include <dlfcn.h> |
| 9652 | #endif |
| 9653 | |
| 9654 | #include <stdio.h> |
| 9655 | |
| 9656 | #ifdef RTLD_GLOBAL |
| 9657 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9658 | #else |
| 9659 | # ifdef DL_GLOBAL |
| 9660 | # define LT_DLGLOBAL DL_GLOBAL |
| 9661 | # else |
| 9662 | # define LT_DLGLOBAL 0 |
| 9663 | # endif |
| 9664 | #endif |
| 9665 | |
| 9666 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9667 | find out it does not work in some platform. */ |
| 9668 | #ifndef LT_DLLAZY_OR_NOW |
| 9669 | # ifdef RTLD_LAZY |
| 9670 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9671 | # else |
| 9672 | # ifdef DL_LAZY |
| 9673 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9674 | # else |
| 9675 | # ifdef RTLD_NOW |
| 9676 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9677 | # else |
| 9678 | # ifdef DL_NOW |
| 9679 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9680 | # else |
| 9681 | # define LT_DLLAZY_OR_NOW 0 |
| 9682 | # endif |
| 9683 | # endif |
| 9684 | # endif |
| 9685 | # endif |
| 9686 | #endif |
| 9687 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9688 | void fnord() { int i=42;} |
| 9689 | int main () |
| 9690 | { |
| 9691 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9692 | int status = $lt_dlunknown; |
| 9693 | |
| 9694 | if (self) |
| 9695 | { |
| 9696 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9697 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9698 | /* dlclose (self); */ |
| 9699 | } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9700 | else |
| 9701 | puts (dlerror ()); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9702 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 9703 | return status; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9704 | } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9705 | _LT_EOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9706 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9707 | (eval $ac_link) 2>&5 |
| 9708 | ac_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9710 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9711 | (./conftest; exit; ) >&5 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9712 | lt_status=$? |
| 9713 | case x$lt_status in |
| 9714 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 9715 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9716 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9717 | esac |
| 9718 | else : |
| 9719 | # compilation failed |
| 9720 | lt_cv_dlopen_self_static=no |
| 9721 | fi |
| 9722 | fi |
| 9723 | rm -fr conftest* |
| 9724 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9725 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9726 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9728 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9729 | fi |
| 9730 | |
| 9731 | CPPFLAGS="$save_CPPFLAGS" |
| 9732 | LDFLAGS="$save_LDFLAGS" |
| 9733 | LIBS="$save_LIBS" |
| 9734 | ;; |
| 9735 | esac |
| 9736 | |
| 9737 | case $lt_cv_dlopen_self in |
| 9738 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 9739 | *) enable_dlopen_self=unknown ;; |
| 9740 | esac |
| 9741 | |
| 9742 | case $lt_cv_dlopen_self_static in |
| 9743 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 9744 | *) enable_dlopen_self_static=unknown ;; |
| 9745 | esac |
| 9746 | fi |
| 9747 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9748 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9749 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9750 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9751 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9752 | |
| 9753 | |
| 9754 | |
| 9755 | |
| 9756 | |
| 9757 | |
| 9758 | |
| 9759 | |
| 9760 | |
| 9761 | |
| 9762 | |
| 9763 | |
| 9764 | striplib= |
| 9765 | old_striplib= |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9767 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9768 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 9769 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 9770 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9772 | $as_echo "yes" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9773 | else |
| 9774 | # FIXME - insert some real tests, host_os isn't really good enough |
| 9775 | case $host_os in |
| 9776 | darwin*) |
| 9777 | if test -n "$STRIP" ; then |
| 9778 | striplib="$STRIP -x" |
| 9779 | old_striplib="$STRIP -S" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9781 | $as_echo "yes" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9782 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9784 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9785 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9786 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9787 | *) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9789 | $as_echo "no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9790 | ;; |
| 9791 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9792 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9793 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9794 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9795 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9796 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9797 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9798 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9799 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9800 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9801 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9802 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9803 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9804 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9805 | # Report which library types will actually be built |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9807 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9809 | $as_echo "$can_build_shared" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9810 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9812 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9813 | test "$can_build_shared" = "no" && enable_shared=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9814 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9815 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 9816 | # are all built from PIC. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9817 | case $host_os in |
| 9818 | aix3*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9819 | test "$enable_shared" = yes && enable_static=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9820 | if test -n "$RANLIB"; then |
| 9821 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 9822 | postinstall_cmds='$RANLIB $lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9823 | fi |
| 9824 | ;; |
| 9825 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9826 | aix[4-9]*) |
| 9827 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 9828 | test "$enable_shared" = yes && enable_static=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9829 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9830 | ;; |
| 9831 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9833 | $as_echo "$enable_shared" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9834 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9836 | $as_echo_n "checking whether to build static libraries... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9837 | # Make sure either enable_shared or enable_static is yes. |
| 9838 | test "$enable_shared" = yes || enable_static=yes |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9840 | $as_echo "$enable_static" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9841 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9842 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9843 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9844 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9845 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9846 | ac_ext=c |
| 9847 | ac_cpp='$CPP $CPPFLAGS' |
| 9848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9851 | |
| 9852 | CC="$lt_save_CC" |
| 9853 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9854 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9855 | |
| 9856 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9857 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9858 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9859 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9860 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9861 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9862 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9863 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9864 | |
| 9865 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9866 | ac_config_commands="$ac_config_commands libtool" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9867 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9868 | |
| 9869 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9870 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9871 | # Only expand once: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9872 | |
| 9873 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9874 | # Find a good install program. We prefer a C program (faster), |
| 9875 | # so one script is as good as another. But avoid the broken or |
| 9876 | # incompatible versions: |
| 9877 | # SysV /etc/install, /usr/sbin/install |
| 9878 | # SunOS /usr/etc/install |
| 9879 | # IRIX /sbin/install |
| 9880 | # AIX /bin/install |
| 9881 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 9882 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 9883 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 9884 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9885 | # OS/2's system install, which has a completely different semantic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9886 | # ./install, which can be erroneously created by make from ./install.sh. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9887 | # Reject install programs that cannot install multiple files. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9889 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9890 | if test -z "$INSTALL"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9891 | if ${ac_cv_path_install+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9892 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9893 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9895 | for as_dir in $PATH |
| 9896 | do |
| 9897 | IFS=$as_save_IFS |
| 9898 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9899 | # Account for people who put trailing slashes in PATH elements. |
| 9900 | case $as_dir/ in #(( |
| 9901 | ./ | .// | /[cC]/* | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9902 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9903 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9904 | /usr/ucb/* ) ;; |
| 9905 | *) |
| 9906 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 9907 | # Don't use installbsd from OSF since it installs stuff as root |
| 9908 | # by default. |
| 9909 | for ac_prog in ginstall scoinst install; do |
| 9910 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9911 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9912 | if test $ac_prog = install && |
| 9913 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 9914 | # AIX install. It has an incompatible calling convention. |
| 9915 | : |
| 9916 | elif test $ac_prog = install && |
| 9917 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 9918 | # program-specific install script used by HP pwplus--don't use. |
| 9919 | : |
| 9920 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9921 | rm -rf conftest.one conftest.two conftest.dir |
| 9922 | echo one > conftest.one |
| 9923 | echo two > conftest.two |
| 9924 | mkdir conftest.dir |
| 9925 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 9926 | test -s conftest.one && test -s conftest.two && |
| 9927 | test -s conftest.dir/conftest.one && |
| 9928 | test -s conftest.dir/conftest.two |
| 9929 | then |
| 9930 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 9931 | break 3 |
| 9932 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9933 | fi |
| 9934 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9935 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9936 | done |
| 9937 | ;; |
| 9938 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9939 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9940 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9941 | IFS=$as_save_IFS |
| 9942 | |
| 9943 | rm -rf conftest.one conftest.two conftest.dir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9944 | |
| 9945 | fi |
| 9946 | if test "${ac_cv_path_install+set}" = set; then |
| 9947 | INSTALL=$ac_cv_path_install |
| 9948 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9949 | # As a last resort, use the slow shell script. Don't cache a |
| 9950 | # value for INSTALL within a source directory, because that will |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9951 | # break other packages using the cache if that directory is |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9952 | # removed, or if the value is a relative name. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9953 | INSTALL=$ac_install_sh |
| 9954 | fi |
| 9955 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9957 | $as_echo "$INSTALL" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9958 | |
| 9959 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 9960 | # It thinks the first close brace ends the variable substitution. |
| 9961 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 9962 | |
| 9963 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 9964 | |
| 9965 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 9966 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9967 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9968 | ######### |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9969 | # Enable large file support (if special flags are necessary) |
| 9970 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9971 | # Check whether --enable-largefile was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9972 | if test "${enable_largefile+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9973 | enableval=$enable_largefile; |
| 9974 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9975 | |
| 9976 | if test "$enable_largefile" != no; then |
| 9977 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9979 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9980 | if ${ac_cv_sys_largefile_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9981 | $as_echo_n "(cached) " >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9982 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9983 | ac_cv_sys_largefile_CC=no |
| 9984 | if test "$GCC" != yes; then |
| 9985 | ac_save_CC=$CC |
| 9986 | while :; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9987 | # IRIX 6.2 and later do not support large files by default, |
| 9988 | # so use the C compiler's -n32 option if that helps. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 9989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9990 | /* end confdefs.h. */ |
| 9991 | #include <sys/types.h> |
| 9992 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9993 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9994 | since some C++ compilers masquerading as C compilers |
| 9995 | incorrectly reject 9223372036854775807. */ |
| 9996 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9997 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9998 | && LARGE_OFF_T % 2147483647 == 1) |
| 9999 | ? 1 : -1]; |
| 10000 | int |
| 10001 | main () |
| 10002 | { |
| 10003 | |
| 10004 | ; |
| 10005 | return 0; |
| 10006 | } |
| 10007 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10008 | if ac_fn_c_try_compile "$LINENO"; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10009 | break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10010 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10011 | rm -f core conftest.err conftest.$ac_objext |
| 10012 | CC="$CC -n32" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10013 | if ac_fn_c_try_compile "$LINENO"; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10014 | ac_cv_sys_largefile_CC=' -n32'; break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10015 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10016 | rm -f core conftest.err conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10017 | break |
| 10018 | done |
| 10019 | CC=$ac_save_CC |
| 10020 | rm -f conftest.$ac_ext |
| 10021 | fi |
| 10022 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10024 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10025 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 10026 | CC=$CC$ac_cv_sys_largefile_CC |
| 10027 | fi |
| 10028 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10030 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10031 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10032 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10033 | else |
| 10034 | while :; do |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10036 | /* end confdefs.h. */ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10037 | #include <sys/types.h> |
| 10038 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10039 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10040 | since some C++ compilers masquerading as C compilers |
| 10041 | incorrectly reject 9223372036854775807. */ |
| 10042 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10043 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10044 | && LARGE_OFF_T % 2147483647 == 1) |
| 10045 | ? 1 : -1]; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10046 | int |
| 10047 | main () |
| 10048 | { |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10049 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10050 | ; |
| 10051 | return 0; |
| 10052 | } |
| 10053 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10054 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10055 | ac_cv_sys_file_offset_bits=no; break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10056 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10059 | /* end confdefs.h. */ |
| 10060 | #define _FILE_OFFSET_BITS 64 |
| 10061 | #include <sys/types.h> |
| 10062 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10063 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10064 | since some C++ compilers masquerading as C compilers |
| 10065 | incorrectly reject 9223372036854775807. */ |
| 10066 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10067 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10068 | && LARGE_OFF_T % 2147483647 == 1) |
| 10069 | ? 1 : -1]; |
| 10070 | int |
| 10071 | main () |
| 10072 | { |
| 10073 | |
| 10074 | ; |
| 10075 | return 0; |
| 10076 | } |
| 10077 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10078 | if ac_fn_c_try_compile "$LINENO"; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10079 | ac_cv_sys_file_offset_bits=64; break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10080 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10082 | ac_cv_sys_file_offset_bits=unknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10083 | break |
| 10084 | done |
| 10085 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10087 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 10088 | case $ac_cv_sys_file_offset_bits in #( |
| 10089 | no | unknown) ;; |
| 10090 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10091 | cat >>confdefs.h <<_ACEOF |
| 10092 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 10093 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10094 | ;; |
| 10095 | esac |
| 10096 | rm -rf conftest* |
| 10097 | if test $ac_cv_sys_file_offset_bits = unknown; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10099 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10100 | if ${ac_cv_sys_large_files+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10101 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10102 | else |
| 10103 | while :; do |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10105 | /* end confdefs.h. */ |
| 10106 | #include <sys/types.h> |
| 10107 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10108 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10109 | since some C++ compilers masquerading as C compilers |
| 10110 | incorrectly reject 9223372036854775807. */ |
| 10111 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10112 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10113 | && LARGE_OFF_T % 2147483647 == 1) |
| 10114 | ? 1 : -1]; |
| 10115 | int |
| 10116 | main () |
| 10117 | { |
| 10118 | |
| 10119 | ; |
| 10120 | return 0; |
| 10121 | } |
| 10122 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10123 | if ac_fn_c_try_compile "$LINENO"; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10124 | ac_cv_sys_large_files=no; break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10125 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10128 | /* end confdefs.h. */ |
| 10129 | #define _LARGE_FILES 1 |
| 10130 | #include <sys/types.h> |
| 10131 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10132 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10133 | since some C++ compilers masquerading as C compilers |
| 10134 | incorrectly reject 9223372036854775807. */ |
| 10135 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10136 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10137 | && LARGE_OFF_T % 2147483647 == 1) |
| 10138 | ? 1 : -1]; |
| 10139 | int |
| 10140 | main () |
| 10141 | { |
| 10142 | |
| 10143 | ; |
| 10144 | return 0; |
| 10145 | } |
| 10146 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10147 | if ac_fn_c_try_compile "$LINENO"; then : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10148 | ac_cv_sys_large_files=1; break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10149 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10151 | ac_cv_sys_large_files=unknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10152 | break |
| 10153 | done |
| 10154 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10156 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 10157 | case $ac_cv_sys_large_files in #( |
| 10158 | no | unknown) ;; |
| 10159 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10160 | cat >>confdefs.h <<_ACEOF |
| 10161 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 10162 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10163 | ;; |
| 10164 | esac |
| 10165 | rm -rf conftest* |
| 10166 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10167 | |
| 10168 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10169 | fi |
| 10170 | |
| 10171 | |
| 10172 | ######### |
| 10173 | # Check for needed/wanted data types |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10174 | ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" |
| 10175 | if test "x$ac_cv_type_int8_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10176 | |
| 10177 | cat >>confdefs.h <<_ACEOF |
| 10178 | #define HAVE_INT8_T 1 |
| 10179 | _ACEOF |
| 10180 | |
| 10181 | |
| 10182 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10183 | ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" |
| 10184 | if test "x$ac_cv_type_int16_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10185 | |
| 10186 | cat >>confdefs.h <<_ACEOF |
| 10187 | #define HAVE_INT16_T 1 |
| 10188 | _ACEOF |
| 10189 | |
| 10190 | |
| 10191 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10192 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
| 10193 | if test "x$ac_cv_type_int32_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10194 | |
| 10195 | cat >>confdefs.h <<_ACEOF |
| 10196 | #define HAVE_INT32_T 1 |
| 10197 | _ACEOF |
| 10198 | |
| 10199 | |
| 10200 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10201 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
| 10202 | if test "x$ac_cv_type_int64_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10203 | |
| 10204 | cat >>confdefs.h <<_ACEOF |
| 10205 | #define HAVE_INT64_T 1 |
| 10206 | _ACEOF |
| 10207 | |
| 10208 | |
| 10209 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10210 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
| 10211 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 10212 | |
| 10213 | cat >>confdefs.h <<_ACEOF |
| 10214 | #define HAVE_INTPTR_T 1 |
| 10215 | _ACEOF |
| 10216 | |
| 10217 | |
| 10218 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10219 | ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" |
| 10220 | if test "x$ac_cv_type_uint8_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10221 | |
| 10222 | cat >>confdefs.h <<_ACEOF |
| 10223 | #define HAVE_UINT8_T 1 |
| 10224 | _ACEOF |
| 10225 | |
| 10226 | |
| 10227 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10228 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
| 10229 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10230 | |
| 10231 | cat >>confdefs.h <<_ACEOF |
| 10232 | #define HAVE_UINT16_T 1 |
| 10233 | _ACEOF |
| 10234 | |
| 10235 | |
| 10236 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10237 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
| 10238 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10239 | |
| 10240 | cat >>confdefs.h <<_ACEOF |
| 10241 | #define HAVE_UINT32_T 1 |
| 10242 | _ACEOF |
| 10243 | |
| 10244 | |
| 10245 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10246 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
| 10247 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10248 | |
| 10249 | cat >>confdefs.h <<_ACEOF |
| 10250 | #define HAVE_UINT64_T 1 |
| 10251 | _ACEOF |
| 10252 | |
| 10253 | |
| 10254 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10255 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
| 10256 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 10257 | |
| 10258 | cat >>confdefs.h <<_ACEOF |
| 10259 | #define HAVE_UINTPTR_T 1 |
| 10260 | _ACEOF |
| 10261 | |
| 10262 | |
| 10263 | fi |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10264 | |
| 10265 | |
| 10266 | ######### |
| 10267 | # Check for needed/wanted headers |
drh | 86c5a93 | 2012-02-08 12:13:28 +0000 | [diff] [blame] | 10268 | for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10269 | do : |
| 10270 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10271 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10272 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10273 | cat >>confdefs.h <<_ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10274 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10275 | _ACEOF |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10276 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10277 | fi |
| 10278 | |
| 10279 | done |
| 10280 | |
| 10281 | |
| 10282 | ######### |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10283 | # Figure out whether or not we have these functions |
| 10284 | # |
drh | e32a256 | 2016-03-04 02:38:00 +0000 | [diff] [blame] | 10285 | for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10286 | do : |
| 10287 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10288 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10289 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10290 | cat >>confdefs.h <<_ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10291 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10292 | _ACEOF |
| 10293 | |
| 10294 | fi |
| 10295 | done |
| 10296 | |
| 10297 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10298 | ######### |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 10299 | # By default, we use the amalgamation (this may be changed below...) |
| 10300 | # |
| 10301 | USE_AMALGAMATION=1 |
| 10302 | |
| 10303 | ######### |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10304 | # See whether we can run specific tclsh versions known to work well; |
| 10305 | # if not, then we fall back to plain tclsh. |
| 10306 | # TODO: try other versions before falling back? |
| 10307 | # |
drh | 0b11bcb | 2017-09-22 00:24:44 +0000 | [diff] [blame] | 10308 | for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10309 | do |
| 10310 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10311 | set dummy $ac_prog; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10313 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10314 | if ${ac_cv_prog_TCLSH_CMD+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10315 | $as_echo_n "(cached) " >&6 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10316 | else |
| 10317 | if test -n "$TCLSH_CMD"; then |
| 10318 | ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. |
| 10319 | else |
| 10320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10321 | for as_dir in $PATH |
| 10322 | do |
| 10323 | IFS=$as_save_IFS |
| 10324 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10325 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10326 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10327 | ac_cv_prog_TCLSH_CMD="$ac_prog" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10329 | break 2 |
| 10330 | fi |
| 10331 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10332 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10333 | IFS=$as_save_IFS |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10334 | |
| 10335 | fi |
| 10336 | fi |
| 10337 | TCLSH_CMD=$ac_cv_prog_TCLSH_CMD |
| 10338 | if test -n "$TCLSH_CMD"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10340 | $as_echo "$TCLSH_CMD" >&6; } |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10341 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10343 | $as_echo "no" >&6; } |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10344 | fi |
| 10345 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10346 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10347 | test -n "$TCLSH_CMD" && break |
| 10348 | done |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 10349 | test -n "$TCLSH_CMD" || TCLSH_CMD="none" |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10350 | |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 10351 | if test "$TCLSH_CMD" = "none"; then |
| 10352 | # If we can't find a local tclsh, then building the amalgamation will fail. |
| 10353 | # We act as though --disable-amalgamation has been used. |
| 10354 | echo "Warning: can't find tclsh - defaulting to non-amalgamation build." |
| 10355 | USE_AMALGAMATION=0 |
| 10356 | TCLSH_CMD="tclsh" |
| 10357 | fi |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10358 | |
| 10359 | |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10360 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10361 | if test "x${TCLLIBDIR+set}" != "xset" ; then |
| 10362 | TCLLIBDIR='$(libdir)' |
| 10363 | for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do |
| 10364 | TCLLIBDIR=$i |
| 10365 | break |
| 10366 | done |
| 10367 | TCLLIBDIR="${TCLLIBDIR}/sqlite3" |
| 10368 | fi |
| 10369 | |
| 10370 | |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10371 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10372 | # Set up an appropriate program prefix |
| 10373 | # |
| 10374 | if test "$program_prefix" = "NONE"; then |
| 10375 | program_prefix="" |
| 10376 | fi |
| 10377 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10378 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 10379 | VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10380 | { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10381 | $as_echo "$as_me: Version set to $VERSION" >&6;} |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 10382 | |
| 10383 | RELEASE=`cat $srcdir/VERSION` |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10385 | $as_echo "$as_me: Release set to $RELEASE" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10386 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10387 | VERSION_NUMBER=`cat $srcdir/VERSION \ |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame] | 10388 | | sed 's/[^0-9]/ /g' \ |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 10389 | | awk '{printf "%d%03d%03d",$1,$2,$3}'` |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10391 | $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10392 | |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame] | 10393 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10394 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10395 | # Locate a compiler for the build machine. This compiler should |
| 10396 | # generate command-line programs that run on the build machine. |
| 10397 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10398 | if test x"$cross_compiling" = xno; then |
| 10399 | BUILD_CC=$CC |
| 10400 | BUILD_CFLAGS=$CFLAGS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10401 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10402 | if test "${BUILD_CC+set}" != set; then |
| 10403 | for ac_prog in gcc cc cl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10404 | do |
| 10405 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10406 | set dummy $ac_prog; ac_word=$2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10408 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10409 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10410 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10411 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10412 | if test -n "$BUILD_CC"; then |
| 10413 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10414 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10416 | for as_dir in $PATH |
| 10417 | do |
| 10418 | IFS=$as_save_IFS |
| 10419 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10420 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10421 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10422 | ac_cv_prog_BUILD_CC="$ac_prog" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10424 | break 2 |
| 10425 | fi |
| 10426 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10427 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10428 | IFS=$as_save_IFS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10429 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10430 | fi |
| 10431 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10432 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10433 | if test -n "$BUILD_CC"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10435 | $as_echo "$BUILD_CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10436 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10438 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10439 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10440 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10441 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10442 | test -n "$BUILD_CC" && break |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10443 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10444 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10445 | fi |
| 10446 | if test "${BUILD_CFLAGS+set}" != set; then |
| 10447 | BUILD_CFLAGS="-g" |
| 10448 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10449 | fi |
| 10450 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10451 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 10452 | ########## |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10453 | # Do we want to support multithreaded use of sqlite |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 10454 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10455 | # Check whether --enable-threadsafe was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10456 | if test "${enable_threadsafe+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10457 | enableval=$enable_threadsafe; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10458 | fi |
| 10459 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10461 | $as_echo_n "checking whether to support threadsafe operation... " >&6; } |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10462 | if test "$enable_threadsafe" = "no"; then |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10463 | SQLITE_THREADSAFE=0 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10465 | $as_echo "no" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10466 | else |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10467 | SQLITE_THREADSAFE=1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10469 | $as_echo "yes" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10470 | fi |
| 10471 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10472 | |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10473 | if test "$SQLITE_THREADSAFE" = "1"; then |
drh | ba60fbb | 2016-01-28 02:47:32 +0000 | [diff] [blame] | 10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
| 10475 | $as_echo_n "checking for library containing pthread_create... " >&6; } |
| 10476 | if ${ac_cv_search_pthread_create+:} false; then : |
| 10477 | $as_echo_n "(cached) " >&6 |
| 10478 | else |
| 10479 | ac_func_search_save_LIBS=$LIBS |
| 10480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10481 | /* end confdefs.h. */ |
| 10482 | |
| 10483 | /* Override any GCC internal prototype to avoid an error. |
| 10484 | Use char because int might match the return type of a GCC |
| 10485 | builtin and then its argument prototype would still apply. */ |
| 10486 | #ifdef __cplusplus |
| 10487 | extern "C" |
| 10488 | #endif |
| 10489 | char pthread_create (); |
| 10490 | int |
| 10491 | main () |
| 10492 | { |
| 10493 | return pthread_create (); |
| 10494 | ; |
| 10495 | return 0; |
| 10496 | } |
| 10497 | _ACEOF |
| 10498 | for ac_lib in '' pthread; do |
| 10499 | if test -z "$ac_lib"; then |
| 10500 | ac_res="none required" |
| 10501 | else |
| 10502 | ac_res=-l$ac_lib |
| 10503 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10504 | fi |
| 10505 | if ac_fn_c_try_link "$LINENO"; then : |
| 10506 | ac_cv_search_pthread_create=$ac_res |
| 10507 | fi |
| 10508 | rm -f core conftest.err conftest.$ac_objext \ |
| 10509 | conftest$ac_exeext |
| 10510 | if ${ac_cv_search_pthread_create+:} false; then : |
| 10511 | break |
| 10512 | fi |
| 10513 | done |
| 10514 | if ${ac_cv_search_pthread_create+:} false; then : |
| 10515 | |
| 10516 | else |
| 10517 | ac_cv_search_pthread_create=no |
| 10518 | fi |
| 10519 | rm conftest.$ac_ext |
| 10520 | LIBS=$ac_func_search_save_LIBS |
| 10521 | fi |
| 10522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
| 10523 | $as_echo "$ac_cv_search_pthread_create" >&6; } |
| 10524 | ac_res=$ac_cv_search_pthread_create |
| 10525 | if test "$ac_res" != no; then : |
| 10526 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10527 | |
| 10528 | fi |
| 10529 | |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5 |
| 10531 | $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; } |
| 10532 | if ${ac_cv_search_pthread_mutexattr_init+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10533 | $as_echo_n "(cached) " >&6 |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10534 | else |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10535 | ac_func_search_save_LIBS=$LIBS |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10537 | /* end confdefs.h. */ |
| 10538 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10539 | /* Override any GCC internal prototype to avoid an error. |
| 10540 | Use char because int might match the return type of a GCC |
| 10541 | builtin and then its argument prototype would still apply. */ |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10542 | #ifdef __cplusplus |
| 10543 | extern "C" |
| 10544 | #endif |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10545 | char pthread_mutexattr_init (); |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10546 | int |
| 10547 | main () |
| 10548 | { |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10549 | return pthread_mutexattr_init (); |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10550 | ; |
| 10551 | return 0; |
| 10552 | } |
| 10553 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10554 | for ac_lib in '' pthread; do |
| 10555 | if test -z "$ac_lib"; then |
| 10556 | ac_res="none required" |
| 10557 | else |
| 10558 | ac_res=-l$ac_lib |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10559 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10560 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10561 | if ac_fn_c_try_link "$LINENO"; then : |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10562 | ac_cv_search_pthread_mutexattr_init=$ac_res |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10563 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10564 | rm -f core conftest.err conftest.$ac_objext \ |
| 10565 | conftest$ac_exeext |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10566 | if ${ac_cv_search_pthread_mutexattr_init+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10567 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10568 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10569 | done |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10570 | if ${ac_cv_search_pthread_mutexattr_init+:} false; then : |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10571 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10572 | else |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10573 | ac_cv_search_pthread_mutexattr_init=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10574 | fi |
| 10575 | rm conftest.$ac_ext |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10576 | LIBS=$ac_func_search_save_LIBS |
| 10577 | fi |
drh | 13c808a | 2016-01-13 21:23:48 +0000 | [diff] [blame] | 10578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5 |
| 10579 | $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; } |
| 10580 | ac_res=$ac_cv_search_pthread_mutexattr_init |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10581 | if test "$ac_res" != no; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10582 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10583 | |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10584 | fi |
| 10585 | |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10586 | fi |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10587 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10588 | ########## |
| 10589 | # Do we want to support release |
| 10590 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10591 | # Check whether --enable-releasemode was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10592 | if test "${enable_releasemode+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10593 | enableval=$enable_releasemode; |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10594 | else |
| 10595 | enable_releasemode=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10596 | fi |
| 10597 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10599 | $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; } |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10600 | if test "$enable_releasemode" = "no"; then |
| 10601 | ALLOWRELEASE="" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10603 | $as_echo "no" >&6; } |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10604 | else |
drh | 0b47d34 | 2007-11-27 14:50:06 +0000 | [diff] [blame] | 10605 | ALLOWRELEASE="-release `cat $srcdir/VERSION`" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10607 | $as_echo "yes" >&6; } |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10608 | fi |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10609 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10610 | |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10611 | ########## |
| 10612 | # Do we want temporary databases in memory |
| 10613 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10614 | # Check whether --enable-tempstore was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10615 | if test "${enable_tempstore+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10616 | enableval=$enable_tempstore; |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10617 | else |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 10618 | enable_tempstore=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10619 | fi |
| 10620 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10622 | $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; } |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10623 | case "$enable_tempstore" in |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10624 | never ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 10625 | TEMP_STORE=0 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10627 | $as_echo "never" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10628 | ;; |
| 10629 | no ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 10630 | TEMP_STORE=1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10632 | $as_echo "no" >&6; } |
| 10633 | ;; |
| 10634 | yes ) |
| 10635 | TEMP_STORE=2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10637 | $as_echo "yes" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10638 | ;; |
| 10639 | always ) |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10640 | TEMP_STORE=3 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10642 | $as_echo "always" >&6; } |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 10643 | ;; |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10644 | * ) |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 10645 | TEMP_STORE=1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10647 | $as_echo "no" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10648 | ;; |
| 10649 | esac |
| 10650 | |
| 10651 | |
| 10652 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10653 | ########### |
| 10654 | # Lots of things are different if we are compiling for Windows using |
| 10655 | # the CYGWIN environment. So check for that special case and handle |
| 10656 | # things accordingly. |
| 10657 | # |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10659 | $as_echo_n "checking if executables have the .exe suffix... " >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10660 | if test "$config_BUILD_EXEEXT" = ".exe"; then |
| 10661 | CYGWIN=yes |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10663 | $as_echo "yes" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10664 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10666 | $as_echo "unknown" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10667 | fi |
| 10668 | if test "$CYGWIN" != "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10669 | |
| 10670 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10671 | *cygwin* ) CYGWIN=yes;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10672 | * ) CYGWIN=no;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10673 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10674 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10675 | fi |
| 10676 | if test "$CYGWIN" = "yes"; then |
| 10677 | BUILD_EXEEXT=.exe |
| 10678 | else |
dougcurrie | 6194a5f | 2003-12-19 20:09:51 +0000 | [diff] [blame] | 10679 | BUILD_EXEEXT=$EXEEXT |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10680 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10681 | if test x"$cross_compiling" = xno; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10682 | TARGET_EXEEXT=$BUILD_EXEEXT |
| 10683 | else |
| 10684 | TARGET_EXEEXT=$config_TARGET_EXEEXT |
| 10685 | fi |
| 10686 | if test "$TARGET_EXEEXT" = ".exe"; then |
mistachkin | fe27b08 | 2013-08-28 18:06:26 +0000 | [diff] [blame] | 10687 | SQLITE_OS_UNIX=0 |
| 10688 | SQLITE_OS_WIN=1 |
| 10689 | CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10690 | else |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 10691 | SQLITE_OS_UNIX=1 |
| 10692 | SQLITE_OS_WIN=0 |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 10693 | CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10694 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10695 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10696 | |
| 10697 | |
| 10698 | |
| 10699 | |
| 10700 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10701 | ########## |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10702 | # Figure out all the parameters needed to compile against Tcl. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10703 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10704 | # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG |
| 10705 | # macros in the in the tcl.m4 file of the standard TCL distribution. |
| 10706 | # Those macros could not be used directly since we have to make some |
| 10707 | # minor changes to accomodate systems that do not have TCL installed. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10708 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10709 | # Check whether --enable-tcl was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10710 | if test "${enable_tcl+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10711 | enableval=$enable_tcl; use_tcl=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10712 | else |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10713 | use_tcl=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10714 | fi |
| 10715 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10716 | if test "${use_tcl}" = "yes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10717 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10718 | # Check whether --with-tcl was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10719 | if test "${with_tcl+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10720 | withval=$with_tcl; with_tclconfig=${withval} |
| 10721 | fi |
| 10722 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10724 | $as_echo_n "checking for Tcl configuration... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10725 | if ${ac_cv_c_tclconfig+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10726 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10727 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10728 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10729 | # First check to see if --with-tcl was specified. |
| 10730 | if test x"${with_tclconfig}" != x ; then |
| 10731 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 10732 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 10733 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10734 | as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10735 | fi |
| 10736 | fi |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10737 | |
| 10738 | # Start autosearch by asking tclsh |
drh | e74f465 | 2012-08-15 16:06:54 +0000 | [diff] [blame] | 10739 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10740 | if test x"$cross_compiling" = xno; then |
| 10741 | for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` |
| 10742 | do |
| 10743 | if test -f "$i/tclConfig.sh" ; then |
| 10744 | ac_cv_c_tclconfig="$i" |
| 10745 | break |
| 10746 | fi |
| 10747 | done |
| 10748 | fi |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10749 | fi |
| 10750 | |
drh | f960a64 | 2015-05-30 22:57:49 +0000 | [diff] [blame] | 10751 | # On ubuntu 14.10, $auto_path on tclsh is not quite correct. |
| 10752 | # So try again after applying corrections. |
| 10753 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10754 | if test x"$cross_compiling" = xno; then |
| 10755 | for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'` |
| 10756 | do |
| 10757 | if test -f "$i/tclConfig.sh" ; then |
| 10758 | ac_cv_c_tclconfig="$i" |
| 10759 | break |
| 10760 | fi |
| 10761 | done |
| 10762 | fi |
| 10763 | fi |
| 10764 | |
drh | 6831474 | 2016-05-23 00:10:58 +0000 | [diff] [blame] | 10765 | # Recent versions of Xcode on Macs hid the tclConfig.sh file |
| 10766 | # in a strange place. |
| 10767 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10768 | if test x"$cross_compiling" = xno; then |
| 10769 | for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib |
| 10770 | do |
| 10771 | if test -f "$i/tclConfig.sh" ; then |
| 10772 | ac_cv_c_tclconfig="$i" |
| 10773 | break |
| 10774 | fi |
| 10775 | done |
| 10776 | fi |
| 10777 | fi |
| 10778 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10779 | # then check for a private Tcl installation |
| 10780 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10781 | for i in \ |
| 10782 | ../tcl \ |
| 10783 | `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 10784 | `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ |
| 10785 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 10786 | ../../tcl \ |
| 10787 | `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 10788 | `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 10789 | `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 10790 | ../../../tcl \ |
| 10791 | `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 10792 | `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 10793 | `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` |
| 10794 | do |
| 10795 | if test -f "$i/unix/tclConfig.sh" ; then |
| 10796 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 10797 | break |
| 10798 | fi |
| 10799 | done |
| 10800 | fi |
| 10801 | |
| 10802 | # check in a few common install locations |
| 10803 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10804 | for i in \ |
| 10805 | `ls -d ${libdir} 2>/dev/null` \ |
| 10806 | `ls -d /usr/local/lib 2>/dev/null` \ |
| 10807 | `ls -d /usr/contrib/lib 2>/dev/null` \ |
| 10808 | `ls -d /usr/lib 2>/dev/null` |
| 10809 | do |
| 10810 | if test -f "$i/tclConfig.sh" ; then |
| 10811 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 10812 | break |
| 10813 | fi |
| 10814 | done |
| 10815 | fi |
| 10816 | |
| 10817 | # check in a few other private locations |
| 10818 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10819 | for i in \ |
| 10820 | ${srcdir}/../tcl \ |
| 10821 | `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 10822 | `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ |
| 10823 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` |
| 10824 | do |
| 10825 | if test -f "$i/unix/tclConfig.sh" ; then |
| 10826 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 10827 | break |
| 10828 | fi |
| 10829 | done |
| 10830 | fi |
| 10831 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10832 | fi |
| 10833 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10834 | |
| 10835 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 10836 | use_tcl=no |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10838 | $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10840 | $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10842 | $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10843 | else |
| 10844 | TCL_BIN_DIR=${ac_cv_c_tclconfig} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10846 | $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10847 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10849 | $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10850 | if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10852 | $as_echo "loading" >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10853 | . $TCL_BIN_DIR/tclConfig.sh |
| 10854 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10856 | $as_echo "file not found" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10857 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10858 | |
| 10859 | # |
| 10860 | # If the TCL_BIN_DIR is the build directory (not the install directory), |
| 10861 | # then set the common variable name to the value of the build variables. |
| 10862 | # For example, the variable TCL_LIB_SPEC will be set to the value |
| 10863 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC |
| 10864 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an |
| 10865 | # installed and uninstalled version of Tcl. |
| 10866 | # |
| 10867 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10868 | if test -f $TCL_BIN_DIR/Makefile ; then |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10869 | TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} |
| 10870 | TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} |
| 10871 | TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} |
| 10872 | fi |
| 10873 | |
| 10874 | # |
| 10875 | # eval is required to do the TCL_DBGX substitution |
| 10876 | # |
| 10877 | |
| 10878 | eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" |
| 10879 | eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" |
| 10880 | eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" |
| 10881 | |
| 10882 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" |
| 10883 | eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" |
| 10884 | eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" |
| 10885 | |
| 10886 | |
| 10887 | |
| 10888 | |
| 10889 | |
| 10890 | |
| 10891 | |
| 10892 | |
| 10893 | |
| 10894 | |
| 10895 | |
| 10896 | |
| 10897 | |
drh | d881ce8 | 2015-03-31 17:01:52 +0000 | [diff] [blame] | 10898 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10899 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10900 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10901 | if test "${use_tcl}" = "no" ; then |
| 10902 | HAVE_TCL="" |
| 10903 | else |
| 10904 | HAVE_TCL=1 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 10905 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10906 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10907 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10908 | ########## |
| 10909 | # Figure out what C libraries are required to compile programs |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10910 | # that use "readline()" library. |
| 10911 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10912 | TARGET_READLINE_LIBS="" |
| 10913 | TARGET_READLINE_INC="" |
| 10914 | TARGET_HAVE_READLINE=0 |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 10915 | TARGET_HAVE_EDITLINE=0 |
| 10916 | # Check whether --enable-editline was given. |
| 10917 | if test "${enable_editline+set}" = set; then : |
| 10918 | enableval=$enable_editline; with_editline=$enableval |
| 10919 | else |
| 10920 | with_editline=auto |
| 10921 | fi |
| 10922 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10923 | # Check whether --enable-readline was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 10924 | if test "${enable_readline+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10925 | enableval=$enable_readline; with_readline=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10926 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10927 | with_readline=auto |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10928 | fi |
| 10929 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10930 | |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 10931 | if test x"$with_editline" != xno; then |
| 10932 | sLIBS=$LIBS |
| 10933 | LIBS="" |
| 10934 | TARGET_HAVE_EDITLINE=1 |
| 10935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5 |
| 10936 | $as_echo_n "checking for library containing readline... " >&6; } |
| 10937 | if ${ac_cv_search_readline+:} false; then : |
| 10938 | $as_echo_n "(cached) " >&6 |
| 10939 | else |
| 10940 | ac_func_search_save_LIBS=$LIBS |
| 10941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10942 | /* end confdefs.h. */ |
| 10943 | |
| 10944 | /* Override any GCC internal prototype to avoid an error. |
| 10945 | Use char because int might match the return type of a GCC |
| 10946 | builtin and then its argument prototype would still apply. */ |
| 10947 | #ifdef __cplusplus |
| 10948 | extern "C" |
| 10949 | #endif |
| 10950 | char readline (); |
| 10951 | int |
| 10952 | main () |
| 10953 | { |
| 10954 | return readline (); |
| 10955 | ; |
| 10956 | return 0; |
| 10957 | } |
| 10958 | _ACEOF |
| 10959 | for ac_lib in '' edit; do |
| 10960 | if test -z "$ac_lib"; then |
| 10961 | ac_res="none required" |
| 10962 | else |
| 10963 | ac_res=-l$ac_lib |
| 10964 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10965 | fi |
| 10966 | if ac_fn_c_try_link "$LINENO"; then : |
| 10967 | ac_cv_search_readline=$ac_res |
| 10968 | fi |
| 10969 | rm -f core conftest.err conftest.$ac_objext \ |
| 10970 | conftest$ac_exeext |
| 10971 | if ${ac_cv_search_readline+:} false; then : |
| 10972 | break |
| 10973 | fi |
| 10974 | done |
| 10975 | if ${ac_cv_search_readline+:} false; then : |
| 10976 | |
| 10977 | else |
| 10978 | ac_cv_search_readline=no |
| 10979 | fi |
| 10980 | rm conftest.$ac_ext |
| 10981 | LIBS=$ac_func_search_save_LIBS |
| 10982 | fi |
| 10983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5 |
| 10984 | $as_echo "$ac_cv_search_readline" >&6; } |
| 10985 | ac_res=$ac_cv_search_readline |
| 10986 | if test "$ac_res" != no; then : |
| 10987 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10988 | with_readline=no |
| 10989 | else |
| 10990 | TARGET_HAVE_EDITLINE=0 |
| 10991 | fi |
| 10992 | |
| 10993 | TARGET_READLINE_LIBS=$LIBS |
| 10994 | LIBS=$sLIBS |
| 10995 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10996 | if test x"$with_readline" != xno; then |
| 10997 | found="yes" |
| 10998 | |
| 10999 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11000 | # Check whether --with-readline-lib was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11001 | if test "${with_readline_lib+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11002 | withval=$with_readline_lib; with_readline_lib=$withval |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11003 | else |
| 11004 | with_readline_lib="auto" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11005 | fi |
| 11006 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11007 | if test "x$with_readline_lib" = xauto; then |
| 11008 | save_LIBS="$LIBS" |
| 11009 | LIBS="" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11011 | $as_echo_n "checking for library containing tgetent... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11012 | if ${ac_cv_search_tgetent+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11013 | $as_echo_n "(cached) " >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11014 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11015 | ac_func_search_save_LIBS=$LIBS |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11017 | /* end confdefs.h. */ |
| 11018 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11019 | /* Override any GCC internal prototype to avoid an error. |
| 11020 | Use char because int might match the return type of a GCC |
| 11021 | builtin and then its argument prototype would still apply. */ |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11022 | #ifdef __cplusplus |
| 11023 | extern "C" |
| 11024 | #endif |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11025 | char tgetent (); |
| 11026 | int |
| 11027 | main () |
| 11028 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11029 | return tgetent (); |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11030 | ; |
| 11031 | return 0; |
| 11032 | } |
| 11033 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11034 | for ac_lib in '' readline ncurses curses termcap; do |
| 11035 | if test -z "$ac_lib"; then |
| 11036 | ac_res="none required" |
| 11037 | else |
| 11038 | ac_res=-l$ac_lib |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11039 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11040 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11041 | if ac_fn_c_try_link "$LINENO"; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11042 | ac_cv_search_tgetent=$ac_res |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11043 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11044 | rm -f core conftest.err conftest.$ac_objext \ |
| 11045 | conftest$ac_exeext |
| 11046 | if ${ac_cv_search_tgetent+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11047 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11048 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11049 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11050 | if ${ac_cv_search_tgetent+:} false; then : |
| 11051 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11052 | else |
| 11053 | ac_cv_search_tgetent=no |
| 11054 | fi |
| 11055 | rm conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11056 | LIBS=$ac_func_search_save_LIBS |
| 11057 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11059 | $as_echo "$ac_cv_search_tgetent" >&6; } |
| 11060 | ac_res=$ac_cv_search_tgetent |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11061 | if test "$ac_res" != no; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11062 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11063 | term_LIBS="$LIBS" |
| 11064 | else |
| 11065 | term_LIBS="" |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11066 | fi |
| 11067 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11069 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11070 | if ${ac_cv_lib_readline_readline+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11071 | $as_echo_n "(cached) " >&6 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11072 | else |
| 11073 | ac_check_lib_save_LIBS=$LIBS |
| 11074 | LIBS="-lreadline $LIBS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11076 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11077 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11078 | /* Override any GCC internal prototype to avoid an error. |
| 11079 | Use char because int might match the return type of a GCC |
| 11080 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11081 | #ifdef __cplusplus |
| 11082 | extern "C" |
| 11083 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11084 | char readline (); |
| 11085 | int |
| 11086 | main () |
| 11087 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11088 | return readline (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11089 | ; |
| 11090 | return 0; |
| 11091 | } |
| 11092 | _ACEOF |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11093 | if ac_fn_c_try_link "$LINENO"; then : |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11094 | ac_cv_lib_readline_readline=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11095 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11096 | ac_cv_lib_readline_readline=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11097 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11098 | rm -f core conftest.err conftest.$ac_objext \ |
| 11099 | conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11100 | LIBS=$ac_check_lib_save_LIBS |
| 11101 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11103 | $as_echo "$ac_cv_lib_readline_readline" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11104 | if test "x$ac_cv_lib_readline_readline" = xyes; then : |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11105 | TARGET_READLINE_LIBS="-lreadline" |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 11106 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11107 | found="no" |
| 11108 | fi |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 11109 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11110 | TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" |
| 11111 | LIBS="$save_LIBS" |
| 11112 | else |
| 11113 | TARGET_READLINE_LIBS="$with_readline_lib" |
| 11114 | fi |
| 11115 | |
| 11116 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11117 | # Check whether --with-readline-inc was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11118 | if test "${with_readline_inc+set}" = set; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11119 | withval=$with_readline_inc; with_readline_inc=$withval |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 11120 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11121 | with_readline_inc="auto" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11122 | fi |
| 11123 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11124 | if test "x$with_readline_inc" = xauto; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11125 | ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" |
| 11126 | if test "x$ac_cv_header_readline_h" = xyes; then : |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11127 | found="yes" |
| 11128 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11129 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11130 | found="no" |
| 11131 | if test "$cross_compiling" != yes; then |
| 11132 | for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do |
| 11133 | for subdir in include include/readline; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11134 | as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11136 | $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11137 | if eval \${$as_ac_File+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11138 | $as_echo_n "(cached) " >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11139 | else |
| 11140 | test "$cross_compiling" = yes && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11141 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11142 | if test -r "$dir/$subdir/readline.h"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11143 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11144 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11145 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11146 | fi |
| 11147 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11148 | eval ac_res=\$$as_ac_File |
| 11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11150 | $as_echo "$ac_res" >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11151 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11152 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11153 | fi |
| 11154 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11155 | if test "$found" = "yes"; then |
| 11156 | TARGET_READLINE_INC="-I$dir/$subdir" |
| 11157 | break |
| 11158 | fi |
| 11159 | done |
| 11160 | test "$found" = "yes" && break |
| 11161 | done |
| 11162 | fi |
| 11163 | |
| 11164 | fi |
| 11165 | |
| 11166 | |
| 11167 | else |
| 11168 | TARGET_READLINE_INC="$with_readline_inc" |
| 11169 | fi |
| 11170 | |
| 11171 | if test x"$found" = xno; then |
| 11172 | TARGET_READLINE_LIBS="" |
| 11173 | TARGET_READLINE_INC="" |
| 11174 | TARGET_HAVE_READLINE=0 |
| 11175 | else |
| 11176 | TARGET_HAVE_READLINE=1 |
| 11177 | fi |
| 11178 | fi |
| 11179 | |
| 11180 | |
| 11181 | |
| 11182 | |
| 11183 | |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 11184 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11185 | ########## |
| 11186 | # Figure out what C libraries are required to compile programs |
| 11187 | # that use "fdatasync()" function. |
| 11188 | # |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11190 | $as_echo_n "checking for library containing fdatasync... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11191 | if ${ac_cv_search_fdatasync+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11192 | $as_echo_n "(cached) " >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11193 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11194 | ac_func_search_save_LIBS=$LIBS |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11196 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11197 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11198 | /* Override any GCC internal prototype to avoid an error. |
| 11199 | Use char because int might match the return type of a GCC |
| 11200 | builtin and then its argument prototype would still apply. */ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11201 | #ifdef __cplusplus |
| 11202 | extern "C" |
| 11203 | #endif |
| 11204 | char fdatasync (); |
| 11205 | int |
| 11206 | main () |
| 11207 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11208 | return fdatasync (); |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11209 | ; |
| 11210 | return 0; |
| 11211 | } |
| 11212 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11213 | for ac_lib in '' rt; do |
| 11214 | if test -z "$ac_lib"; then |
| 11215 | ac_res="none required" |
| 11216 | else |
| 11217 | ac_res=-l$ac_lib |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11218 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11219 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11220 | if ac_fn_c_try_link "$LINENO"; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11221 | ac_cv_search_fdatasync=$ac_res |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11222 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11223 | rm -f core conftest.err conftest.$ac_objext \ |
| 11224 | conftest$ac_exeext |
| 11225 | if ${ac_cv_search_fdatasync+:} false; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11226 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11227 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11228 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11229 | if ${ac_cv_search_fdatasync+:} false; then : |
| 11230 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11231 | else |
| 11232 | ac_cv_search_fdatasync=no |
| 11233 | fi |
| 11234 | rm conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11235 | LIBS=$ac_func_search_save_LIBS |
| 11236 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11238 | $as_echo "$ac_cv_search_fdatasync" >&6; } |
| 11239 | ac_res=$ac_cv_search_fdatasync |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11240 | if test "$ac_res" != no; then : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11241 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11242 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11243 | fi |
| 11244 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11245 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11246 | ######### |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11247 | # check for debug enabled |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11248 | # Check whether --enable-debug was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11249 | if test "${enable_debug+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11250 | enableval=$enable_debug; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11251 | fi |
| 11252 | |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11253 | if test "${enable_debug}" = "yes" ; then |
drh | 32d0eba | 2017-04-05 10:54:14 +0000 | [diff] [blame] | 11254 | TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0" |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11255 | else |
| 11256 | TARGET_DEBUG="-DNDEBUG" |
| 11257 | fi |
| 11258 | |
| 11259 | |
| 11260 | ######### |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11261 | # See whether we should use the amalgamation to build |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11262 | # Check whether --enable-amalgamation was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11263 | if test "${enable_amalgamation+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11264 | enableval=$enable_amalgamation; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11265 | fi |
| 11266 | |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11267 | if test "${enable_amalgamation}" == "no" ; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11268 | USE_AMALGAMATION=0 |
| 11269 | fi |
| 11270 | |
| 11271 | |
| 11272 | ######### |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 11273 | # Look for zlib. Only needed by extensions and by the sqlite3.exe shell |
| 11274 | for ac_header in zlib.h |
| 11275 | do : |
| 11276 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 11277 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
| 11278 | cat >>confdefs.h <<_ACEOF |
| 11279 | #define HAVE_ZLIB_H 1 |
| 11280 | _ACEOF |
| 11281 | |
| 11282 | fi |
| 11283 | |
| 11284 | done |
| 11285 | |
| 11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 |
| 11287 | $as_echo_n "checking for library containing deflate... " >&6; } |
| 11288 | if ${ac_cv_search_deflate+:} false; then : |
| 11289 | $as_echo_n "(cached) " >&6 |
| 11290 | else |
| 11291 | ac_func_search_save_LIBS=$LIBS |
| 11292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11293 | /* end confdefs.h. */ |
| 11294 | |
| 11295 | /* Override any GCC internal prototype to avoid an error. |
| 11296 | Use char because int might match the return type of a GCC |
| 11297 | builtin and then its argument prototype would still apply. */ |
| 11298 | #ifdef __cplusplus |
| 11299 | extern "C" |
| 11300 | #endif |
| 11301 | char deflate (); |
| 11302 | int |
| 11303 | main () |
| 11304 | { |
| 11305 | return deflate (); |
| 11306 | ; |
| 11307 | return 0; |
| 11308 | } |
| 11309 | _ACEOF |
| 11310 | for ac_lib in '' z; do |
| 11311 | if test -z "$ac_lib"; then |
| 11312 | ac_res="none required" |
| 11313 | else |
| 11314 | ac_res=-l$ac_lib |
| 11315 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11316 | fi |
| 11317 | if ac_fn_c_try_link "$LINENO"; then : |
| 11318 | ac_cv_search_deflate=$ac_res |
| 11319 | fi |
| 11320 | rm -f core conftest.err conftest.$ac_objext \ |
| 11321 | conftest$ac_exeext |
| 11322 | if ${ac_cv_search_deflate+:} false; then : |
| 11323 | break |
| 11324 | fi |
| 11325 | done |
| 11326 | if ${ac_cv_search_deflate+:} false; then : |
| 11327 | |
| 11328 | else |
| 11329 | ac_cv_search_deflate=no |
| 11330 | fi |
| 11331 | rm conftest.$ac_ext |
| 11332 | LIBS=$ac_func_search_save_LIBS |
| 11333 | fi |
| 11334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 |
| 11335 | $as_echo "$ac_cv_search_deflate" >&6; } |
| 11336 | ac_res=$ac_cv_search_deflate |
| 11337 | if test "$ac_res" != no; then : |
| 11338 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11339 | HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1" |
| 11340 | else |
| 11341 | HAVE_ZLIB="" |
| 11342 | fi |
| 11343 | |
| 11344 | |
| 11345 | |
| 11346 | ######### |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11347 | # See whether we should allow loadable extensions |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11348 | # Check whether --enable-load-extension was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11349 | if test "${enable_load_extension+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11350 | enableval=$enable_load_extension; |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11351 | else |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11352 | enable_load_extension=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11353 | fi |
| 11354 | |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11355 | if test "${enable_load_extension}" = "yes" ; then |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11356 | OPT_FEATURE_FLAGS="" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11358 | $as_echo_n "checking for library containing dlopen... " >&6; } |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11359 | if ${ac_cv_search_dlopen+:} false; then : |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11360 | $as_echo_n "(cached) " >&6 |
| 11361 | else |
| 11362 | ac_func_search_save_LIBS=$LIBS |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11364 | /* end confdefs.h. */ |
| 11365 | |
| 11366 | /* Override any GCC internal prototype to avoid an error. |
| 11367 | Use char because int might match the return type of a GCC |
| 11368 | builtin and then its argument prototype would still apply. */ |
| 11369 | #ifdef __cplusplus |
| 11370 | extern "C" |
| 11371 | #endif |
| 11372 | char dlopen (); |
| 11373 | int |
| 11374 | main () |
| 11375 | { |
| 11376 | return dlopen (); |
| 11377 | ; |
| 11378 | return 0; |
| 11379 | } |
| 11380 | _ACEOF |
| 11381 | for ac_lib in '' dl; do |
| 11382 | if test -z "$ac_lib"; then |
| 11383 | ac_res="none required" |
| 11384 | else |
| 11385 | ac_res=-l$ac_lib |
| 11386 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11387 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11388 | if ac_fn_c_try_link "$LINENO"; then : |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11389 | ac_cv_search_dlopen=$ac_res |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11390 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11391 | rm -f core conftest.err conftest.$ac_objext \ |
| 11392 | conftest$ac_exeext |
| 11393 | if ${ac_cv_search_dlopen+:} false; then : |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11394 | break |
| 11395 | fi |
| 11396 | done |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11397 | if ${ac_cv_search_dlopen+:} false; then : |
| 11398 | |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11399 | else |
| 11400 | ac_cv_search_dlopen=no |
| 11401 | fi |
| 11402 | rm conftest.$ac_ext |
| 11403 | LIBS=$ac_func_search_save_LIBS |
| 11404 | fi |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11406 | $as_echo "$ac_cv_search_dlopen" >&6; } |
| 11407 | ac_res=$ac_cv_search_dlopen |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11408 | if test "$ac_res" != no; then : |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 11409 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11410 | |
| 11411 | fi |
| 11412 | |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11413 | else |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11414 | OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11415 | fi |
| 11416 | |
drh | c530b9c | 2016-07-25 11:27:22 +0000 | [diff] [blame] | 11417 | ########## |
| 11418 | # Do we want to support memsys3 and/or memsys5 |
| 11419 | # |
drh | c530b9c | 2016-07-25 11:27:22 +0000 | [diff] [blame] | 11420 | # Check whether --enable-memsys5 was given. |
| 11421 | if test "${enable_memsys5+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11422 | enableval=$enable_memsys5; |
drh | c530b9c | 2016-07-25 11:27:22 +0000 | [diff] [blame] | 11423 | fi |
| 11424 | |
| 11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5 |
| 11426 | $as_echo_n "checking whether to support MEMSYS5... " >&6; } |
drh | 26197d1 | 2016-07-25 11:32:09 +0000 | [diff] [blame] | 11427 | if test "${enable_memsys5}" = "yes"; then |
drh | 8c9ed05 | 2017-05-29 17:43:06 +0000 | [diff] [blame] | 11428 | OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5" |
drh | c530b9c | 2016-07-25 11:27:22 +0000 | [diff] [blame] | 11429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11430 | $as_echo "yes" >&6; } |
| 11431 | else |
| 11432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11433 | $as_echo "no" >&6; } |
| 11434 | fi |
drh | 5d513ba | 2016-07-25 11:57:21 +0000 | [diff] [blame] | 11435 | # Check whether --enable-memsys3 was given. |
| 11436 | if test "${enable_memsys3+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11437 | enableval=$enable_memsys3; |
drh | 5d513ba | 2016-07-25 11:57:21 +0000 | [diff] [blame] | 11438 | fi |
| 11439 | |
| 11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5 |
| 11441 | $as_echo_n "checking whether to support MEMSYS3... " >&6; } |
| 11442 | if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then |
drh | 8c9ed05 | 2017-05-29 17:43:06 +0000 | [diff] [blame] | 11443 | OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3" |
drh | 5d513ba | 2016-07-25 11:57:21 +0000 | [diff] [blame] | 11444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11445 | $as_echo "yes" >&6; } |
| 11446 | else |
| 11447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11448 | $as_echo "no" >&6; } |
| 11449 | fi |
drh | c530b9c | 2016-07-25 11:27:22 +0000 | [diff] [blame] | 11450 | |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 11451 | ######### |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11452 | # See whether we should enable Full Text Search extensions |
| 11453 | # Check whether --enable-fts3 was given. |
| 11454 | if test "${enable_fts3+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11455 | enableval=$enable_fts3; |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11456 | fi |
| 11457 | |
| 11458 | if test "${enable_fts3}" = "yes" ; then |
drh | 8c9ed05 | 2017-05-29 17:43:06 +0000 | [diff] [blame] | 11459 | OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3" |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11460 | fi |
| 11461 | # Check whether --enable-fts4 was given. |
| 11462 | if test "${enable_fts4+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11463 | enableval=$enable_fts4; |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11464 | fi |
| 11465 | |
| 11466 | if test "${enable_fts4}" = "yes" ; then |
drh | 8c9ed05 | 2017-05-29 17:43:06 +0000 | [diff] [blame] | 11467 | OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4" |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 |
| 11469 | $as_echo_n "checking for library containing log... " >&6; } |
| 11470 | if ${ac_cv_search_log+:} false; then : |
| 11471 | $as_echo_n "(cached) " >&6 |
| 11472 | else |
| 11473 | ac_func_search_save_LIBS=$LIBS |
| 11474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11475 | /* end confdefs.h. */ |
| 11476 | |
| 11477 | /* Override any GCC internal prototype to avoid an error. |
| 11478 | Use char because int might match the return type of a GCC |
| 11479 | builtin and then its argument prototype would still apply. */ |
| 11480 | #ifdef __cplusplus |
| 11481 | extern "C" |
| 11482 | #endif |
| 11483 | char log (); |
| 11484 | int |
| 11485 | main () |
| 11486 | { |
| 11487 | return log (); |
| 11488 | ; |
| 11489 | return 0; |
| 11490 | } |
| 11491 | _ACEOF |
| 11492 | for ac_lib in '' m; do |
| 11493 | if test -z "$ac_lib"; then |
| 11494 | ac_res="none required" |
| 11495 | else |
| 11496 | ac_res=-l$ac_lib |
| 11497 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11498 | fi |
| 11499 | if ac_fn_c_try_link "$LINENO"; then : |
| 11500 | ac_cv_search_log=$ac_res |
| 11501 | fi |
| 11502 | rm -f core conftest.err conftest.$ac_objext \ |
| 11503 | conftest$ac_exeext |
| 11504 | if ${ac_cv_search_log+:} false; then : |
| 11505 | break |
| 11506 | fi |
| 11507 | done |
| 11508 | if ${ac_cv_search_log+:} false; then : |
| 11509 | |
| 11510 | else |
| 11511 | ac_cv_search_log=no |
| 11512 | fi |
| 11513 | rm conftest.$ac_ext |
| 11514 | LIBS=$ac_func_search_save_LIBS |
| 11515 | fi |
| 11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 |
| 11517 | $as_echo "$ac_cv_search_log" >&6; } |
| 11518 | ac_res=$ac_cv_search_log |
| 11519 | if test "$ac_res" != no; then : |
| 11520 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11521 | |
| 11522 | fi |
| 11523 | |
| 11524 | fi |
| 11525 | # Check whether --enable-fts5 was given. |
| 11526 | if test "${enable_fts5+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11527 | enableval=$enable_fts5; |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11528 | fi |
| 11529 | |
| 11530 | if test "${enable_fts5}" = "yes" ; then |
drh | 8c9ed05 | 2017-05-29 17:43:06 +0000 | [diff] [blame] | 11531 | OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5" |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 |
| 11533 | $as_echo_n "checking for library containing log... " >&6; } |
| 11534 | if ${ac_cv_search_log+:} false; then : |
| 11535 | $as_echo_n "(cached) " >&6 |
| 11536 | else |
| 11537 | ac_func_search_save_LIBS=$LIBS |
| 11538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11539 | /* end confdefs.h. */ |
| 11540 | |
| 11541 | /* Override any GCC internal prototype to avoid an error. |
| 11542 | Use char because int might match the return type of a GCC |
| 11543 | builtin and then its argument prototype would still apply. */ |
| 11544 | #ifdef __cplusplus |
| 11545 | extern "C" |
| 11546 | #endif |
| 11547 | char log (); |
| 11548 | int |
| 11549 | main () |
| 11550 | { |
| 11551 | return log (); |
| 11552 | ; |
| 11553 | return 0; |
| 11554 | } |
| 11555 | _ACEOF |
| 11556 | for ac_lib in '' m; do |
| 11557 | if test -z "$ac_lib"; then |
| 11558 | ac_res="none required" |
| 11559 | else |
| 11560 | ac_res=-l$ac_lib |
| 11561 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11562 | fi |
| 11563 | if ac_fn_c_try_link "$LINENO"; then : |
| 11564 | ac_cv_search_log=$ac_res |
| 11565 | fi |
| 11566 | rm -f core conftest.err conftest.$ac_objext \ |
| 11567 | conftest$ac_exeext |
| 11568 | if ${ac_cv_search_log+:} false; then : |
| 11569 | break |
| 11570 | fi |
| 11571 | done |
| 11572 | if ${ac_cv_search_log+:} false; then : |
| 11573 | |
| 11574 | else |
| 11575 | ac_cv_search_log=no |
| 11576 | fi |
| 11577 | rm conftest.$ac_ext |
| 11578 | LIBS=$ac_func_search_save_LIBS |
| 11579 | fi |
| 11580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 |
| 11581 | $as_echo "$ac_cv_search_log" >&6; } |
| 11582 | ac_res=$ac_cv_search_log |
| 11583 | if test "$ac_res" != no; then : |
| 11584 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11585 | |
| 11586 | fi |
| 11587 | |
| 11588 | fi |
| 11589 | |
| 11590 | ######### |
| 11591 | # See whether we should enable JSON1 |
| 11592 | # Check whether --enable-json1 was given. |
| 11593 | if test "${enable_json1+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11594 | enableval=$enable_json1; |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11595 | fi |
| 11596 | |
| 11597 | if test "${enable_json1}" = "yes" ; then |
drh | 8c9ed05 | 2017-05-29 17:43:06 +0000 | [diff] [blame] | 11598 | OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1" |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11599 | fi |
| 11600 | |
| 11601 | ######### |
drh | 83bebdd | 2017-08-28 17:00:12 +0000 | [diff] [blame] | 11602 | # See whether we should enable the LIMIT clause on UPDATE and DELETE |
| 11603 | # statements. |
| 11604 | # Check whether --enable-update-limit was given. |
| 11605 | if test "${enable_update_limit+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11606 | enableval=$enable_update_limit; |
drh | 83bebdd | 2017-08-28 17:00:12 +0000 | [diff] [blame] | 11607 | fi |
| 11608 | |
| 11609 | if test "${enable_udlimit}" = "yes" ; then |
| 11610 | OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT" |
| 11611 | fi |
| 11612 | |
| 11613 | ######### |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11614 | # See whether we should enable RTREE |
| 11615 | # Check whether --enable-rtree was given. |
| 11616 | if test "${enable_rtree+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11617 | enableval=$enable_rtree; |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11618 | fi |
| 11619 | |
| 11620 | if test "${enable_rtree}" = "yes" ; then |
drh | 8c9ed05 | 2017-05-29 17:43:06 +0000 | [diff] [blame] | 11621 | OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE" |
drh | ce1d9f5 | 2015-10-09 12:48:33 +0000 | [diff] [blame] | 11622 | fi |
| 11623 | |
| 11624 | ######### |
drh | 5e18d40 | 2016-05-03 13:14:18 +0000 | [diff] [blame] | 11625 | # See whether we should enable the SESSION extension |
| 11626 | # Check whether --enable-session was given. |
| 11627 | if test "${enable_session+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11628 | enableval=$enable_session; |
drh | 5e18d40 | 2016-05-03 13:14:18 +0000 | [diff] [blame] | 11629 | fi |
| 11630 | |
| 11631 | if test "${enable_session}" = "yes" ; then |
drh | 8c9ed05 | 2017-05-29 17:43:06 +0000 | [diff] [blame] | 11632 | OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION" |
| 11633 | OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK" |
drh | 5e18d40 | 2016-05-03 13:14:18 +0000 | [diff] [blame] | 11634 | fi |
| 11635 | |
| 11636 | ######### |
drh | 8c9ed05 | 2017-05-29 17:43:06 +0000 | [diff] [blame] | 11637 | # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11638 | for option in $CFLAGS $CPPFLAGS |
| 11639 | do |
| 11640 | case $option in |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11641 | -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11642 | -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11643 | esac |
| 11644 | done |
| 11645 | |
| 11646 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11647 | |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11648 | # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11649 | ac_temp_CFLAGS="" |
| 11650 | for option in $CFLAGS |
| 11651 | do |
| 11652 | case $option in |
| 11653 | -DSQLITE_OMIT*) ;; |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11654 | -DSQLITE_ENABLE*) ;; |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11655 | *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";; |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11656 | esac |
| 11657 | done |
| 11658 | CFLAGS=$ac_temp_CFLAGS |
| 11659 | |
| 11660 | |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11661 | # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11662 | ac_temp_CPPFLAGS="" |
| 11663 | for option in $CPPFLAGS |
| 11664 | do |
| 11665 | case $option in |
| 11666 | -DSQLITE_OMIT*) ;; |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11667 | -DSQLITE_ENABLE*) ;; |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11668 | *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";; |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11669 | esac |
| 11670 | done |
| 11671 | CPPFLAGS=$ac_temp_CPPFLAGS |
| 11672 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11673 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11674 | # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11675 | ac_temp_BUILD_CFLAGS="" |
| 11676 | for option in $BUILD_CFLAGS |
| 11677 | do |
| 11678 | case $option in |
| 11679 | -DSQLITE_OMIT*) ;; |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 11680 | -DSQLITE_ENABLE*) ;; |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11681 | *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";; |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11682 | esac |
| 11683 | done |
| 11684 | BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS |
| 11685 | |
| 11686 | |
| 11687 | ######### |
| 11688 | # See whether we should use GCOV |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11689 | # Check whether --enable-gcov was given. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11690 | if test "${enable_gcov+set}" = set; then : |
drh | 8fa622d | 2018-06-11 19:47:14 +0000 | [diff] [blame] | 11691 | enableval=$enable_gcov; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11692 | fi |
| 11693 | |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 11694 | if test "${use_gcov}" = "yes" ; then |
| 11695 | USE_GCOV=1 |
| 11696 | else |
| 11697 | USE_GCOV=0 |
| 11698 | fi |
| 11699 | |
| 11700 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11701 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 11702 | ######### |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11703 | # Output the config header |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11704 | ac_config_headers="$ac_config_headers config.h" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11705 | |
| 11706 | |
| 11707 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11708 | # Generate the output files. |
| 11709 | # |
mlcreech | df59c7c | 2008-03-06 07:51:15 +0000 | [diff] [blame] | 11710 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11711 | ac_config_files="$ac_config_files Makefile sqlite3.pc" |
| 11712 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11713 | cat >confcache <<\_ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11714 | # This file is a shell script that caches the results of configure |
| 11715 | # tests run on this system so they can be shared between configure |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11716 | # scripts and configure runs, see configure's option --config-cache. |
| 11717 | # It is not useful on other systems. If it contains results you don't |
| 11718 | # want to keep, you may remove or edit it. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11719 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11720 | # config.status only pays attention to the cache file if you give it |
| 11721 | # the --recheck option to rerun configure. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11722 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11723 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11724 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11725 | # following values. |
| 11726 | |
| 11727 | _ACEOF |
| 11728 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11729 | # The following way of writing the cache mishandles newlines in values, |
| 11730 | # but we know of no workaround that is simple, portable, and efficient. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11731 | # So, we kill variables containing newlines. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11732 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11733 | # and sets the high bit in the cache file unless we assign to the vars. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11734 | ( |
| 11735 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11736 | eval ac_val=\$$ac_var |
| 11737 | case $ac_val in #( |
| 11738 | *${as_nl}*) |
| 11739 | case $ac_var in #( |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11740 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 11741 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11742 | esac |
| 11743 | case $ac_var in #( |
| 11744 | _ | IFS | as_nl) ;; #( |
| 11745 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11746 | *) { eval $ac_var=; unset $ac_var;} ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11747 | esac ;; |
| 11748 | esac |
| 11749 | done |
| 11750 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11751 | (set) 2>&1 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11752 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11753 | *${as_nl}ac_space=\ *) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11754 | # `set' does not quote correctly, so add quotes: double-quote |
| 11755 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11756 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11757 | "s/'/'\\\\''/g; |
| 11758 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11759 | ;; #( |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11760 | *) |
| 11761 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11762 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11763 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11764 | esac | |
| 11765 | sort |
| 11766 | ) | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11767 | sed ' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11768 | /^ac_cv_env_/b end |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11769 | t clear |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11770 | :clear |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11771 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11772 | t end |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11773 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11774 | :end' >>confcache |
| 11775 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11776 | if test -w "$cache_file"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11777 | if test "x$cache_file" != "x/dev/null"; then |
| 11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11779 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11780 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 11781 | cat confcache >"$cache_file" |
| 11782 | else |
| 11783 | case $cache_file in #( |
| 11784 | */* | ?:*) |
| 11785 | mv -f confcache "$cache_file"$$ && |
| 11786 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 11787 | *) |
| 11788 | mv -f confcache "$cache_file" ;; |
| 11789 | esac |
| 11790 | fi |
| 11791 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11792 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11793 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11794 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11795 | fi |
| 11796 | fi |
| 11797 | rm -f confcache |
| 11798 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11799 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11800 | # Let make expand exec_prefix. |
| 11801 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11802 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11803 | DEFS=-DHAVE_CONFIG_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11804 | |
| 11805 | ac_libobjs= |
| 11806 | ac_ltlibobjs= |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11807 | U= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11808 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11809 | # 1. Remove the extension, and $U if already installed. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11810 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 11811 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 11812 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11813 | # will be set to the directory where LIBOBJS objects are built. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11814 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11815 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11816 | done |
| 11817 | LIBOBJS=$ac_libobjs |
| 11818 | |
| 11819 | LTLIBOBJS=$ac_ltlibobjs |
| 11820 | |
| 11821 | |
| 11822 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11823 | : "${CONFIG_STATUS=./config.status}" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11824 | ac_write_fail=0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11825 | ac_clean_files_save=$ac_clean_files |
| 11826 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11827 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11828 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11829 | as_write_fail=0 |
| 11830 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11831 | #! $SHELL |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11832 | # Generated by $as_me. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11833 | # Run this file to recreate the current configuration. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11834 | # Compiler output produced by configure, useful for debugging |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11835 | # configure, is in config.log if it exists. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11836 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11837 | debug=false |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11838 | ac_cs_recheck=false |
| 11839 | ac_cs_silent=false |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11840 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11841 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11842 | export SHELL |
| 11843 | _ASEOF |
| 11844 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11845 | ## -------------------- ## |
| 11846 | ## M4sh Initialization. ## |
| 11847 | ## -------------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11848 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11849 | # Be more Bourne compatible |
| 11850 | DUALCASE=1; export DUALCASE # for MKS sh |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11851 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11852 | emulate sh |
| 11853 | NULLCMD=: |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11854 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11855 | # is contrary to our usage. Disable this feature. |
| 11856 | alias -g '${1+"$@"}'='"$@"' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11857 | setopt NO_GLOB_SUBST |
| 11858 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11859 | case `(set -o) 2>/dev/null` in #( |
| 11860 | *posix*) : |
| 11861 | set -o posix ;; #( |
| 11862 | *) : |
| 11863 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11864 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11865 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11866 | |
| 11867 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11868 | as_nl=' |
| 11869 | ' |
| 11870 | export as_nl |
| 11871 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 11872 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 11873 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11874 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11875 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 11876 | # but without wasting forks for bash or zsh. |
| 11877 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 11878 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11879 | as_echo='print -r --' |
| 11880 | as_echo_n='print -rn --' |
| 11881 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11882 | as_echo='printf %s\n' |
| 11883 | as_echo_n='printf %s' |
| 11884 | else |
| 11885 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 11886 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 11887 | as_echo_n='/usr/ucb/echo -n' |
| 11888 | else |
| 11889 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 11890 | as_echo_n_body='eval |
| 11891 | arg=$1; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11892 | case $arg in #( |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11893 | *"$as_nl"*) |
| 11894 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 11895 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 11896 | esac; |
| 11897 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 11898 | ' |
| 11899 | export as_echo_n_body |
| 11900 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 11901 | fi |
| 11902 | export as_echo_body |
| 11903 | as_echo='sh -c $as_echo_body as_echo' |
| 11904 | fi |
| 11905 | |
| 11906 | # The user is always right. |
| 11907 | if test "${PATH_SEPARATOR+set}" != set; then |
| 11908 | PATH_SEPARATOR=: |
| 11909 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11910 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11911 | PATH_SEPARATOR=';' |
| 11912 | } |
| 11913 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11914 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11915 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11916 | # IFS |
| 11917 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11918 | # there to prevent editors from complaining about space-tab. |
| 11919 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11920 | # splitting by setting IFS to empty value.) |
| 11921 | IFS=" "" $as_nl" |
| 11922 | |
| 11923 | # Find who we are. Look in the path if we contain no directory separator. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11924 | as_myself= |
| 11925 | case $0 in #(( |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11926 | *[\\/]* ) as_myself=$0 ;; |
| 11927 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11928 | for as_dir in $PATH |
| 11929 | do |
| 11930 | IFS=$as_save_IFS |
| 11931 | test -z "$as_dir" && as_dir=. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11932 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11933 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11934 | IFS=$as_save_IFS |
| 11935 | |
| 11936 | ;; |
| 11937 | esac |
| 11938 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11939 | # in which case we are not to be found in the path. |
| 11940 | if test "x$as_myself" = x; then |
| 11941 | as_myself=$0 |
| 11942 | fi |
| 11943 | if test ! -f "$as_myself"; then |
| 11944 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11945 | exit 1 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11946 | fi |
| 11947 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11948 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 11949 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 11950 | # suppresses any "Segmentation fault" message there. '((' could |
| 11951 | # trigger a bug in pdksh 5.2.14. |
| 11952 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 11953 | do eval test x\${$as_var+set} = xset \ |
| 11954 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11955 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11956 | PS1='$ ' |
| 11957 | PS2='> ' |
| 11958 | PS4='+ ' |
| 11959 | |
| 11960 | # NLS nuisances. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 11961 | LC_ALL=C |
| 11962 | export LC_ALL |
| 11963 | LANGUAGE=C |
| 11964 | export LANGUAGE |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11965 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 11966 | # CDPATH. |
| 11967 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11968 | |
| 11969 | |
| 11970 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 11971 | # ---------------------------------------- |
| 11972 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11973 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 11974 | # script with STATUS, using 1 if that was 0. |
| 11975 | as_fn_error () |
| 11976 | { |
| 11977 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 11978 | if test "$4"; then |
| 11979 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11980 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 11981 | fi |
| 11982 | $as_echo "$as_me: error: $2" >&2 |
| 11983 | as_fn_exit $as_status |
| 11984 | } # as_fn_error |
| 11985 | |
| 11986 | |
| 11987 | # as_fn_set_status STATUS |
| 11988 | # ----------------------- |
| 11989 | # Set $? to STATUS, without forking. |
| 11990 | as_fn_set_status () |
| 11991 | { |
| 11992 | return $1 |
| 11993 | } # as_fn_set_status |
| 11994 | |
| 11995 | # as_fn_exit STATUS |
| 11996 | # ----------------- |
| 11997 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11998 | as_fn_exit () |
| 11999 | { |
| 12000 | set +e |
| 12001 | as_fn_set_status $1 |
| 12002 | exit $1 |
| 12003 | } # as_fn_exit |
| 12004 | |
| 12005 | # as_fn_unset VAR |
| 12006 | # --------------- |
| 12007 | # Portably unset VAR. |
| 12008 | as_fn_unset () |
| 12009 | { |
| 12010 | { eval $1=; unset $1;} |
| 12011 | } |
| 12012 | as_unset=as_fn_unset |
| 12013 | # as_fn_append VAR VALUE |
| 12014 | # ---------------------- |
| 12015 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 12016 | # advantage of any shell optimizations that allow amortized linear growth over |
| 12017 | # repeated appends, instead of the typical quadratic growth present in naive |
| 12018 | # implementations. |
| 12019 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 12020 | eval 'as_fn_append () |
| 12021 | { |
| 12022 | eval $1+=\$2 |
| 12023 | }' |
| 12024 | else |
| 12025 | as_fn_append () |
| 12026 | { |
| 12027 | eval $1=\$$1\$2 |
| 12028 | } |
| 12029 | fi # as_fn_append |
| 12030 | |
| 12031 | # as_fn_arith ARG... |
| 12032 | # ------------------ |
| 12033 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 12034 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 12035 | # must be portable across $(()) and expr. |
| 12036 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 12037 | eval 'as_fn_arith () |
| 12038 | { |
| 12039 | as_val=$(( $* )) |
| 12040 | }' |
| 12041 | else |
| 12042 | as_fn_arith () |
| 12043 | { |
| 12044 | as_val=`expr "$@" || test $? -eq 1` |
| 12045 | } |
| 12046 | fi # as_fn_arith |
| 12047 | |
| 12048 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12049 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 12050 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12051 | as_expr=expr |
| 12052 | else |
| 12053 | as_expr=false |
| 12054 | fi |
| 12055 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12056 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12057 | as_basename=basename |
| 12058 | else |
| 12059 | as_basename=false |
| 12060 | fi |
| 12061 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12062 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 12063 | as_dirname=dirname |
| 12064 | else |
| 12065 | as_dirname=false |
| 12066 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12067 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12068 | as_me=`$as_basename -- "$0" || |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12069 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 12070 | X"$0" : 'X\(//\)$' \| \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12071 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 12072 | $as_echo X/"$0" | |
| 12073 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 12074 | s//\1/ |
| 12075 | q |
| 12076 | } |
| 12077 | /^X\/\(\/\/\)$/{ |
| 12078 | s//\1/ |
| 12079 | q |
| 12080 | } |
| 12081 | /^X\/\(\/\).*/{ |
| 12082 | s//\1/ |
| 12083 | q |
| 12084 | } |
| 12085 | s/.*/./; q'` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12086 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12087 | # Avoid depending upon Character Ranges. |
| 12088 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12089 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 12090 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 12091 | as_cr_digits='0123456789' |
| 12092 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12093 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12094 | ECHO_C= ECHO_N= ECHO_T= |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12095 | case `echo -n x` in #((((( |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12096 | -n*) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12097 | case `echo 'xy\c'` in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12098 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12099 | xy) ECHO_C='\c';; |
| 12100 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 12101 | ECHO_T=' ';; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12102 | esac;; |
| 12103 | *) |
| 12104 | ECHO_N='-n';; |
| 12105 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12106 | |
| 12107 | rm -f conf$$ conf$$.exe conf$$.file |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12108 | if test -d conf$$.dir; then |
| 12109 | rm -f conf$$.dir/conf$$.file |
| 12110 | else |
| 12111 | rm -f conf$$.dir |
| 12112 | mkdir conf$$.dir 2>/dev/null |
| 12113 | fi |
| 12114 | if (echo >conf$$.file) 2>/dev/null; then |
| 12115 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12116 | as_ln_s='ln -s' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12117 | # ... but there are two gotchas: |
| 12118 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 12119 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12120 | # In both cases, we have to default to `cp -pR'. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12121 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12122 | as_ln_s='cp -pR' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12123 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 12124 | as_ln_s=ln |
| 12125 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12126 | as_ln_s='cp -pR' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12127 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12128 | else |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12129 | as_ln_s='cp -pR' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12130 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12131 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 12132 | rmdir conf$$.dir 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12133 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12134 | |
| 12135 | # as_fn_mkdir_p |
| 12136 | # ------------- |
| 12137 | # Create "$as_dir" as a directory, including parents if necessary. |
| 12138 | as_fn_mkdir_p () |
| 12139 | { |
| 12140 | |
| 12141 | case $as_dir in #( |
| 12142 | -*) as_dir=./$as_dir;; |
| 12143 | esac |
| 12144 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 12145 | as_dirs= |
| 12146 | while :; do |
| 12147 | case $as_dir in #( |
| 12148 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 12149 | *) as_qdir=$as_dir;; |
| 12150 | esac |
| 12151 | as_dirs="'$as_qdir' $as_dirs" |
| 12152 | as_dir=`$as_dirname -- "$as_dir" || |
| 12153 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12154 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12155 | X"$as_dir" : 'X\(//\)$' \| \ |
| 12156 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 12157 | $as_echo X"$as_dir" | |
| 12158 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12159 | s//\1/ |
| 12160 | q |
| 12161 | } |
| 12162 | /^X\(\/\/\)[^/].*/{ |
| 12163 | s//\1/ |
| 12164 | q |
| 12165 | } |
| 12166 | /^X\(\/\/\)$/{ |
| 12167 | s//\1/ |
| 12168 | q |
| 12169 | } |
| 12170 | /^X\(\/\).*/{ |
| 12171 | s//\1/ |
| 12172 | q |
| 12173 | } |
| 12174 | s/.*/./; q'` |
| 12175 | test -d "$as_dir" && break |
| 12176 | done |
| 12177 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 12178 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 12179 | |
| 12180 | |
| 12181 | } # as_fn_mkdir_p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12182 | if mkdir -p . 2>/dev/null; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12183 | as_mkdir_p='mkdir -p "$as_dir"' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12184 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12185 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12186 | as_mkdir_p=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12187 | fi |
| 12188 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12189 | |
| 12190 | # as_fn_executable_p FILE |
| 12191 | # ----------------------- |
| 12192 | # Test if FILE is an executable regular file. |
| 12193 | as_fn_executable_p () |
| 12194 | { |
| 12195 | test -f "$1" && test -x "$1" |
| 12196 | } # as_fn_executable_p |
| 12197 | as_test_x='test -x' |
| 12198 | as_executable_p=as_fn_executable_p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12199 | |
| 12200 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12201 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12202 | |
| 12203 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12204 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12205 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12206 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12207 | exec 6>&1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12208 | ## ----------------------------------- ## |
| 12209 | ## Main body of $CONFIG_STATUS script. ## |
| 12210 | ## ----------------------------------- ## |
| 12211 | _ASEOF |
| 12212 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12213 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12214 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12215 | # Save the log message, to keep $0 and so on meaningful, and to |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12216 | # report actual input values of CONFIG_FILES etc. instead of their |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12217 | # values after options handling. |
| 12218 | ac_log=" |
drh | bb777d5 | 2018-06-05 23:51:52 +0000 | [diff] [blame] | 12219 | This file was extended by sqlite $as_me 3.25.0, which was |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12220 | generated by GNU Autoconf 2.69. Invocation command line was |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12221 | |
| 12222 | CONFIG_FILES = $CONFIG_FILES |
| 12223 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 12224 | CONFIG_LINKS = $CONFIG_LINKS |
| 12225 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 12226 | $ $0 $@ |
| 12227 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12228 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 12229 | " |
| 12230 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12231 | _ACEOF |
| 12232 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12233 | case $ac_config_files in *" |
| 12234 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 12235 | esac |
| 12236 | |
| 12237 | case $ac_config_headers in *" |
| 12238 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 12239 | esac |
| 12240 | |
| 12241 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12242 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12243 | # Files that config.status was made for. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12244 | config_files="$ac_config_files" |
| 12245 | config_headers="$ac_config_headers" |
| 12246 | config_commands="$ac_config_commands" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12247 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12248 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12249 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12250 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12251 | ac_cs_usage="\ |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12252 | \`$as_me' instantiates files and other configuration actions |
| 12253 | from templates according to the current configuration. Unless the files |
| 12254 | and actions are specified as TAGs, all are instantiated by default. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12255 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12256 | Usage: $0 [OPTION]... [TAG]... |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12257 | |
| 12258 | -h, --help print this help, then exit |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12259 | -V, --version print version number and configuration settings, then exit |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12260 | --config print configuration, then exit |
| 12261 | -q, --quiet, --silent |
| 12262 | do not print progress messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12263 | -d, --debug don't remove temporary files |
| 12264 | --recheck update $as_me by reconfiguring in the same conditions |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12265 | --file=FILE[:TEMPLATE] |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12266 | instantiate the configuration file FILE |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12267 | --header=FILE[:TEMPLATE] |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12268 | instantiate the configuration header FILE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12269 | |
| 12270 | Configuration files: |
| 12271 | $config_files |
| 12272 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12273 | Configuration headers: |
| 12274 | $config_headers |
| 12275 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12276 | Configuration commands: |
| 12277 | $config_commands |
| 12278 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12279 | Report bugs to the package provider." |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12280 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12281 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12282 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12283 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12284 | ac_cs_version="\\ |
drh | bb777d5 | 2018-06-05 23:51:52 +0000 | [diff] [blame] | 12285 | sqlite config.status 3.25.0 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12286 | configured by $0, generated by GNU Autoconf 2.69, |
| 12287 | with options \\"\$ac_cs_config\\" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12288 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12289 | Copyright (C) 2012 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12290 | This config.status script is free software; the Free Software Foundation |
| 12291 | gives unlimited permission to copy, distribute and modify it." |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12292 | |
| 12293 | ac_pwd='$ac_pwd' |
| 12294 | srcdir='$srcdir' |
| 12295 | INSTALL='$INSTALL' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12296 | test -n "\$AWK" || AWK=awk |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12297 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12298 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12299 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12300 | # The default lists apply if the user does not specify any file. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12301 | ac_need_defaults=: |
| 12302 | while test $# != 0 |
| 12303 | do |
| 12304 | case $1 in |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12305 | --*=?*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12306 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12307 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12308 | ac_shift=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12309 | ;; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12310 | --*=) |
| 12311 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12312 | ac_optarg= |
| 12313 | ac_shift=: |
| 12314 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12315 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12316 | ac_option=$1 |
| 12317 | ac_optarg=$2 |
| 12318 | ac_shift=shift |
| 12319 | ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12320 | esac |
| 12321 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12322 | case $ac_option in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12323 | # Handling of the options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12324 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12325 | ac_cs_recheck=: ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12326 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 12327 | $as_echo "$ac_cs_version"; exit ;; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12328 | --config | --confi | --conf | --con | --co | --c ) |
| 12329 | $as_echo "$ac_cs_config"; exit ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12330 | --debug | --debu | --deb | --de | --d | -d ) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12331 | debug=: ;; |
| 12332 | --file | --fil | --fi | --f ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12333 | $ac_shift |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12334 | case $ac_optarg in |
| 12335 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12336 | '') as_fn_error $? "missing file argument" ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12337 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12338 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12339 | ac_need_defaults=false;; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12340 | --header | --heade | --head | --hea ) |
| 12341 | $ac_shift |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12342 | case $ac_optarg in |
| 12343 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 12344 | esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12345 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12346 | ac_need_defaults=false;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12347 | --he | --h) |
| 12348 | # Conflict between --help and --header |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12349 | as_fn_error $? "ambiguous option: \`$1' |
| 12350 | Try \`$0 --help' for more information.";; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12351 | --help | --hel | -h ) |
| 12352 | $as_echo "$ac_cs_usage"; exit ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12353 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12354 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12355 | ac_cs_silent=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12356 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12357 | # This is an error. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12358 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 12359 | Try \`$0 --help' for more information." ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12360 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12361 | *) as_fn_append ac_config_targets " $1" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12362 | ac_need_defaults=false ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12363 | |
| 12364 | esac |
| 12365 | shift |
| 12366 | done |
| 12367 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12368 | ac_configure_extra_args= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12369 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12370 | if $ac_cs_silent; then |
| 12371 | exec 6>/dev/null |
| 12372 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12373 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12374 | |
| 12375 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12376 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12377 | if \$ac_cs_recheck; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12378 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12379 | shift |
| 12380 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 12381 | CONFIG_SHELL='$SHELL' |
| 12382 | export CONFIG_SHELL |
| 12383 | exec "\$@" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12384 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12385 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12386 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12387 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12388 | exec 5>>config.log |
| 12389 | { |
| 12390 | echo |
| 12391 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12392 | ## Running $as_me. ## |
| 12393 | _ASBOX |
| 12394 | $as_echo "$ac_log" |
| 12395 | } >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12396 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12397 | _ACEOF |
| 12398 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12399 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12400 | # INIT-COMMANDS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12401 | # |
| 12402 | |
| 12403 | |
| 12404 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 12405 | # if CDPATH is set. |
| 12406 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 12407 | |
| 12408 | sed_quote_subst='$sed_quote_subst' |
| 12409 | double_quote_subst='$double_quote_subst' |
| 12410 | delay_variable_subst='$delay_variable_subst' |
| 12411 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 12412 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 12413 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 12414 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12415 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 12416 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 12417 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 12418 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 12419 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 12420 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 12421 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 12422 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 12423 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 12424 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 12425 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12426 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12427 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12428 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 12429 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 12430 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 12431 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 12432 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12433 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12434 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 12435 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12436 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12437 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12438 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 12439 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12440 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 12441 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 12442 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 12443 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 12444 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12445 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 12446 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12447 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12448 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12449 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 12450 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 12451 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 12452 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 12453 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 12454 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 12455 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
| 12456 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 12457 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 12458 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12459 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 12460 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 12461 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12462 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 12463 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 12464 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12465 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 12466 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 12467 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12468 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 12469 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 12470 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12471 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 12472 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12473 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12474 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12475 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 12476 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 12477 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12478 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12479 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 12480 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12481 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12482 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12483 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12484 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12485 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12486 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 12487 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12488 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12489 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12490 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 12491 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 12492 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 12493 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 12494 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 12495 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12496 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 12497 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 12498 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 12499 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 12500 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 12501 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12502 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 12503 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 12504 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12505 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12506 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 12507 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 12508 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 12509 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 12510 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12511 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12512 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 12513 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12514 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12515 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12516 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12517 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12518 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12519 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 12520 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 12521 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12522 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12523 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 12524 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 12525 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 12526 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12527 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 12528 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 12529 | |
| 12530 | LTCC='$LTCC' |
| 12531 | LTCFLAGS='$LTCFLAGS' |
| 12532 | compiler='$compiler_DEFAULT' |
| 12533 | |
| 12534 | # Quote evaled strings. |
| 12535 | for var in SED \ |
| 12536 | GREP \ |
| 12537 | EGREP \ |
| 12538 | FGREP \ |
| 12539 | LD \ |
| 12540 | NM \ |
| 12541 | LN_S \ |
| 12542 | lt_SP2NL \ |
| 12543 | lt_NL2SP \ |
| 12544 | reload_flag \ |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 12545 | OBJDUMP \ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12546 | deplibs_check_method \ |
| 12547 | file_magic_cmd \ |
| 12548 | AR \ |
| 12549 | AR_FLAGS \ |
| 12550 | STRIP \ |
| 12551 | RANLIB \ |
| 12552 | CC \ |
| 12553 | CFLAGS \ |
| 12554 | compiler \ |
| 12555 | lt_cv_sys_global_symbol_pipe \ |
| 12556 | lt_cv_sys_global_symbol_to_cdecl \ |
| 12557 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 12558 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 12559 | SHELL \ |
| 12560 | ECHO \ |
| 12561 | lt_prog_compiler_no_builtin_flag \ |
| 12562 | lt_prog_compiler_wl \ |
| 12563 | lt_prog_compiler_pic \ |
| 12564 | lt_prog_compiler_static \ |
| 12565 | lt_cv_prog_compiler_c_o \ |
| 12566 | need_locks \ |
| 12567 | DSYMUTIL \ |
| 12568 | NMEDIT \ |
| 12569 | LIPO \ |
| 12570 | OTOOL \ |
| 12571 | OTOOL64 \ |
| 12572 | shrext_cmds \ |
| 12573 | export_dynamic_flag_spec \ |
| 12574 | whole_archive_flag_spec \ |
| 12575 | compiler_needs_object \ |
| 12576 | with_gnu_ld \ |
| 12577 | allow_undefined_flag \ |
| 12578 | no_undefined_flag \ |
| 12579 | hardcode_libdir_flag_spec \ |
| 12580 | hardcode_libdir_flag_spec_ld \ |
| 12581 | hardcode_libdir_separator \ |
| 12582 | fix_srcfile_path \ |
| 12583 | exclude_expsyms \ |
| 12584 | include_expsyms \ |
| 12585 | file_list_spec \ |
| 12586 | variables_saved_for_relink \ |
| 12587 | libname_spec \ |
| 12588 | library_names_spec \ |
| 12589 | soname_spec \ |
| 12590 | finish_eval \ |
| 12591 | old_striplib \ |
| 12592 | striplib; do |
| 12593 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 12594 | *[\\\\\\\`\\"\\\$]*) |
| 12595 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 12596 | ;; |
| 12597 | *) |
| 12598 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 12599 | ;; |
| 12600 | esac |
| 12601 | done |
| 12602 | |
| 12603 | # Double-quote double-evaled strings. |
| 12604 | for var in reload_cmds \ |
| 12605 | old_postinstall_cmds \ |
| 12606 | old_postuninstall_cmds \ |
| 12607 | old_archive_cmds \ |
| 12608 | extract_expsyms_cmds \ |
| 12609 | old_archive_from_new_cmds \ |
| 12610 | old_archive_from_expsyms_cmds \ |
| 12611 | archive_cmds \ |
| 12612 | archive_expsym_cmds \ |
| 12613 | module_cmds \ |
| 12614 | module_expsym_cmds \ |
| 12615 | export_symbols_cmds \ |
| 12616 | prelink_cmds \ |
| 12617 | postinstall_cmds \ |
| 12618 | postuninstall_cmds \ |
| 12619 | finish_cmds \ |
| 12620 | sys_lib_search_path_spec \ |
| 12621 | sys_lib_dlsearch_path_spec; do |
| 12622 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 12623 | *[\\\\\\\`\\"\\\$]*) |
| 12624 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 12625 | ;; |
| 12626 | *) |
| 12627 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 12628 | ;; |
| 12629 | esac |
| 12630 | done |
| 12631 | |
| 12632 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 12633 | case \$lt_ECHO in |
| 12634 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 12635 | ;; |
| 12636 | esac |
| 12637 | |
| 12638 | ac_aux_dir='$ac_aux_dir' |
| 12639 | xsi_shell='$xsi_shell' |
| 12640 | lt_shell_append='$lt_shell_append' |
| 12641 | |
| 12642 | # See if we are running on zsh, and set the options which allow our |
| 12643 | # commands through without removal of \ escapes INIT. |
| 12644 | if test -n "\${ZSH_VERSION+set}" ; then |
| 12645 | setopt NO_GLOB_SUBST |
| 12646 | fi |
| 12647 | |
| 12648 | |
| 12649 | PACKAGE='$PACKAGE' |
| 12650 | VERSION='$VERSION' |
| 12651 | TIMESTAMP='$TIMESTAMP' |
| 12652 | RM='$RM' |
| 12653 | ofile='$ofile' |
| 12654 | |
| 12655 | |
| 12656 | |
| 12657 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12658 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12659 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12660 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12661 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12662 | # Handling of arguments. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12663 | for ac_config_target in $ac_config_targets |
| 12664 | do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12665 | case $ac_config_target in |
| 12666 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 12667 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 12668 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 12669 | "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; |
| 12670 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12671 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12672 | esac |
| 12673 | done |
| 12674 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12675 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12676 | # If the user did not use the arguments to specify the items to instantiate, |
| 12677 | # then the envvar interface is used. Set only those that are not. |
| 12678 | # We use the long form for the default assignment because of an extremely |
| 12679 | # bizarre bug on SunOS 4.1.3. |
| 12680 | if $ac_need_defaults; then |
| 12681 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12682 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12683 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12684 | fi |
| 12685 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12686 | # Have a temporary directory for convenience. Make it in the build tree |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12687 | # simply because there is no reason against having it here, and in addition, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12688 | # creating and moving files from /tmp can sometimes cause problems. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12689 | # Hook for its removal unless debugging. |
| 12690 | # Note that there is a small window in which the directory will not be cleaned: |
| 12691 | # after its creation but before its name has been assigned to `$tmp'. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12692 | $debug || |
| 12693 | { |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12694 | tmp= ac_tmp= |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12695 | trap 'exit_status=$? |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12696 | : "${ac_tmp:=$tmp}" |
| 12697 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12698 | ' 0 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12699 | trap 'as_fn_exit 1' 1 2 13 15 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12700 | } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12701 | # Create a (secure) tmp directory for tmp files. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12702 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12703 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12704 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12705 | test -d "$tmp" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12706 | } || |
| 12707 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12708 | tmp=./conf$$-$RANDOM |
| 12709 | (umask 077 && mkdir "$tmp") |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12710 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 12711 | ac_tmp=$tmp |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12712 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12713 | # Set up the scripts for CONFIG_FILES section. |
| 12714 | # No need to generate them if there are no CONFIG_FILES. |
| 12715 | # This happens for instance with `./config.status config.h'. |
| 12716 | if test -n "$CONFIG_FILES"; then |
| 12717 | |
| 12718 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12719 | ac_cr=`echo X | tr X '\015'` |
| 12720 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 12721 | # But we know of no other shell where ac_cr would be empty at this |
| 12722 | # point, so we can use a bashism as a fallback. |
| 12723 | if test "x$ac_cr" = x; then |
| 12724 | eval ac_cr=\$\'\\r\' |
| 12725 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12726 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 12727 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
drh | 0fe0c46 | 2011-09-22 00:56:38 +0000 | [diff] [blame] | 12728 | ac_cs_awk_cr='\\r' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12729 | else |
| 12730 | ac_cs_awk_cr=$ac_cr |
| 12731 | fi |
| 12732 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12733 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12734 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12735 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12736 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12737 | { |
| 12738 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 12739 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 12740 | echo "_ACEOF" |
| 12741 | } >conf$$subs.sh || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12742 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 12743 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12744 | ac_delim='%!_!# ' |
| 12745 | for ac_last_try in false false false false false :; do |
| 12746 | . ./conf$$subs.sh || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12747 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12748 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12749 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 12750 | if test $ac_delim_n = $ac_delim_num; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12751 | break |
| 12752 | elif $ac_last_try; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12753 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12754 | else |
| 12755 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12756 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12757 | done |
| 12758 | rm -f conf$$subs.sh |
| 12759 | |
| 12760 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12761 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12762 | _ACEOF |
| 12763 | sed -n ' |
| 12764 | h |
| 12765 | s/^/S["/; s/!.*/"]=/ |
| 12766 | p |
| 12767 | g |
| 12768 | s/^[^!]*!// |
| 12769 | :repl |
| 12770 | t repl |
| 12771 | s/'"$ac_delim"'$// |
| 12772 | t delim |
| 12773 | :nl |
| 12774 | h |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12775 | s/\(.\{148\}\)..*/\1/ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12776 | t more1 |
| 12777 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 12778 | p |
| 12779 | n |
| 12780 | b repl |
| 12781 | :more1 |
| 12782 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12783 | p |
| 12784 | g |
| 12785 | s/.\{148\}// |
| 12786 | t nl |
| 12787 | :delim |
| 12788 | h |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12789 | s/\(.\{148\}\)..*/\1/ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12790 | t more2 |
| 12791 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 12792 | p |
| 12793 | b |
| 12794 | :more2 |
| 12795 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12796 | p |
| 12797 | g |
| 12798 | s/.\{148\}// |
| 12799 | t delim |
| 12800 | ' <conf$$subs.awk | sed ' |
| 12801 | /^[^""]/{ |
| 12802 | N |
| 12803 | s/\n// |
| 12804 | } |
| 12805 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12806 | rm -f conf$$subs.awk |
| 12807 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12808 | _ACAWK |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12809 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12810 | for (key in S) S_is_set[key] = 1 |
| 12811 | FS = "" |
| 12812 | |
| 12813 | } |
| 12814 | { |
| 12815 | line = $ 0 |
| 12816 | nfields = split(line, field, "@") |
| 12817 | substed = 0 |
| 12818 | len = length(field[1]) |
| 12819 | for (i = 2; i < nfields; i++) { |
| 12820 | key = field[i] |
| 12821 | keylen = length(key) |
| 12822 | if (S_is_set[key]) { |
| 12823 | value = S[key] |
| 12824 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 12825 | len += length(value) + length(field[++i]) |
| 12826 | substed = 1 |
| 12827 | } else |
| 12828 | len += 1 + keylen |
| 12829 | } |
| 12830 | |
| 12831 | print line |
| 12832 | } |
| 12833 | |
| 12834 | _ACAWK |
| 12835 | _ACEOF |
| 12836 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12837 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 12838 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 12839 | else |
| 12840 | cat |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12841 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 12842 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12843 | _ACEOF |
| 12844 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12845 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 12846 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12847 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12848 | # (actually we leave an empty line to preserve line numbers). |
| 12849 | if test "x$srcdir" = x.; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12850 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 12851 | h |
| 12852 | s/// |
| 12853 | s/^/:/ |
| 12854 | s/[ ]*$/:/ |
| 12855 | s/:\$(srcdir):/:/g |
| 12856 | s/:\${srcdir}:/:/g |
| 12857 | s/:@srcdir@:/:/g |
| 12858 | s/^:*// |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12859 | s/:*$// |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12860 | x |
| 12861 | s/\(=[ ]*\).*/\1/ |
| 12862 | G |
| 12863 | s/\n// |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12864 | s/^[^=]*=[ ]*$// |
| 12865 | }' |
| 12866 | fi |
| 12867 | |
| 12868 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12869 | fi # test -n "$CONFIG_FILES" |
| 12870 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12871 | # Set up the scripts for CONFIG_HEADERS section. |
| 12872 | # No need to generate them if there are no CONFIG_HEADERS. |
| 12873 | # This happens for instance with `./config.status Makefile'. |
| 12874 | if test -n "$CONFIG_HEADERS"; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12875 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12876 | BEGIN { |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12877 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12878 | |
| 12879 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 12880 | # here-document in config.status, that substitutes the proper values into |
| 12881 | # config.h.in to produce config.h. |
| 12882 | |
| 12883 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 12884 | # handling of long lines. |
| 12885 | ac_delim='%!_!# ' |
| 12886 | for ac_last_try in false false :; do |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12887 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 12888 | if test -z "$ac_tt"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12889 | break |
| 12890 | elif $ac_last_try; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12891 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12892 | else |
| 12893 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12894 | fi |
| 12895 | done |
| 12896 | |
| 12897 | # For the awk script, D is an array of macro values keyed by name, |
| 12898 | # likewise P contains macro parameters if any. Preserve backslash |
| 12899 | # newline sequences. |
| 12900 | |
| 12901 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 12902 | sed -n ' |
| 12903 | s/.\{148\}/&'"$ac_delim"'/g |
| 12904 | t rset |
| 12905 | :rset |
| 12906 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 12907 | t def |
| 12908 | d |
| 12909 | :def |
| 12910 | s/\\$// |
| 12911 | t bsnl |
| 12912 | s/["\\]/\\&/g |
| 12913 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12914 | D["\1"]=" \3"/p |
| 12915 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 12916 | d |
| 12917 | :bsnl |
| 12918 | s/["\\]/\\&/g |
| 12919 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12920 | D["\1"]=" \3\\\\\\n"\\/p |
| 12921 | t cont |
| 12922 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 12923 | t cont |
| 12924 | d |
| 12925 | :cont |
| 12926 | n |
| 12927 | s/.\{148\}/&'"$ac_delim"'/g |
| 12928 | t clear |
| 12929 | :clear |
| 12930 | s/\\$// |
| 12931 | t bsnlc |
| 12932 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 12933 | d |
| 12934 | :bsnlc |
| 12935 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 12936 | b cont |
| 12937 | ' <confdefs.h | sed ' |
| 12938 | s/'"$ac_delim"'/"\\\ |
| 12939 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12940 | |
| 12941 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12942 | for (key in D) D_is_set[key] = 1 |
| 12943 | FS = "" |
| 12944 | } |
| 12945 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 12946 | line = \$ 0 |
| 12947 | split(line, arg, " ") |
| 12948 | if (arg[1] == "#") { |
| 12949 | defundef = arg[2] |
| 12950 | mac1 = arg[3] |
| 12951 | } else { |
| 12952 | defundef = substr(arg[1], 2) |
| 12953 | mac1 = arg[2] |
| 12954 | } |
| 12955 | split(mac1, mac2, "(") #) |
| 12956 | macro = mac2[1] |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12957 | prefix = substr(line, 1, index(line, defundef) - 1) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12958 | if (D_is_set[macro]) { |
| 12959 | # Preserve the white space surrounding the "#". |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12960 | print prefix "define", macro P[macro] D[macro] |
| 12961 | next |
| 12962 | } else { |
| 12963 | # Replace #undef with comments. This is necessary, for example, |
| 12964 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 12965 | # on some systems where configure will not decide to define it. |
| 12966 | if (defundef == "undef") { |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12967 | print "/*", prefix defundef, macro, "*/" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12968 | next |
| 12969 | } |
| 12970 | } |
| 12971 | } |
| 12972 | { print } |
| 12973 | _ACAWK |
| 12974 | _ACEOF |
| 12975 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12976 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12977 | fi # test -n "$CONFIG_HEADERS" |
| 12978 | |
| 12979 | |
| 12980 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 12981 | shift |
| 12982 | for ac_tag |
| 12983 | do |
| 12984 | case $ac_tag in |
| 12985 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12986 | esac |
| 12987 | case $ac_mode$ac_tag in |
| 12988 | :[FHL]*:*);; |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 12989 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12990 | :[FH]-) ac_tag=-:-;; |
| 12991 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12992 | esac |
| 12993 | ac_save_IFS=$IFS |
| 12994 | IFS=: |
| 12995 | set x $ac_tag |
| 12996 | IFS=$ac_save_IFS |
| 12997 | shift |
| 12998 | ac_file=$1 |
| 12999 | shift |
| 13000 | |
| 13001 | case $ac_mode in |
| 13002 | :L) ac_source=$1;; |
| 13003 | :[FH]) |
| 13004 | ac_file_inputs= |
| 13005 | for ac_f |
| 13006 | do |
| 13007 | case $ac_f in |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13008 | -) ac_f="$ac_tmp/stdin";; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13009 | *) # Look for the file first in the build tree, then in the source tree |
| 13010 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 13011 | # because $ac_f cannot contain `:'. |
| 13012 | test -f "$ac_f" || |
| 13013 | case $ac_f in |
| 13014 | [\\/$]*) false;; |
| 13015 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 13016 | esac || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13017 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13018 | esac |
| 13019 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13020 | as_fn_append ac_file_inputs " '$ac_f'" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13021 | done |
| 13022 | |
| 13023 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 13024 | # use $as_me), people would be surprised to read: |
| 13025 | # /* config.h. Generated by config.status. */ |
| 13026 | configure_input='Generated from '` |
| 13027 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 13028 | `' by configure.' |
| 13029 | if test x"$ac_file" != x-; then |
| 13030 | configure_input="$ac_file. $configure_input" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13031 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13032 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 13033 | fi |
| 13034 | # Neutralize special characters interpreted by sed in replacement strings. |
| 13035 | case $configure_input in #( |
| 13036 | *\&* | *\|* | *\\* ) |
| 13037 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 13038 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 13039 | *) ac_sed_conf_input=$configure_input;; |
| 13040 | esac |
| 13041 | |
| 13042 | case $ac_tag in |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13043 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 13044 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13045 | esac |
| 13046 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13047 | esac |
| 13048 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13049 | ac_dir=`$as_dirname -- "$ac_file" || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13050 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 13051 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 13052 | X"$ac_file" : 'X\(//\)$' \| \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13053 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 13054 | $as_echo X"$ac_file" | |
| 13055 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13056 | s//\1/ |
| 13057 | q |
| 13058 | } |
| 13059 | /^X\(\/\/\)[^/].*/{ |
| 13060 | s//\1/ |
| 13061 | q |
| 13062 | } |
| 13063 | /^X\(\/\/\)$/{ |
| 13064 | s//\1/ |
| 13065 | q |
| 13066 | } |
| 13067 | /^X\(\/\).*/{ |
| 13068 | s//\1/ |
| 13069 | q |
| 13070 | } |
| 13071 | s/.*/./; q'` |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13072 | as_dir="$ac_dir"; as_fn_mkdir_p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13073 | ac_builddir=. |
| 13074 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13075 | case "$ac_dir" in |
| 13076 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 13077 | *) |
| 13078 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 13079 | # A ".." for each directory in $ac_dir_suffix. |
| 13080 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 13081 | case $ac_top_builddir_sub in |
| 13082 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 13083 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 13084 | esac ;; |
| 13085 | esac |
| 13086 | ac_abs_top_builddir=$ac_pwd |
| 13087 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 13088 | # for backward compatibility: |
| 13089 | ac_top_builddir=$ac_top_build_prefix |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13090 | |
| 13091 | case $srcdir in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13092 | .) # We are building in place. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13093 | ac_srcdir=. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13094 | ac_top_srcdir=$ac_top_builddir_sub |
| 13095 | ac_abs_top_srcdir=$ac_pwd ;; |
| 13096 | [\\/]* | ?:[\\/]* ) # Absolute name. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13097 | ac_srcdir=$srcdir$ac_dir_suffix; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13098 | ac_top_srcdir=$srcdir |
| 13099 | ac_abs_top_srcdir=$srcdir ;; |
| 13100 | *) # Relative name. |
| 13101 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 13102 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 13103 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13104 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13105 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 13106 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13107 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13108 | case $ac_mode in |
| 13109 | :F) |
| 13110 | # |
| 13111 | # CONFIG_FILE |
| 13112 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13113 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13114 | case $INSTALL in |
| 13115 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13116 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13117 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13118 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13119 | |
| 13120 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13121 | # If the template does not know about datarootdir, expand it. |
| 13122 | # FIXME: This hack should be removed a few years after 2.60. |
| 13123 | ac_datarootdir_hack=; ac_datarootdir_seen= |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13124 | ac_sed_dataroot=' |
| 13125 | /datarootdir/ { |
| 13126 | p |
| 13127 | q |
| 13128 | } |
| 13129 | /@datadir@/p |
| 13130 | /@docdir@/p |
| 13131 | /@infodir@/p |
| 13132 | /@localedir@/p |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13133 | /@mandir@/p' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13134 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 13135 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 13136 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13137 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13138 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 13139 | _ACEOF |
| 13140 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13141 | ac_datarootdir_hack=' |
| 13142 | s&@datadir@&$datadir&g |
| 13143 | s&@docdir@&$docdir&g |
| 13144 | s&@infodir@&$infodir&g |
| 13145 | s&@localedir@&$localedir&g |
| 13146 | s&@mandir@&$mandir&g |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13147 | s&\\\${datarootdir}&$datarootdir&g' ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13148 | esac |
| 13149 | _ACEOF |
| 13150 | |
| 13151 | # Neutralize VPATH when `$srcdir' = `.'. |
| 13152 | # Shell code in configure.ac might set extrasub. |
| 13153 | # FIXME: do we really want to maintain this feature? |
| 13154 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 13155 | ac_sed_extra="$ac_vpsub |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13156 | $extrasub |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13157 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13158 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13159 | :t |
| 13160 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13161 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 13162 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 13163 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 13164 | s&@srcdir@&$ac_srcdir&;t t |
| 13165 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 13166 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 13167 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 13168 | s&@builddir@&$ac_builddir&;t t |
| 13169 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 13170 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 13171 | s&@INSTALL@&$ac_INSTALL&;t t |
| 13172 | $ac_datarootdir_hack |
| 13173 | " |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13174 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 13175 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13176 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13177 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13178 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 13179 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 13180 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 13181 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 13182 | which seems to be undefined. Please make sure it is defined" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13183 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13184 | which seems to be undefined. Please make sure it is defined" >&2;} |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13185 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13186 | rm -f "$ac_tmp/stdin" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13187 | case $ac_file in |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13188 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 13189 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13190 | esac \ |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13191 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13192 | ;; |
| 13193 | :H) |
| 13194 | # |
| 13195 | # CONFIG_HEADER |
| 13196 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13197 | if test x"$ac_file" != x-; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13198 | { |
| 13199 | $as_echo "/* $configure_input */" \ |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13200 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 13201 | } >"$ac_tmp/config.h" \ |
| 13202 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 13203 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13205 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13206 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13207 | rm -f "$ac_file" |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13208 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 13209 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13210 | fi |
| 13211 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13212 | $as_echo "/* $configure_input */" \ |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13213 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 13214 | || as_fn_error $? "could not create -" "$LINENO" 5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13215 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13216 | ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13217 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13218 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13219 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 13220 | ;; |
| 13221 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13222 | |
| 13223 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13224 | case $ac_file$ac_mode in |
| 13225 | "libtool":C) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 13226 | |
| 13227 | # See if we are running on zsh, and set the options which allow our |
| 13228 | # commands through without removal of \ escapes. |
| 13229 | if test -n "${ZSH_VERSION+set}" ; then |
| 13230 | setopt NO_GLOB_SUBST |
| 13231 | fi |
| 13232 | |
| 13233 | cfgfile="${ofile}T" |
| 13234 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 13235 | $RM "$cfgfile" |
| 13236 | |
| 13237 | cat <<_LT_EOF >> "$cfgfile" |
| 13238 | #! $SHELL |
| 13239 | |
| 13240 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 13241 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 13242 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13243 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 13244 | # |
| 13245 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 13246 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 13247 | # Written by Gordon Matzigkeit, 1996 |
| 13248 | # |
| 13249 | # This file is part of GNU Libtool. |
| 13250 | # |
| 13251 | # GNU Libtool is free software; you can redistribute it and/or |
| 13252 | # modify it under the terms of the GNU General Public License as |
| 13253 | # published by the Free Software Foundation; either version 2 of |
| 13254 | # the License, or (at your option) any later version. |
| 13255 | # |
| 13256 | # As a special exception to the GNU General Public License, |
| 13257 | # if you distribute this file as part of a program or library that |
| 13258 | # is built using GNU Libtool, you may include this file under the |
| 13259 | # same distribution terms that you use for the rest of that program. |
| 13260 | # |
| 13261 | # GNU Libtool is distributed in the hope that it will be useful, |
| 13262 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13263 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13264 | # GNU General Public License for more details. |
| 13265 | # |
| 13266 | # You should have received a copy of the GNU General Public License |
| 13267 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 13268 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 13269 | # obtained by writing to the Free Software Foundation, Inc., |
| 13270 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 13271 | |
| 13272 | |
| 13273 | # The names of the tagged configurations supported by this script. |
| 13274 | available_tags="" |
| 13275 | |
| 13276 | # ### BEGIN LIBTOOL CONFIG |
| 13277 | |
| 13278 | # Which release of libtool.m4 was used? |
| 13279 | macro_version=$macro_version |
| 13280 | macro_revision=$macro_revision |
| 13281 | |
| 13282 | # Whether or not to build shared libraries. |
| 13283 | build_libtool_libs=$enable_shared |
| 13284 | |
| 13285 | # Whether or not to build static libraries. |
| 13286 | build_old_libs=$enable_static |
| 13287 | |
| 13288 | # What type of objects to build. |
| 13289 | pic_mode=$pic_mode |
| 13290 | |
| 13291 | # Whether or not to optimize for fast installation. |
| 13292 | fast_install=$enable_fast_install |
| 13293 | |
| 13294 | # The host system. |
| 13295 | host_alias=$host_alias |
| 13296 | host=$host |
| 13297 | host_os=$host_os |
| 13298 | |
| 13299 | # The build system. |
| 13300 | build_alias=$build_alias |
| 13301 | build=$build |
| 13302 | build_os=$build_os |
| 13303 | |
| 13304 | # A sed program that does not truncate output. |
| 13305 | SED=$lt_SED |
| 13306 | |
| 13307 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 13308 | Xsed="\$SED -e 1s/^X//" |
| 13309 | |
| 13310 | # A grep program that handles long lines. |
| 13311 | GREP=$lt_GREP |
| 13312 | |
| 13313 | # An ERE matcher. |
| 13314 | EGREP=$lt_EGREP |
| 13315 | |
| 13316 | # A literal string matcher. |
| 13317 | FGREP=$lt_FGREP |
| 13318 | |
| 13319 | # A BSD- or MS-compatible name lister. |
| 13320 | NM=$lt_NM |
| 13321 | |
| 13322 | # Whether we need soft or hard links. |
| 13323 | LN_S=$lt_LN_S |
| 13324 | |
| 13325 | # What is the maximum length of a command? |
| 13326 | max_cmd_len=$max_cmd_len |
| 13327 | |
| 13328 | # Object file suffix (normally "o"). |
| 13329 | objext=$ac_objext |
| 13330 | |
| 13331 | # Executable file suffix (normally ""). |
| 13332 | exeext=$exeext |
| 13333 | |
| 13334 | # whether the shell understands "unset". |
| 13335 | lt_unset=$lt_unset |
| 13336 | |
| 13337 | # turn spaces into newlines. |
| 13338 | SP2NL=$lt_lt_SP2NL |
| 13339 | |
| 13340 | # turn newlines into spaces. |
| 13341 | NL2SP=$lt_lt_NL2SP |
| 13342 | |
| 13343 | # How to create reloadable object files. |
| 13344 | reload_flag=$lt_reload_flag |
| 13345 | reload_cmds=$lt_reload_cmds |
| 13346 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 13347 | # An object symbol dumper. |
| 13348 | OBJDUMP=$lt_OBJDUMP |
| 13349 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 13350 | # Method to check whether dependent libraries are shared objects. |
| 13351 | deplibs_check_method=$lt_deplibs_check_method |
| 13352 | |
| 13353 | # Command to use when deplibs_check_method == "file_magic". |
| 13354 | file_magic_cmd=$lt_file_magic_cmd |
| 13355 | |
| 13356 | # The archiver. |
| 13357 | AR=$lt_AR |
| 13358 | AR_FLAGS=$lt_AR_FLAGS |
| 13359 | |
| 13360 | # A symbol stripping program. |
| 13361 | STRIP=$lt_STRIP |
| 13362 | |
| 13363 | # Commands used to install an old-style archive. |
| 13364 | RANLIB=$lt_RANLIB |
| 13365 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13366 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13367 | |
| 13368 | # A C compiler. |
| 13369 | LTCC=$lt_CC |
| 13370 | |
| 13371 | # LTCC compiler flags. |
| 13372 | LTCFLAGS=$lt_CFLAGS |
| 13373 | |
| 13374 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13375 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13376 | |
| 13377 | # Transform the output of nm in a proper C declaration. |
| 13378 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13379 | |
| 13380 | # Transform the output of nm in a C name address pair. |
| 13381 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13382 | |
| 13383 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 13384 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 13385 | |
| 13386 | # The name of the directory that contains temporary libtool files. |
| 13387 | objdir=$objdir |
| 13388 | |
| 13389 | # Shell to use when invoking shell scripts. |
| 13390 | SHELL=$lt_SHELL |
| 13391 | |
| 13392 | # An echo program that does not interpret backslashes. |
| 13393 | ECHO=$lt_ECHO |
| 13394 | |
| 13395 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 13396 | MAGIC_CMD=$MAGIC_CMD |
| 13397 | |
| 13398 | # Must we lock files when doing compilation? |
| 13399 | need_locks=$lt_need_locks |
| 13400 | |
| 13401 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 13402 | DSYMUTIL=$lt_DSYMUTIL |
| 13403 | |
| 13404 | # Tool to change global to local symbols on Mac OS X. |
| 13405 | NMEDIT=$lt_NMEDIT |
| 13406 | |
| 13407 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 13408 | LIPO=$lt_LIPO |
| 13409 | |
| 13410 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 13411 | OTOOL=$lt_OTOOL |
| 13412 | |
| 13413 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 13414 | OTOOL64=$lt_OTOOL64 |
| 13415 | |
| 13416 | # Old archive suffix (normally "a"). |
| 13417 | libext=$libext |
| 13418 | |
| 13419 | # Shared library suffix (normally ".so"). |
| 13420 | shrext_cmds=$lt_shrext_cmds |
| 13421 | |
| 13422 | # The commands to extract the exported symbol list from a shared archive. |
| 13423 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13424 | |
| 13425 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13426 | # restored at link time. |
| 13427 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 13428 | |
| 13429 | # Do we need the "lib" prefix for modules? |
| 13430 | need_lib_prefix=$need_lib_prefix |
| 13431 | |
| 13432 | # Do we need a version for libraries? |
| 13433 | need_version=$need_version |
| 13434 | |
| 13435 | # Library versioning type. |
| 13436 | version_type=$version_type |
| 13437 | |
| 13438 | # Shared library runtime path variable. |
| 13439 | runpath_var=$runpath_var |
| 13440 | |
| 13441 | # Shared library path variable. |
| 13442 | shlibpath_var=$shlibpath_var |
| 13443 | |
| 13444 | # Is shlibpath searched before the hard-coded library search path? |
| 13445 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 13446 | |
| 13447 | # Format of library name prefix. |
| 13448 | libname_spec=$lt_libname_spec |
| 13449 | |
| 13450 | # List of archive names. First name is the real one, the rest are links. |
| 13451 | # The last name is the one that the linker finds with -lNAME |
| 13452 | library_names_spec=$lt_library_names_spec |
| 13453 | |
| 13454 | # The coded name of the library, if different from the real name. |
| 13455 | soname_spec=$lt_soname_spec |
| 13456 | |
| 13457 | # Command to use after installation of a shared archive. |
| 13458 | postinstall_cmds=$lt_postinstall_cmds |
| 13459 | |
| 13460 | # Command to use after uninstallation of a shared archive. |
| 13461 | postuninstall_cmds=$lt_postuninstall_cmds |
| 13462 | |
| 13463 | # Commands used to finish a libtool library installation in a directory. |
| 13464 | finish_cmds=$lt_finish_cmds |
| 13465 | |
| 13466 | # As "finish_cmds", except a single script fragment to be evaled but |
| 13467 | # not shown. |
| 13468 | finish_eval=$lt_finish_eval |
| 13469 | |
| 13470 | # Whether we should hardcode library paths into libraries. |
| 13471 | hardcode_into_libs=$hardcode_into_libs |
| 13472 | |
| 13473 | # Compile-time system search path for libraries. |
| 13474 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13475 | |
| 13476 | # Run-time system search path for libraries. |
| 13477 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13478 | |
| 13479 | # Whether dlopen is supported. |
| 13480 | dlopen_support=$enable_dlopen |
| 13481 | |
| 13482 | # Whether dlopen of programs is supported. |
| 13483 | dlopen_self=$enable_dlopen_self |
| 13484 | |
| 13485 | # Whether dlopen of statically linked programs is supported. |
| 13486 | dlopen_self_static=$enable_dlopen_self_static |
| 13487 | |
| 13488 | # Commands to strip libraries. |
| 13489 | old_striplib=$lt_old_striplib |
| 13490 | striplib=$lt_striplib |
| 13491 | |
| 13492 | |
| 13493 | # The linker used to build libraries. |
| 13494 | LD=$lt_LD |
| 13495 | |
| 13496 | # Commands used to build an old-style archive. |
| 13497 | old_archive_cmds=$lt_old_archive_cmds |
| 13498 | |
| 13499 | # A language specific compiler. |
| 13500 | CC=$lt_compiler |
| 13501 | |
| 13502 | # Is the compiler the GNU compiler? |
| 13503 | with_gcc=$GCC |
| 13504 | |
| 13505 | # Compiler flag to turn off builtin functions. |
| 13506 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 13507 | |
| 13508 | # How to pass a linker flag through the compiler. |
| 13509 | wl=$lt_lt_prog_compiler_wl |
| 13510 | |
| 13511 | # Additional compiler flags for building library objects. |
| 13512 | pic_flag=$lt_lt_prog_compiler_pic |
| 13513 | |
| 13514 | # Compiler flag to prevent dynamic linking. |
| 13515 | link_static_flag=$lt_lt_prog_compiler_static |
| 13516 | |
| 13517 | # Does compiler simultaneously support -c and -o options? |
| 13518 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 13519 | |
| 13520 | # Whether or not to add -lc for building shared libraries. |
| 13521 | build_libtool_need_lc=$archive_cmds_need_lc |
| 13522 | |
| 13523 | # Whether or not to disallow shared libs when runtime libs are static. |
| 13524 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 13525 | |
| 13526 | # Compiler flag to allow reflexive dlopens. |
| 13527 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 13528 | |
| 13529 | # Compiler flag to generate shared objects directly from archives. |
| 13530 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 13531 | |
| 13532 | # Whether the compiler copes with passing no objects directly. |
| 13533 | compiler_needs_object=$lt_compiler_needs_object |
| 13534 | |
| 13535 | # Create an old-style archive from a shared archive. |
| 13536 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 13537 | |
| 13538 | # Create a temporary old-style archive to link instead of a shared archive. |
| 13539 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 13540 | |
| 13541 | # Commands used to build a shared archive. |
| 13542 | archive_cmds=$lt_archive_cmds |
| 13543 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 13544 | |
| 13545 | # Commands used to build a loadable module if different from building |
| 13546 | # a shared archive. |
| 13547 | module_cmds=$lt_module_cmds |
| 13548 | module_expsym_cmds=$lt_module_expsym_cmds |
| 13549 | |
| 13550 | # Whether we are building with GNU ld or not. |
| 13551 | with_gnu_ld=$lt_with_gnu_ld |
| 13552 | |
| 13553 | # Flag that allows shared libraries with undefined symbols to be built. |
| 13554 | allow_undefined_flag=$lt_allow_undefined_flag |
| 13555 | |
| 13556 | # Flag that enforces no undefined symbols. |
| 13557 | no_undefined_flag=$lt_no_undefined_flag |
| 13558 | |
| 13559 | # Flag to hardcode \$libdir into a binary during linking. |
| 13560 | # This must work even if \$libdir does not exist |
| 13561 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 13562 | |
| 13563 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 13564 | # during linking. This must work even if \$libdir does not exist. |
| 13565 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 13566 | |
| 13567 | # Whether we need a single "-rpath" flag with a separated argument. |
| 13568 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 13569 | |
| 13570 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 13571 | # DIR into the resulting binary. |
| 13572 | hardcode_direct=$hardcode_direct |
| 13573 | |
| 13574 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 13575 | # DIR into the resulting binary and the resulting library dependency is |
| 13576 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 13577 | # library is relocated. |
| 13578 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 13579 | |
| 13580 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 13581 | # into the resulting binary. |
| 13582 | hardcode_minus_L=$hardcode_minus_L |
| 13583 | |
| 13584 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 13585 | # into the resulting binary. |
| 13586 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 13587 | |
| 13588 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 13589 | # into the library and all subsequent libraries and executables linked |
| 13590 | # against it. |
| 13591 | hardcode_automatic=$hardcode_automatic |
| 13592 | |
| 13593 | # Set to yes if linker adds runtime paths of dependent libraries |
| 13594 | # to runtime path list. |
| 13595 | inherit_rpath=$inherit_rpath |
| 13596 | |
| 13597 | # Whether libtool must link a program against all its dependency libraries. |
| 13598 | link_all_deplibs=$link_all_deplibs |
| 13599 | |
| 13600 | # Fix the shell variable \$srcfile for the compiler. |
| 13601 | fix_srcfile_path=$lt_fix_srcfile_path |
| 13602 | |
| 13603 | # Set to "yes" if exported symbols are required. |
| 13604 | always_export_symbols=$always_export_symbols |
| 13605 | |
| 13606 | # The commands to list exported symbols. |
| 13607 | export_symbols_cmds=$lt_export_symbols_cmds |
| 13608 | |
| 13609 | # Symbols that should not be listed in the preloaded symbols. |
| 13610 | exclude_expsyms=$lt_exclude_expsyms |
| 13611 | |
| 13612 | # Symbols that must always be exported. |
| 13613 | include_expsyms=$lt_include_expsyms |
| 13614 | |
| 13615 | # Commands necessary for linking programs (against libraries) with templates. |
| 13616 | prelink_cmds=$lt_prelink_cmds |
| 13617 | |
| 13618 | # Specify filename containing input files. |
| 13619 | file_list_spec=$lt_file_list_spec |
| 13620 | |
| 13621 | # How to hardcode a shared library path into an executable. |
| 13622 | hardcode_action=$hardcode_action |
| 13623 | |
| 13624 | # ### END LIBTOOL CONFIG |
| 13625 | |
| 13626 | _LT_EOF |
| 13627 | |
| 13628 | case $host_os in |
| 13629 | aix3*) |
| 13630 | cat <<\_LT_EOF >> "$cfgfile" |
| 13631 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13632 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13633 | # vanish in a puff of smoke. |
| 13634 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13635 | COLLECT_NAMES= |
| 13636 | export COLLECT_NAMES |
| 13637 | fi |
| 13638 | _LT_EOF |
| 13639 | ;; |
| 13640 | esac |
| 13641 | |
| 13642 | |
| 13643 | ltmain="$ac_aux_dir/ltmain.sh" |
| 13644 | |
| 13645 | |
| 13646 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 13647 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 13648 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 13649 | # is reportedly fixed, but why not run on old versions too? |
| 13650 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 13651 | || (rm -f "$cfgfile"; exit 1) |
| 13652 | |
| 13653 | case $xsi_shell in |
| 13654 | yes) |
| 13655 | cat << \_LT_EOF >> "$cfgfile" |
| 13656 | |
| 13657 | # func_dirname file append nondir_replacement |
| 13658 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 13659 | # otherwise set result to NONDIR_REPLACEMENT. |
| 13660 | func_dirname () |
| 13661 | { |
| 13662 | case ${1} in |
| 13663 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 13664 | * ) func_dirname_result="${3}" ;; |
| 13665 | esac |
| 13666 | } |
| 13667 | |
| 13668 | # func_basename file |
| 13669 | func_basename () |
| 13670 | { |
| 13671 | func_basename_result="${1##*/}" |
| 13672 | } |
| 13673 | |
| 13674 | # func_dirname_and_basename file append nondir_replacement |
| 13675 | # perform func_basename and func_dirname in a single function |
| 13676 | # call: |
| 13677 | # dirname: Compute the dirname of FILE. If nonempty, |
| 13678 | # add APPEND to the result, otherwise set result |
| 13679 | # to NONDIR_REPLACEMENT. |
| 13680 | # value returned in "$func_dirname_result" |
| 13681 | # basename: Compute filename of FILE. |
| 13682 | # value retuned in "$func_basename_result" |
| 13683 | # Implementation must be kept synchronized with func_dirname |
| 13684 | # and func_basename. For efficiency, we do not delegate to |
| 13685 | # those functions but instead duplicate the functionality here. |
| 13686 | func_dirname_and_basename () |
| 13687 | { |
| 13688 | case ${1} in |
| 13689 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 13690 | * ) func_dirname_result="${3}" ;; |
| 13691 | esac |
| 13692 | func_basename_result="${1##*/}" |
| 13693 | } |
| 13694 | |
| 13695 | # func_stripname prefix suffix name |
| 13696 | # strip PREFIX and SUFFIX off of NAME. |
| 13697 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 13698 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 13699 | # dot (in which case that matches only a dot). |
| 13700 | func_stripname () |
| 13701 | { |
| 13702 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 13703 | # positional parameters, so assign one to ordinary parameter first. |
| 13704 | func_stripname_result=${3} |
| 13705 | func_stripname_result=${func_stripname_result#"${1}"} |
| 13706 | func_stripname_result=${func_stripname_result%"${2}"} |
| 13707 | } |
| 13708 | |
| 13709 | # func_opt_split |
| 13710 | func_opt_split () |
| 13711 | { |
| 13712 | func_opt_split_opt=${1%%=*} |
| 13713 | func_opt_split_arg=${1#*=} |
| 13714 | } |
| 13715 | |
| 13716 | # func_lo2o object |
| 13717 | func_lo2o () |
| 13718 | { |
| 13719 | case ${1} in |
| 13720 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 13721 | *) func_lo2o_result=${1} ;; |
| 13722 | esac |
| 13723 | } |
| 13724 | |
| 13725 | # func_xform libobj-or-source |
| 13726 | func_xform () |
| 13727 | { |
| 13728 | func_xform_result=${1%.*}.lo |
| 13729 | } |
| 13730 | |
| 13731 | # func_arith arithmetic-term... |
| 13732 | func_arith () |
| 13733 | { |
| 13734 | func_arith_result=$(( $* )) |
| 13735 | } |
| 13736 | |
| 13737 | # func_len string |
| 13738 | # STRING may not start with a hyphen. |
| 13739 | func_len () |
| 13740 | { |
| 13741 | func_len_result=${#1} |
| 13742 | } |
| 13743 | |
| 13744 | _LT_EOF |
| 13745 | ;; |
| 13746 | *) # Bourne compatible functions. |
| 13747 | cat << \_LT_EOF >> "$cfgfile" |
| 13748 | |
| 13749 | # func_dirname file append nondir_replacement |
| 13750 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 13751 | # otherwise set result to NONDIR_REPLACEMENT. |
| 13752 | func_dirname () |
| 13753 | { |
| 13754 | # Extract subdirectory from the argument. |
| 13755 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 13756 | if test "X$func_dirname_result" = "X${1}"; then |
| 13757 | func_dirname_result="${3}" |
| 13758 | else |
| 13759 | func_dirname_result="$func_dirname_result${2}" |
| 13760 | fi |
| 13761 | } |
| 13762 | |
| 13763 | # func_basename file |
| 13764 | func_basename () |
| 13765 | { |
| 13766 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 13767 | } |
| 13768 | |
| 13769 | |
| 13770 | # func_stripname prefix suffix name |
| 13771 | # strip PREFIX and SUFFIX off of NAME. |
| 13772 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 13773 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 13774 | # dot (in which case that matches only a dot). |
| 13775 | # func_strip_suffix prefix name |
| 13776 | func_stripname () |
| 13777 | { |
| 13778 | case ${2} in |
| 13779 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 13780 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 13781 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 13782 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 13783 | esac |
| 13784 | } |
| 13785 | |
| 13786 | # sed scripts: |
| 13787 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 13788 | my_sed_long_arg='1s/^-[^=]*=//' |
| 13789 | |
| 13790 | # func_opt_split |
| 13791 | func_opt_split () |
| 13792 | { |
| 13793 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 13794 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 13795 | } |
| 13796 | |
| 13797 | # func_lo2o object |
| 13798 | func_lo2o () |
| 13799 | { |
| 13800 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 13801 | } |
| 13802 | |
| 13803 | # func_xform libobj-or-source |
| 13804 | func_xform () |
| 13805 | { |
| 13806 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 13807 | } |
| 13808 | |
| 13809 | # func_arith arithmetic-term... |
| 13810 | func_arith () |
| 13811 | { |
| 13812 | func_arith_result=`expr "$@"` |
| 13813 | } |
| 13814 | |
| 13815 | # func_len string |
| 13816 | # STRING may not start with a hyphen. |
| 13817 | func_len () |
| 13818 | { |
| 13819 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 13820 | } |
| 13821 | |
| 13822 | _LT_EOF |
| 13823 | esac |
| 13824 | |
| 13825 | case $lt_shell_append in |
| 13826 | yes) |
| 13827 | cat << \_LT_EOF >> "$cfgfile" |
| 13828 | |
| 13829 | # func_append var value |
| 13830 | # Append VALUE to the end of shell variable VAR. |
| 13831 | func_append () |
| 13832 | { |
| 13833 | eval "$1+=\$2" |
| 13834 | } |
| 13835 | _LT_EOF |
| 13836 | ;; |
| 13837 | *) |
| 13838 | cat << \_LT_EOF >> "$cfgfile" |
| 13839 | |
| 13840 | # func_append var value |
| 13841 | # Append VALUE to the end of shell variable VAR. |
| 13842 | func_append () |
| 13843 | { |
| 13844 | eval "$1=\$$1\$2" |
| 13845 | } |
| 13846 | |
| 13847 | _LT_EOF |
| 13848 | ;; |
| 13849 | esac |
| 13850 | |
| 13851 | |
| 13852 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 13853 | || (rm -f "$cfgfile"; exit 1) |
| 13854 | |
| 13855 | mv -f "$cfgfile" "$ofile" || |
| 13856 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 13857 | chmod +x "$ofile" |
| 13858 | |
| 13859 | ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13860 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13861 | esac |
| 13862 | done # for ac_tag |
| 13863 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13864 | |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13865 | as_fn_exit 0 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13866 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13867 | ac_clean_files=$ac_clean_files_save |
| 13868 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13869 | test $ac_write_fail = 0 || |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13870 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13871 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13872 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13873 | # configure is writing to config.log, and then calls config.status. |
| 13874 | # config.status does its own redirection, appending to config.log. |
| 13875 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 13876 | # by configure, so config.status won't be able to write to it; its |
| 13877 | # output is simply discarded. So we exec the FD to /dev/null, |
| 13878 | # effectively closing config.log, so it can be properly (re)opened and |
| 13879 | # appended to by config.status. When coming back to configure, we |
| 13880 | # need to make the FD available again. |
| 13881 | if test "$no_create" != yes; then |
| 13882 | ac_cs_success=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13883 | ac_config_status_args= |
| 13884 | test "$silent" = yes && |
| 13885 | ac_config_status_args="$ac_config_status_args --quiet" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13886 | exec 5>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13887 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13888 | exec 5>>config.log |
| 13889 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 13890 | # would make configure fail if this is the last instruction. |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13891 | $ac_cs_success || as_fn_exit 1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13892 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13893 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
drh | f922ca4 | 2015-05-14 15:39:18 +0000 | [diff] [blame] | 13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 13895 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13896 | fi |
drh | 63a49ce | 2017-01-02 19:10:14 +0000 | [diff] [blame] | 13897 | |