In a large skillet, fry the bacon over medium-high heat until crisp. Remove with a slotted spoon and set aside. Pour off all but 4 Tbs. of the bacon grease and set the pan over moderate heat. Add the onion, celery, carrots, thyme, caraway seeds, celery seeds, and salt. Cook until the vegetables begin to soften, about 10 minutes. Add the wine and bring to a boil, scraping the pan to loosen and dissolve the browned bits. Add the apples, cover, and cook until the apples are tender. Remove from the heat and combine in a large bowl with the bread cubes and sauerkraut. Season with pepper; toss to combine.
If cooking in a turkey, put the stuffing in the bird just before roasting. Pack the stuffing loosely, leaving enough room to fit your whole extended hand into the bird's cavity. Cook the stuffing in the bird to 160º to 165ºF, checking with an instant-read thermometer. If the bird is done before the stuffing is, take the bird out of the oven, spoon the stuffing into a casserole dish, and continue to bake it while the turkey rests.
If baking some or all of the stuffing in a casserole, pour a cup or two of stock over the stuffing to replace the juices the stuffing would have absorbed from the bird. Bake it covered until heated through, 45 minutes to 1 hour. For a crunchy top, uncover it for the last 15 minutes of baking.